|
|
|
@ -9022,6 +9022,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
|
|
|
|
|
AtomicReference<Integer> loadingZeroFlag = new AtomicReference<>(0); |
|
|
|
|
|
|
|
|
|
List<Map<String, Object>> ls = new ArrayList<>(); |
|
|
|
|
//查询有哪些在当前仓做计划的订单
|
|
|
|
|
List<TrunklineCarsOrderEntity> carsOrderEntityList = trunklineCarsOrderService.findListByLoadIdAndNodeId(loadId, warehouseId); |
|
|
|
|
//把carsOrderEntityList通过type分组成两个新的集合
|
|
|
|
@ -9029,6 +9030,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
List<TrunklineCarsOrderEntity> zeroOrderList = carsOrderEntityList.stream().filter(e -> e.getType().equals(2)).collect(Collectors.toList()); |
|
|
|
|
//零担批量装车
|
|
|
|
|
zeroOrderList.stream().forEach(e -> { |
|
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
|
//零担订单
|
|
|
|
|
Integer realNum = e.getRealNum(); |
|
|
|
|
String orderCode = e.getOrderCode(); |
|
|
|
@ -9045,6 +9047,13 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
loadingZeroFlag.set(1); |
|
|
|
|
if(realNum.equals(planNum)){ |
|
|
|
|
loadingZeroFlag.set(0); |
|
|
|
|
}else{ |
|
|
|
|
map.put("waybillNo", waybillNo); |
|
|
|
|
map.put("orderCode", orderCode); |
|
|
|
|
map.put("planNum", planNum); |
|
|
|
|
map.put("realNum", realNum); |
|
|
|
|
map.put("handQuantity", handQuantity); |
|
|
|
|
ls.add(map); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -9157,6 +9166,14 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
log.error("推送数据失败",e1); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
|
map.put("waybillNo", waybillNo); |
|
|
|
|
map.put("orderCode", orderCode); |
|
|
|
|
map.put("planNum", planNum); |
|
|
|
|
map.put("realNum", realNum); |
|
|
|
|
map.put("handQuantity", size); |
|
|
|
|
ls.add(map); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -9192,9 +9209,9 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
|
|
|
|
|
Integer i = loadingZeroFlag.get(); |
|
|
|
|
if(i == 1){ |
|
|
|
|
return R.success("装车完成,但存在零担未装车,请去确认装车数量"); |
|
|
|
|
return R.data(ls,"装车完成,但存在零担未装车,请去确认装车数量"); |
|
|
|
|
}else{ |
|
|
|
|
return R.success("装车完成"); |
|
|
|
|
return R.data(ls,"装车完成"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|