This commit is contained in:
wangliwen 2022-09-26 14:21:46 +08:00
parent c64c3b4278
commit 5edf6803e9
1 changed files with 9 additions and 9 deletions

View File

@ -939,10 +939,10 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
if (deptIds.isEmpty()) {
return resultMap;
}
String deptName=null;
String deptName = null;
SysDeptEntity deptEntity = sysDeptDao.selectById(deptIds.get(0));
if(deptEntity != null){
deptName=deptEntity.getName();
if (deptEntity != null) {
deptName = deptEntity.getName();
}
List<Map> resourceList = resourceDao.selectByDeptId(deptIds.get(0));
HashMap<String, Object> maxdeptMap = new HashMap<>();
@ -2033,9 +2033,9 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
});
resultList.add(map);
});
Integer total=0;
for(Integer count : countMap.values()){
total+=count;
Integer total = 0;
for (Integer count : countMap.values()) {
total += count;
}
countMap.put("count", total);
HashMap<String, Object> count = new HashMap<>();
@ -2065,9 +2065,9 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
});
resultList.add(map);
});
Integer total=0;
for(Integer count : countMap.values()){
total+=count;
Integer total = 0;
for (Integer count : countMap.values()) {
total += count;
}
countMap.put("count", total);
HashMap<String, Object> count = new HashMap<>();