|
|
@ -67,6 +67,8 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss |
|
|
|
private DgBusinessProcessStatusMapper dgBusinessProcessStatusMapper; |
|
|
|
private DgBusinessProcessStatusMapper dgBusinessProcessStatusMapper; |
|
|
|
@Resource |
|
|
|
@Resource |
|
|
|
private DgApplyAmountListMapper dgApplyAmountListMapper; |
|
|
|
private DgApplyAmountListMapper dgApplyAmountListMapper; |
|
|
|
|
|
|
|
@Resource |
|
|
|
|
|
|
|
private DgLoanCommitteeConsiderMapper dgLoanCommitteeConsiderMapper; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -177,12 +179,12 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss |
|
|
|
DgGuaranteeAssignUser guaranteeAssignUser = this.getBaseMapper().selectById(investigateGuaranteeRequest.getId()); |
|
|
|
DgGuaranteeAssignUser guaranteeAssignUser = this.getBaseMapper().selectById(investigateGuaranteeRequest.getId()); |
|
|
|
|
|
|
|
|
|
|
|
//如果是属于被驳回的数据,并且调查通过(同意)
|
|
|
|
//如果是属于被驳回的数据,并且调查通过(同意)
|
|
|
|
if(guaranteeAssignUser.getStatus().equals(StatusCode.SP_REJECT)){ |
|
|
|
if(guaranteeAssignUser.getStatus().equals(StatusCode.SP_REJECT) && investigateGuaranteeRequest.getStatus().equals(StatusCode.SP_IN_REVIEW)){ |
|
|
|
|
|
|
|
|
|
|
|
//AB角调查,修改审核意见以及状态
|
|
|
|
//AB角调查,修改审核意见以及状态
|
|
|
|
DgGuaranteeAssignUser dgGuaranteeAssignUser = new DgGuaranteeAssignUser(); |
|
|
|
DgGuaranteeAssignUser dgGuaranteeAssignUser = new DgGuaranteeAssignUser(); |
|
|
|
dgGuaranteeAssignUser.setId(investigateGuaranteeRequest.getId());//主键id
|
|
|
|
dgGuaranteeAssignUser.setId(investigateGuaranteeRequest.getId());//主键id
|
|
|
|
dgGuaranteeAssignUser.setStatus(StatusCode.SP_REJECT);//状态为驳回(只有A,B角同时)
|
|
|
|
dgGuaranteeAssignUser.setStatus(StatusCode.SP_REJECT);//状态为驳回(只有A,B角同时同意,状态才改为审核中)
|
|
|
|
dgGuaranteeAssignUser.setOperatingStatus(StatusCode.CZ_PROCESSED);//操作状态设置为已处理
|
|
|
|
dgGuaranteeAssignUser.setOperatingStatus(StatusCode.CZ_PROCESSED);//操作状态设置为已处理
|
|
|
|
dgGuaranteeAssignUser.setRemark(investigateGuaranteeRequest.getApplyContent());//审核意见
|
|
|
|
dgGuaranteeAssignUser.setRemark(investigateGuaranteeRequest.getApplyContent());//审核意见
|
|
|
|
this.baseMapper.updateById(dgGuaranteeAssignUser); |
|
|
|
this.baseMapper.updateById(dgGuaranteeAssignUser); |
|
|
@ -244,18 +246,54 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss |
|
|
|
.eq("type",2).eq("status",StatusCode.SP_IN_REVIEW).eq("operating_status",StatusCode.CZ_PROCESSED)); |
|
|
|
.eq("type",2).eq("status",StatusCode.SP_IN_REVIEW).eq("operating_status",StatusCode.CZ_PROCESSED)); |
|
|
|
int sum2 = a+b; |
|
|
|
int sum2 = a+b; |
|
|
|
if(sum2==2){ |
|
|
|
if(sum2==2){ |
|
|
|
/* if(){//合规调查驳回情况处理
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else if(){//贷审会业务流程驳回情况处理
|
|
|
|
//如果合规调查C角状态为驳回,并且操作状态为已处理,同时此条数据也是被驳回来的数据,则为合规调查驳回情况处理
|
|
|
|
|
|
|
|
DgComplianceInvestigation investigation = dgComplianceInvestigationMapper.selectOne(new QueryWrapper<DgComplianceInvestigation>() |
|
|
|
|
|
|
|
.eq("business_id", guaranteeAssignUser.getBusinessId()).eq("role_id",PromptSuccess.FG_C_ID)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//如果贷审会状态为驳回,并且操作状态为已处理,同时此条数据也是被驳回来的数据,则为贷审会驳回情况处理
|
|
|
|
|
|
|
|
DgLoanCommitteeConsider consider = dgLoanCommitteeConsiderMapper.selectOne(new QueryWrapper<DgLoanCommitteeConsider>() |
|
|
|
|
|
|
|
.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<DgComplianceInvestigation>() |
|
|
|
|
|
|
|
.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<DgComplianceInvestigation>() |
|
|
|
|
|
|
|
.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<DgLoanCommitteeConsider>() |
|
|
|
|
|
|
|
.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<DgLoanCommitteeConsider>() |
|
|
|
|
|
|
|
.eq("business_id",guaranteeAssignUser.getBusinessId())); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}else{//正常情况处理*/
|
|
|
|
}else{//正常情况处理
|
|
|
|
DgGuaranteeAssignUser assignUser = new DgGuaranteeAssignUser(); |
|
|
|
DgGuaranteeAssignUser assignUser = new DgGuaranteeAssignUser(); |
|
|
|
assignUser.setRoleId(PromptSuccess.DB_JL_ID);//担保部经理
|
|
|
|
assignUser.setRoleId(PromptSuccess.DB_JL_ID);//担保部经理
|
|
|
|
assignUser.setStatus(StatusCode.SP_IN_REVIEW);//审批状态设置为审核中
|
|
|
|
assignUser.setStatus(StatusCode.SP_IN_REVIEW);//审批状态设置为审核中
|
|
|
|
assignUser.setOperatingStatus(StatusCode.CZ_ON_HAND);//操作状态设置为待处理
|
|
|
|
assignUser.setOperatingStatus(StatusCode.CZ_ON_HAND);//操作状态设置为待处理
|
|
|
|
this.baseMapper.update(assignUser,new QueryWrapper<DgGuaranteeAssignUser>().eq("business_id",guaranteeAssignUser.getBusinessId()) |
|
|
|
this.baseMapper.update(assignUser,new QueryWrapper<DgGuaranteeAssignUser>().eq("business_id",guaranteeAssignUser.getBusinessId()) |
|
|
|
.eq("type",3)); |
|
|
|
.eq("type",3)); |
|
|
|
//}
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|