|
@@ -80,6 +80,8 @@ public class TmsshipUnloadShipResultServiceImpl implements ITmsshipUnloadShipRes
|
|
|
userName = tmsshipLoadShipResultMapper.getUserNameByUserId(userId);
|
|
|
}
|
|
|
List<BigDecimal> orderIds=tmsshipTotalResultMapper.selectAllByCapacity(unloadMap);
|
|
|
+ List<Map<String,Object>> list=new ArrayList<>();
|
|
|
+ //新增卸船
|
|
|
for(BigDecimal orderId:orderIds){
|
|
|
TmsshipUnloadShipResult tmsshipUnloadShipResult = new TmsshipUnloadShipResult();
|
|
|
BigDecimal resultId = selectMaxId();
|
|
@@ -131,9 +133,13 @@ public class TmsshipUnloadShipResultServiceImpl implements ITmsshipUnloadShipRes
|
|
|
mapValue.put("portId",portId);
|
|
|
mapValue.put("resultMaterialNumber",tmsshipLoadShipResult.get("resultMaterialNumber"));
|
|
|
mapValue.put("resultStartTime",mapVal.get("resultStartTime"));
|
|
|
- wmshboundFeign.addWarehousingResult(mapValue);
|
|
|
+ list.add(mapValue);
|
|
|
tmsshipUnloadShipResultMapper.insert(tmsshipUnloadShipResult);
|
|
|
}
|
|
|
+ //所有卸船作业都成功才进行入库作业
|
|
|
+ for(Map<String,Object> mapValue:list){
|
|
|
+ wmshboundFeign.addWarehousingResult(mapValue);
|
|
|
+ }
|
|
|
return 0;
|
|
|
}
|
|
|
|