...
This commit is contained in:
parent
c64c3b4278
commit
5edf6803e9
|
@ -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<>();
|
||||
|
|
Loading…
Reference in New Issue