Commit aaa2602d by guojuxing

判空

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