Commit d60d389b authored by huyf's avatar huyf

海运已装单bug

parent 2e844bb9
...@@ -234,11 +234,13 @@ public class ShipmentLoadExcelExportListener2 { ...@@ -234,11 +234,13 @@ public class ShipmentLoadExcelExportListener2 {
List<OrderItemDO> orderItems = boxPreload.stream().map(item -> orderItemService.getOrderItem(item.getOrderItemId())).collect(Collectors.toList()); List<OrderItemDO> orderItems = boxPreload.stream().map(item -> orderItemService.getOrderItem(item.getOrderItemId())).collect(Collectors.toList());
for(OrderItemDO item : orderItems) { for(OrderItemDO item : orderItems) {
List<OrderWarehouseInDO> orderWarehouseInDOS = orderWarehouseInService.selectList(OrderWarehouseInDO::getOrderItemId, item.getOrderItemId()); List<OrderWarehouseInDO> orderWarehouseInDOS = orderWarehouseInService.selectList(OrderWarehouseInDO::getOrderItemId, item.getOrderItemId());
boolean addColorFlag = true;
for (OrderWarehouseInDO orderWarehouseInDO : orderWarehouseInDOS) { for (OrderWarehouseInDO orderWarehouseInDO : orderWarehouseInDOS) {
if (CollectionUtil.isNotEmpty(orderWarehouseInDO.getOrderWarehouseInDetailsVOList())) { if (CollectionUtil.isNotEmpty(orderWarehouseInDO.getOrderWarehouseInDetailsVOList())) {
int andIncrement = colorRowNum.getAndIncrement(); int andIncrement = colorRowNum.getAndIncrement();
colorMap.put(String.valueOf(andIncrement),colorList.get(colorIndex)); colorMap.put(String.valueOf(andIncrement),colorList.get(colorIndex));
colorRowList.add(andIncrement);//这里加1是为了设置颜色时过滤掉入仓记录那条 colorRowList.add(andIncrement);//这里加1是为了设置颜色时过滤掉入仓记录那条
addColorFlag = false;
break; break;
} }
} }
...@@ -345,9 +347,11 @@ public class ShipmentLoadExcelExportListener2 { ...@@ -345,9 +347,11 @@ public class ShipmentLoadExcelExportListener2 {
totalNum = totalNum + item.getWarehouseInInfoVO().getCartonsNum(); totalNum = totalNum + item.getWarehouseInInfoVO().getCartonsNum();
totalVolume = totalVolume.add(item.getWarehouseInInfoVO().getVolume()); totalVolume = totalVolume.add(item.getWarehouseInInfoVO().getVolume());
totalWeight = totalWeight.add(item.getWarehouseInInfoVO().getWeight()); totalWeight = totalWeight.add(item.getWarehouseInInfoVO().getWeight());
if (addColorFlag) {
colorRowNum.getAndIncrement(); colorRowNum.getAndIncrement();
} }
} }
}
colorRowNum.getAndAdd(2); colorRowNum.getAndAdd(2);
LoadDto preloadDto = new LoadDto(); LoadDto preloadDto = new LoadDto();
preloadDto.setId("TOTAL"); preloadDto.setId("TOTAL");
......
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