From 29d7497cf1c929a64d7ff9c58f6accd70eb55759 Mon Sep 17 00:00:00 2001 From: chen <1251790704@qq.com> Date: Fri, 4 Dec 2020 16:25:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E8=BF=9B=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../guarantee/controller/DgAuditProcessController.java | 10 ++++++++++ .../guarantee/mapper/DgAuditProcessMapper.java | 1 + .../guarantee/service/IDgAuditProcessService.java | 2 ++ .../service/impl/DgAuditProcessServiceImpl.java | 5 +++++ .../mapper/guarantee/DgAuditProcessMapper.xml | 4 ++++ 5 files changed, 22 insertions(+) diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgAuditProcessController.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgAuditProcessController.java index 37d27179..a6e3c492 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgAuditProcessController.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgAuditProcessController.java @@ -43,4 +43,14 @@ public class DgAuditProcessController { return ResponseResult.SUCCESS(processList); } + + @ApiOperation(value = "审核流程进程") + @GetMapping("/getProcessId") + public ResponseResult getProcessId( + @ApiParam(name = "businessId", value = "业务id", required = true) + @RequestParam String businessId){ + Integer processId = auditProcessService.getProcessId(businessId); + return ResponseResult.SUCCESS(processId); + } + } diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/mapper/DgAuditProcessMapper.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/mapper/DgAuditProcessMapper.java index f282184d..ffdea12b 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/mapper/DgAuditProcessMapper.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/mapper/DgAuditProcessMapper.java @@ -20,4 +20,5 @@ public interface DgAuditProcessMapper extends BaseMapper { List selectAuditProcessList(@Param("businessId") String businessId,@Param("processId") String processId); + Integer selectProcessId(String businessId); } diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/IDgAuditProcessService.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/IDgAuditProcessService.java index 0a6c13b6..a1ef320d 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/IDgAuditProcessService.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/IDgAuditProcessService.java @@ -16,4 +16,6 @@ import java.util.List; public interface IDgAuditProcessService extends IService { List queryProcessList(String businessId,String processId); + + Integer getProcessId(String businessId); } diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgAuditProcessServiceImpl.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgAuditProcessServiceImpl.java index 224a8dad..af69cdb8 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgAuditProcessServiceImpl.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgAuditProcessServiceImpl.java @@ -24,4 +24,9 @@ public class DgAuditProcessServiceImpl extends ServiceImpl auditProcessList = baseMapper.selectAuditProcessList(businessId,processId); return auditProcessList; } + + @Override + public Integer getProcessId(String businessId) { + return baseMapper.selectProcessId(businessId); + } } diff --git a/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgAuditProcessMapper.xml b/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgAuditProcessMapper.xml index e6680ac6..6d66a4ae 100644 --- a/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgAuditProcessMapper.xml +++ b/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgAuditProcessMapper.xml @@ -23,4 +23,8 @@ + +