Commit aaa2602d by guojuxing

判空

parent db31fdb4
...@@ -144,9 +144,11 @@ public class StoreSearchUtils { ...@@ -144,9 +144,11 @@ public class StoreSearchUtils {
Map<Integer, Integer> map = new HashMap<>(); Map<Integer, Integer> map = new HashMap<>();
result.forEach(storeDTO -> { result.forEach(storeDTO -> {
List<Integer> storeGroupIdList = storeDTO.getStoreGroupIdList(); List<Integer> storeGroupIdList = storeDTO.getStoreGroupIdList();
storeGroupIdList.forEach(storeGroupId ->{ if (CollectionUtils.isNotEmpty(storeGroupIdList)) {
map.put(storeGroupId, storeGroupId); storeGroupIdList.forEach(storeGroupId -> {
}); map.put(storeGroupId, storeGroupId);
});
}
}); });
List<StoreGroupDTO> allStoreGroupIdList = this.storeGroupApiService.listStoreGroupByIds(null, enterpriseId).getResult(); List<StoreGroupDTO> allStoreGroupIdList = this.storeGroupApiService.listStoreGroupByIds(null, enterpriseId).getResult();
Map<Integer, Integer> levelMap = new HashMap<>(); Map<Integer, Integer> levelMap = new HashMap<>();
......
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