商品数据 空指针
This commit is contained in:
@@ -119,7 +119,7 @@ public class ShopProdStatisticServiceImpl extends ServiceImpl<ShopProdStatisticM
|
||||
printDTO.setTotalProductCount(BigDecimal.ZERO);
|
||||
printDTO.setTotalActualAmount(BigDecimal.ZERO);
|
||||
}
|
||||
|
||||
if(CollUtil.isNotEmpty(prodStatisticList)){
|
||||
// 4. 先按分类ID分组商品
|
||||
Map<Long, List<ShopProdStatistic>> groupByCategory = prodStatisticList.stream()
|
||||
.collect(Collectors.groupingBy(ShopProdStatistic::getCategoryId));
|
||||
@@ -164,8 +164,8 @@ public class ShopProdStatisticServiceImpl extends ServiceImpl<ShopProdStatisticM
|
||||
|
||||
categoryItems.add(categoryItem);
|
||||
}
|
||||
|
||||
printDTO.setItems(categoryItems);
|
||||
}
|
||||
rabbitPublisher.sendOtherPrintMsg(param.getShopId(), printDTO, "PRODUCT_REPORT");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user