|
|
|
@ -144,11 +144,23 @@ public class DgEfficiencyController { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
//转换任务节点
|
|
|
|
|
//转换任务节点,并统计操作状态个数
|
|
|
|
|
responseList.forEach(personalEfficiencyListResponse -> { |
|
|
|
|
String taskNode = personalEfficiencyListResponse.getTaskNode(); |
|
|
|
|
if (taskNode!=null){ |
|
|
|
|
String converter = TaskNodeUtil.converter(taskNode); |
|
|
|
|
personalEfficiencyListResponse.setTaskNode(converter); |
|
|
|
|
} |
|
|
|
|
if (personalEfficiencyListResponse.getOperatingStatus()!=null){ |
|
|
|
|
switch (personalEfficiencyListResponse.getOperatingStatus()){ |
|
|
|
|
case 0: |
|
|
|
|
personalEfficiencyListResponse.setInitiateNum(personalEfficiencyListResponse.getInitiateNum()+1); |
|
|
|
|
case 1: |
|
|
|
|
personalEfficiencyListResponse.setPendingNum(personalEfficiencyListResponse.getPendingNum()+1); |
|
|
|
|
case 2: |
|
|
|
|
personalEfficiencyListResponse.setProcessedNum(personalEfficiencyListResponse.getProcessedNum()+1); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
return ResponseResult.SUCCESS(responseList); |
|
|
|
|