From 24b70e52ff21afe0b7d2d73fcaa2c1deada3da96 Mon Sep 17 00:00:00 2001 From: shijie <648688341@qq.com> Date: Wed, 9 Dec 2020 16:28:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E8=A7=84=E8=B0=83=E6=9F=A5file?= =?UTF-8?q?=E6=94=B9=E4=B8=BAfileUrl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DgComplianceInvestigationServiceImpl.java | 4 +- .../DgGuaranteeAssignUserServiceImpl.java | 52 ++++++++++++++++--- .../DgComplianceInvestigationMapper.xml | 16 +++++- .../guarantee/DgComplianceInvestigation.java | 2 +- 4 files changed, 63 insertions(+), 11 deletions(-) diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgComplianceInvestigationServiceImpl.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgComplianceInvestigationServiceImpl.java index 976770f6..1cf02614 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgComplianceInvestigationServiceImpl.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgComplianceInvestigationServiceImpl.java @@ -478,8 +478,8 @@ public class DgComplianceInvestigationServiceImpl extends ServiceImpl() + .eq("business_id", guaranteeAssignUser.getBusinessId()).eq("role_id",PromptSuccess.FG_C_ID)); + + //如果贷审会状态为驳回,并且操作状态为已处理,同时此条数据也是被驳回来的数据,则为贷审会驳回情况处理 + DgLoanCommitteeConsider consider = dgLoanCommitteeConsiderMapper.selectOne(new QueryWrapper() + .eq("business_id", guaranteeAssignUser.getBusinessId()).eq("role_id", PromptSuccess.DSH_ID)); + + if(investigation != null && investigation.getAuditStatus().equals(StatusCode.SP_REJECT) && investigation.getOperationStatus().equals(StatusCode.CZ_PROCESSED) + && guaranteeAssignUser.getStatus().equals(StatusCode.SP_REJECT)){//合规调查驳回情况处理 + + //调查通过,修改法规经理操作状态为待处理,其他子业务为审核中 + if(investigateGuaranteeRequest.getStatus().equals(StatusCode.SP_IN_REVIEW)){//如果调查通过 + DgComplianceInvestigation dgCompliance = new DgComplianceInvestigation(); + dgCompliance.setOperationStatus(StatusCode.CZ_ON_HAND);//待处理 + dgComplianceInvestigationMapper.update(dgCompliance,new QueryWrapper() + .eq("business_id",guaranteeAssignUser.getBusinessId()).eq("role_id",PromptSuccess.FG_JL_ID)); + + DgComplianceInvestigation dgInvestigation = new DgComplianceInvestigation(); + dgInvestigation.setAuditStatus(StatusCode.SP_IN_REVIEW);//审核中 + dgComplianceInvestigationMapper.update(dgInvestigation,new QueryWrapper() + .eq("business_id",guaranteeAssignUser.getBusinessId())); + } + }else if(consider != null && consider.getStatus().equals(StatusCode.SP_REJECT) && consider.getOperatingStatus().equals(StatusCode.CZ_PROCESSED) + && guaranteeAssignUser.getStatus().equals(StatusCode.SP_REJECT)){//贷审会业务流程驳回情况处理 + + //调查通过,修改贷审会操作状态为待处理,其他子业务为审核中 + if(investigateGuaranteeRequest.getStatus().equals(StatusCode.SP_IN_REVIEW)){//如果调查通过 + DgLoanCommitteeConsider dgLoanCommittee = new DgLoanCommitteeConsider(); + dgLoanCommittee.setOperatingStatus(StatusCode.CZ_ON_HAND);//待处理 + dgLoanCommitteeConsiderMapper.update(dgLoanCommittee,new QueryWrapper() + .eq("business_id",guaranteeAssignUser.getBusinessId()).eq("role_id",PromptSuccess.DSH_ID)); + + DgLoanCommitteeConsider dgConsider = new DgLoanCommitteeConsider(); + dgConsider.setStatus(StatusCode.SP_IN_REVIEW);//审核中 + dgLoanCommitteeConsiderMapper.update(dgConsider,new QueryWrapper() + .eq("business_id",guaranteeAssignUser.getBusinessId())); + } + + }else{//正常情况处理 DgGuaranteeAssignUser assignUser = new DgGuaranteeAssignUser(); assignUser.setRoleId(PromptSuccess.DB_JL_ID);//担保部经理 assignUser.setStatus(StatusCode.SP_IN_REVIEW);//审批状态设置为审核中 assignUser.setOperatingStatus(StatusCode.CZ_ON_HAND);//操作状态设置为待处理 this.baseMapper.update(assignUser,new QueryWrapper().eq("business_id",guaranteeAssignUser.getBusinessId()) .eq("type",3)); - //} + } } diff --git a/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgComplianceInvestigationMapper.xml b/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgComplianceInvestigationMapper.xml index f60f189b..ec31926f 100644 --- a/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgComplianceInvestigationMapper.xml +++ b/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgComplianceInvestigationMapper.xml @@ -2,6 +2,20 @@ + + + + + + + + + + + + + + - SELECT file_url AS file,opinion AS opinion + SELECT file_url,opinion AS opinion FROM dg_compliance_investigation WHERE id = #{iid} diff --git a/dq-framework-model/src/main/java/com/daqing/framework/domain/guarantee/DgComplianceInvestigation.java b/dq-framework-model/src/main/java/com/daqing/framework/domain/guarantee/DgComplianceInvestigation.java index 71df0f78..5842e323 100644 --- a/dq-framework-model/src/main/java/com/daqing/framework/domain/guarantee/DgComplianceInvestigation.java +++ b/dq-framework-model/src/main/java/com/daqing/framework/domain/guarantee/DgComplianceInvestigation.java @@ -51,7 +51,7 @@ public class DgComplianceInvestigation implements Serializable { * 附件 */ @ApiModelProperty("附件") - private String file; + private String fileUrl; /** * 调查意见