Commit b8c7ae85 by zhiwj

资源组 除详情外

parent 644ef01b
......@@ -37,7 +37,7 @@ public class UserResourceServiceImpl implements UserResourceService {
Map<Integer, Integer> map = new HashMap<>();
List<Map<String, Integer>> list = tabSysUserResourceMapper.countByResourceIds(enterpriseId, resourceIds);
for (Map<String, Integer> integerIntegerMap : list) {
map.put(integerIntegerMap.get("resourceId"), integerIntegerMap.get("brandCount").intValue());
map.put(integerIntegerMap.get("resourceId"), integerIntegerMap.get("brandCount") != null ? integerIntegerMap.get("brandCount").intValue() : 0);
}
return map;
} else {
......
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