|
|
|
@ -5010,7 +5010,8 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
|
|
|
|
|
// 构建产品明细的表头 -- 这里目前只处理了定制品和有数据的库存品,对于零担 还没有处理
|
|
|
|
|
List<Map<String, Object>> listMapTemp = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
//统计备货数量
|
|
|
|
|
int stockNum = 0; |
|
|
|
|
for (DistributionParcelListEntity distributionParcelListEntity : distributionParcelListEntities) { |
|
|
|
|
if (StringUtils.isBlank(distributionParcelListEntity.getThirdProduct())) { |
|
|
|
|
distributionParcelListEntity.setThirdProduct("其它"); |
|
|
|
@ -5022,6 +5023,9 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
} else { |
|
|
|
|
m.put(distributionParcelListEntity.getThirdProduct(), 1); |
|
|
|
|
} |
|
|
|
|
if (OrderPackageStockupStatusConstant.yibeihu.getValue().equals(distributionParcelListEntity.getOrderPackageStockupStatus())){ |
|
|
|
|
stockNum++; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// 加入到集合中的去 目的是为了获取分类头部
|
|
|
|
|
listMapTemp.add(m); |
|
|
|
@ -5060,6 +5064,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
String materialNameStr = buildMaterialNameStr(distributionParcelListEntities); |
|
|
|
|
tempMap.put("物料名称", materialNameStr); |
|
|
|
|
tempMap.put("签收件数", 0); |
|
|
|
|
tempMap.put("备货件数", stockNum); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 构建产品明细 --对于每一个订单
|
|
|
|
|