查询部门时 若未进行云资源统计 填充0
This commit is contained in:
parent
36fe1f08e2
commit
3721c336c3
|
@ -2385,7 +2385,6 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
|
|||
List<Map<String, Object>> lcDept = sysDeptDao.selectLCDeptByUcsDeptName(params.get("deptId").toString());
|
||||
if (lcDept.isEmpty()) {
|
||||
logger.error("未查询到{}对应的浪潮系统部门", params.get("deptId").toString());
|
||||
// return new ArrayList<>();
|
||||
} else {
|
||||
StringBuilder sb = new StringBuilder("SELECT " +
|
||||
" COUNT( BSNUM ) AS \"count\", " +
|
||||
|
@ -2447,6 +2446,10 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
|
|||
countMap.put(item.get("type").toString(), Integer.parseInt(item.get("count").toString()));
|
||||
}
|
||||
});
|
||||
if (!cloud) {
|
||||
map.put("yzy", "0");
|
||||
map.put("ysp", "0");
|
||||
}
|
||||
resultList.add(map);
|
||||
});
|
||||
Integer total = 0;
|
||||
|
|
Loading…
Reference in New Issue