Commit ab17a968 authored by lanbaoming's avatar lanbaoming

2024-05-13修改BUG

parent 4a10d8c0
......@@ -2967,7 +2967,7 @@ public class BoxPreloadGoodsServiceImpl extends AbstractService<BoxPreloadGoodsM
if(loadInfoList == null) loadInfoList = new ArrayList<>();
if(orderDOList == null) orderDOList = new HashSet<>();
BoxGoodsStatistics boxGoodsStatistics = calculateByOrderList(loadInfoList, orderDOList);
calculateBoxMergeSum(shipmentMergeMap.get(shipmentId), boxGoodsStatistics);
calculateBoxMergeSum(shipmentMergeMap.get(shipmentId), boxGoodsStatistics,shipmentId);
shipmentStatisticsMap.put(shipmentId, boxGoodsStatistics);
}
return shipmentStatisticsMap;
......@@ -3026,10 +3026,11 @@ public class BoxPreloadGoodsServiceImpl extends AbstractService<BoxPreloadGoodsM
return boxPreloadGoodsMapper.orderPreloaded(query);
}
private void calculateBoxMergeSum(List<BoxMergePkgDO> mergePkgDOList, BoxGoodsStatistics boxGoodsStatistics) {
if(CollectionUtil.isEmpty(mergePkgDOList)) return;
private void calculateBoxMergeSum(List<BoxMergePkgDO> mergePkgDOList, BoxGoodsStatistics boxGoodsStatistics,long shipmentId) {
//lanbm 2024-05-13 修改合包箱BUG
//if(CollectionUtil.isEmpty(mergePkgDOList)) return;
//Long shipmentId = mergePkgDOList.get(0).getShipmentId();
Long shipmentId = mergePkgDOList.get(0).getShipmentId();
BoxDO box = boxService.getBox(shipmentId);
if (!TransportTypeEnum.AIR.getType().equals(box.getTransportType())) {
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment