Commit 4c77a896 by songyinghui

feat: 门店信息查询

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