mirror of
https://github.com/weizhiqiang1995/erp-pro.git
synced 2024-12-28 10:54:51 +08:00
feat: queryShopTradeCartList接口的返回数据修改为列表
This commit is contained in:
parent
3def90b2e7
commit
cdd0b8e861
1 changed files with 1 additions and 3 deletions
|
@ -104,14 +104,12 @@ public class ShopTradeCartServiceImpl extends SkyeyeBusinessServiceImpl<ShopTrad
|
|||
bean.setShopMaterialMation(shopMaterialListMap.get(bean.getMaterialId()));
|
||||
});
|
||||
}
|
||||
|
||||
iMaterialService.setDataMation(beans, ShopTradeCart::getMaterialId);
|
||||
Map<String, List<ShopTradeCart>> collect = beans.stream().collect(Collectors.groupingBy(ShopTradeCart::getStoreId));
|
||||
// 查询店铺信息
|
||||
List<String> storeIdList = beans.stream().map(ShopTradeCart::getStoreId).collect(Collectors.toList());
|
||||
List<ShopStore> shopStoreList = shopStoreService.selectByIds(storeIdList.toArray(new String[]{}));
|
||||
Map<String, Object> shopStoreMap = shopStoreList.stream().collect(Collectors.toMap(ShopStore::getId, ShopStore::getName));
|
||||
outputObject.setBean(collect);
|
||||
outputObject.setBeans(beans);
|
||||
outputObject.setCustomBean("AllShopStoreInfo", shopStoreMap);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue