Commit a3778e1f by 范富荣

优化查询督导任务未完成数统计逻辑

1 parent d4f1e816
...@@ -1163,8 +1163,10 @@ public class SupervisorTaskInfoService { ...@@ -1163,8 +1163,10 @@ public class SupervisorTaskInfoService {
} }
Map<Integer, Integer> map = new HashMap<>(); Map<Integer, Integer> map = new HashMap<>();
for (Map<String, Object> row : list) { for (Map<String, Object> row : list) {
Integer taskType = (Integer) row.get("taskType"); Number taskTypeNum = (Number) row.get("taskType");
Long count = (Long) row.get("count"); Number countNum = (Number) row.get("count");
Integer taskType = taskTypeNum != null ? taskTypeNum.intValue() : null;
Long count = countNum != null ? countNum.longValue() : null;
if (taskType != null) { if (taskType != null) {
map.put(taskType, count != null ? count.intValue() : 0); map.put(taskType, count != null ? count.intValue() : 0);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!