|
|
|
@ -7,6 +7,7 @@ import com.daqing.financial.guarantee.model.response.ApprovalNum; |
|
|
|
|
import com.daqing.financial.guarantee.model.response.TodayApprovalRecordResponse; |
|
|
|
|
import com.daqing.financial.guarantee.service.IDgAuditProcessService; |
|
|
|
|
import com.daqing.financial.guarantee.util.R; |
|
|
|
|
import com.daqing.financial.guarantee.util.TaskNodeUtil; |
|
|
|
|
import com.daqing.framework.domain.guarantee.DgAuditProcess; |
|
|
|
|
import com.daqing.framework.domain.guarantee.po.ProcessPO; |
|
|
|
|
import com.daqing.framework.model.response.ResponseResult; |
|
|
|
@ -82,7 +83,7 @@ public class DgAuditProcessController { |
|
|
|
|
return ResponseResult.SUCCESS(processPO); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "今日审批记录") |
|
|
|
|
@ApiOperation(value = "今日审批记录",response = TodayApprovalRecordResponse.class) |
|
|
|
|
@GetMapping("todayApprovalRecord") |
|
|
|
|
public R nowadaysAuditProcess(){ |
|
|
|
|
List<TodayApprovalRecordResponse> approvalRecords = auditProcessService.todayApprovalRecord(); |
|
|
|
@ -90,6 +91,11 @@ public class DgAuditProcessController { |
|
|
|
|
//统计状态个数
|
|
|
|
|
approvalRecords.forEach(todayApprovalRecordResponse -> { |
|
|
|
|
if (todayApprovalRecordResponse.getStatus()!=null){ |
|
|
|
|
String taskNode = todayApprovalRecordResponse.getTaskNode(); |
|
|
|
|
if (taskNode!=null){ |
|
|
|
|
String converter = TaskNodeUtil.converter(taskNode); |
|
|
|
|
todayApprovalRecordResponse.setTaskNode(converter); |
|
|
|
|
} |
|
|
|
|
switch (todayApprovalRecordResponse.getStatus()){ |
|
|
|
|
case "0": |
|
|
|
|
approvalNum.setInitiateNum(approvalNum.getInitiateNum()+1); |
|
|
|
|