|
@@ -217,6 +217,19 @@ public class PlatformWarehouseServiceImpl implements IPlatformWarehouseService {
|
|
public int afterInwardOutbound(Map<String, Object> map) throws Exception {
|
|
public int afterInwardOutbound(Map<String, Object> map) throws Exception {
|
|
//需要参数 运输订单ID,人员ssoId
|
|
//需要参数 运输订单ID,人员ssoId
|
|
BigDecimal orderId = DataChange.dataToBigDecimal(map.get("orderId"));
|
|
BigDecimal orderId = DataChange.dataToBigDecimal(map.get("orderId"));
|
|
|
|
+ //根据运输订单id去查询是否有入库
|
|
|
|
+ if(rmsPwarehouseGridMapper.selectGridByOrderId(orderId) == null){
|
|
|
|
+ try {
|
|
|
|
+ List<Integer> warehouseIds = rmsPwarehouseGridMapper.getWarehouseIds(map);
|
|
|
|
+ BigDecimal warehouseId = DataChange.dataToBigDecimal(warehouseIds.get(0));
|
|
|
|
+ map.put("warehouseId",warehouseId);
|
|
|
|
+ List<Map<String,Object>> orderMaterialList = rmsPwarehouseGridMapper.getOrderMaterialList(orderId);
|
|
|
|
+ map.put("orderMaterialList",orderMaterialList);
|
|
|
|
+ inwardInbound(map);
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ throw new Exception(e.getMessage());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
//根据运输订单ID,出库
|
|
//根据运输订单ID,出库
|
|
int i = wmspGridMaterialMapper.updateWgmByOrderId(orderId);
|
|
int i = wmspGridMaterialMapper.updateWgmByOrderId(orderId);
|
|
//同步生成火运实绩
|
|
//同步生成火运实绩
|