Commit 4c77a896 by songyinghui

feat: 门店信息查询

parent 92c58061
......@@ -194,9 +194,9 @@ public class MaterialDataStaticsController {
List<String> tempStoreIds = storeUsedData.getResult()
.stream()
.map(MaterialStoreUsedDataVO::getStoreId)
.distinct()
.collect(Collectors.toList());
List<StoreDTO> storeDTOS = storeService.queryStore(tempStoreIds);
String[] storeIdsArry = new String[tempStoreIds.size()];
List<StoreDTO> storeDTOS = storeService.getStores(tempStoreIds.toArray(storeIdsArry));
if (CollectionUtils.isNotEmpty(storeDTOS)) {
Map<String, StoreDTO> storeInfoMap = storeDTOS.stream()
.collect(Collectors.toMap(StoreDTO::getStoreId, Function.identity(), (v1, v2) -> v1));
......
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