Commit a7d5f3d9 authored by huyf's avatar huyf

海运已装单bug

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