|
@@ -89,6 +89,10 @@ public class StockServiceImpl extends ServiceImpl<StockMapper, Stock> implements
|
|
|
item.setUnitPrice(productInfo.getUnitPrice());
|
|
|
});
|
|
|
//赋值产品分类
|
|
|
+ productClassifyService.attributeAssign(stockVos, StockVo::getProductClassifyId, (item, productClassify) -> {
|
|
|
+ item.setProductClassifyName(productClassify.getName());
|
|
|
+ });
|
|
|
+ //赋值产品分类树
|
|
|
List<ProductClassify> productClassifyList = productClassifyService.list();
|
|
|
Map<Long, ProductClassify> productClassifyMap = productClassifyList.stream().collect(Collectors.toMap(BaseIdPo::getId, Function.identity()));
|
|
|
for (StockVo stockVo : stockVos) {
|