|
@@ -153,12 +153,13 @@ public class SysStatisticManager {
|
|
|
long total = 0;
|
|
|
for (WmTaskType taskType : taskTypes) {
|
|
|
|
|
|
- Map<String, Object> taskTypeAndSumMap = new HashMap<>(2);
|
|
|
+ Map<String, Object> taskTypeAndSumMap = new HashMap<>(3);
|
|
|
List<WmTask> wmTasks = taskTypeAndTaskMap.get(taskType.getId());
|
|
|
|
|
|
long sum = CollUtil.isEmpty(wmTasks) ? 0L : wmTasks.stream().mapToLong(WmTask::getScore).sum();
|
|
|
taskTypeAndSumMap.put("taskTypeName", taskType.getTaskTypeName());
|
|
|
taskTypeAndSumMap.put("sum", sum);
|
|
|
+ taskTypeAndSumMap.put("count", CollUtil.isEmpty(wmTasks) ? 0L : wmTasks.size());
|
|
|
total += sum;
|
|
|
taskTypeStatList.add(taskTypeAndSumMap);
|
|
|
|