Compare commits

..

3 Commits

Author SHA1 Message Date
wangliwen 7d82b523dc Merge branch 'master' into docker_package 2023-01-10 10:26:08 +08:00
wangliwen 26dc0e0c6d Merge branch 'dev' 2023-01-10 10:26:02 +08:00
wangliwen 3721c336c3 查询部门时 若未进行云资源统计 填充0 2023-01-10 10:25:54 +08:00
1 changed files with 4 additions and 1 deletions

View File

@ -2385,7 +2385,6 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
List<Map<String, Object>> lcDept = sysDeptDao.selectLCDeptByUcsDeptName(params.get("deptId").toString()); List<Map<String, Object>> lcDept = sysDeptDao.selectLCDeptByUcsDeptName(params.get("deptId").toString());
if (lcDept.isEmpty()) { if (lcDept.isEmpty()) {
logger.error("未查询到{}对应的浪潮系统部门", params.get("deptId").toString()); logger.error("未查询到{}对应的浪潮系统部门", params.get("deptId").toString());
// return new ArrayList<>();
} else { } else {
StringBuilder sb = new StringBuilder("SELECT " + StringBuilder sb = new StringBuilder("SELECT " +
" COUNT( BSNUM ) AS \"count\", " + " 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())); 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); resultList.add(map);
}); });
Integer total = 0; Integer total = 0;