diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgEfficiencyController.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgEfficiencyController.java index 139e1147..ebb70ad4 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgEfficiencyController.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgEfficiencyController.java @@ -144,11 +144,23 @@ public class DgEfficiencyController { } } } - //转换任务节点 + //转换任务节点,并统计操作状态个数 responseList.forEach(personalEfficiencyListResponse -> { String taskNode = personalEfficiencyListResponse.getTaskNode(); - String converter = TaskNodeUtil.converter(taskNode); - personalEfficiencyListResponse.setTaskNode(converter); + 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); diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/PersonalEfficiencyListResponse.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/PersonalEfficiencyListResponse.java index bddd6151..50d80a57 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/PersonalEfficiencyListResponse.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/PersonalEfficiencyListResponse.java @@ -21,6 +21,18 @@ public class PersonalEfficiencyListResponse { @ApiModelProperty(value = "业务id") private Integer businessId; + @ExcelIgnore + @ApiModelProperty("发起数") + private Integer initiateNum = 0; + + @ExcelIgnore + @ApiModelProperty("待处理数") + private Integer pendingNum = 0; + + @ExcelIgnore + @ApiModelProperty("已处理数") + private Integer processedNum = 0; + @ExcelIgnore @ApiModelProperty(value = "提单人") private Integer applicantId; diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/util/TaskNodeUtil.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/util/TaskNodeUtil.java index 47a1f6de..130eb60e 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/util/TaskNodeUtil.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/util/TaskNodeUtil.java @@ -1,6 +1,5 @@ package com.daqing.financial.guarantee.util; -import com.alibaba.excel.metadata.CellData; /** * @Author chen