运营月报 优化
正在显示
3 个修改的文件
包含
4 行增加
和
2 行删除
... | @@ -83,7 +83,7 @@ public class OperationReportController { | ... | @@ -83,7 +83,7 @@ public class OperationReportController { |
83 | List<Map<String, Object>> resMapList = new ArrayList<>(); | 83 | List<Map<String, Object>> resMapList = new ArrayList<>(); |
84 | for (String tmpDepartId : departIdArray) { | 84 | for (String tmpDepartId : departIdArray) { |
85 | String childDepartId = departService.getChildDepartId(tmpDepartId); | 85 | String childDepartId = departService.getChildDepartId(tmpDepartId); |
86 | SysDepart tmpSysDepart = departService.getById(departId); | 86 | SysDepart tmpSysDepart = departService.getById(tmpDepartId); |
87 | // 获取机构子集 | 87 | // 获取机构子集 |
88 | Map<String, Object> paramMap = new HashMap<>(); | 88 | Map<String, Object> paramMap = new HashMap<>(); |
89 | paramMap.put("startTime", startTime); | 89 | paramMap.put("startTime", startTime); |
... | @@ -92,7 +92,7 @@ public class OperationReportController { | ... | @@ -92,7 +92,7 @@ public class OperationReportController { |
92 | Map<String, Object> resMap = operationReportService.dataAnalysisOfMonth(paramMap); | 92 | Map<String, Object> resMap = operationReportService.dataAnalysisOfMonth(paramMap); |
93 | resMap.put("departId", tmpDepartId); | 93 | resMap.put("departId", tmpDepartId); |
94 | resMap.put("departName", sysDepartDictMap.get(tmpDepartId)); | 94 | resMap.put("departName", sysDepartDictMap.get(tmpDepartId)); |
95 | resMap.put("departType", tmpSysDepart.getDepartType()); | 95 | resMap.put("departType", tmpSysDepart != null ? tmpSysDepart.getDepartType() : ""); |
96 | resMapList.add(resMap); | 96 | resMapList.add(resMap); |
97 | } | 97 | } |
98 | return Result.ok(resMapList); | 98 | return Result.ok(resMapList); | ... | ... |
... | @@ -165,4 +165,6 @@ public class ReportTargetConfig { | ... | @@ -165,4 +165,6 @@ public class ReportTargetConfig { |
165 | private Integer delFlag; | 165 | private Integer delFlag; |
166 | 166 | ||
167 | private String targetPowerCost; | 167 | private String targetPowerCost; |
168 | |||
169 | private String targetWaterCostIn; | ||
168 | } | 170 | } | ... | ... |
-
请 注册 或 登录 后发表评论