5c551cb5 sonin

运营月报 优化

1 个父辈 799381f9
......@@ -83,7 +83,7 @@ public class OperationReportController {
List<Map<String, Object>> resMapList = new ArrayList<>();
for (String tmpDepartId : departIdArray) {
String childDepartId = departService.getChildDepartId(tmpDepartId);
SysDepart tmpSysDepart = departService.getById(departId);
SysDepart tmpSysDepart = departService.getById(tmpDepartId);
// 获取机构子集
Map<String, Object> paramMap = new HashMap<>();
paramMap.put("startTime", startTime);
......@@ -92,7 +92,7 @@ public class OperationReportController {
Map<String, Object> resMap = operationReportService.dataAnalysisOfMonth(paramMap);
resMap.put("departId", tmpDepartId);
resMap.put("departName", sysDepartDictMap.get(tmpDepartId));
resMap.put("departType", tmpSysDepart.getDepartType());
resMap.put("departType", tmpSysDepart != null ? tmpSysDepart.getDepartType() : "");
resMapList.add(resMap);
}
return Result.ok(resMapList);
......
......@@ -165,4 +165,6 @@ public class ReportTargetConfig {
private Integer delFlag;
private String targetPowerCost;
private String targetWaterCostIn;
}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!