驳回测试

master
river 4 years ago
parent 7a6dd6ed44
commit 920c19091e
  1. 32
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgComplianceInvestigationServiceImpl.java
  2. 55
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgLoanCommitteeConsiderServiceImpl.java
  3. 40
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgWorkConferenceConsiderServiceImpl.java

@ -410,20 +410,24 @@ public class DgComplianceInvestigationServiceImpl extends ServiceImpl<DgComplian
if (opinion == null || opinion.length() == 0) { if (opinion == null || opinion.length() == 0) {
ExceptionCast.cast(GuaranteeCode.COMPLIANCE_INVESTIGATION_REMARK_NOT_NULL); ExceptionCast.cast(GuaranteeCode.COMPLIANCE_INVESTIGATION_REMARK_NOT_NULL);
} }
// 先改变所有的审核状态为驳回 // 绑定该条数据的userId,表示该用户操作了该条数据
Boolean result = this.getBaseMapper().updateAuditStatusByBusinessId(this.getComplianceInvestigation(iid).getBusinessId(), Boolean result3 = this.getBaseMapper().updateDgComplianceInvestigationUserIdById(iid, Integer.parseInt(userId));
StatusCode.SP_REJECT); if (result3) {
if (result) { // 先改变所有的审核状态为驳回
// 再改变自己当前的操作状态为已处理 Boolean result = this.getBaseMapper().updateAuditStatusByBusinessId(this.getComplianceInvestigation(iid).getBusinessId(),
Boolean result1 = this.getBaseMapper().updateOperationStatusById(iid, StatusCode.CZ_PROCESSED, opinion); StatusCode.SP_REJECT);
if (result1) { if (result) {
// 最后改变法规部经理的这条数据的操作状态为待处理 // 再改变自己当前的操作状态为已处理
Boolean result2 = this.getBaseMapper().updateToAudit(this.getComplianceInvestigation(iid).getBusinessId(), Boolean result1 = this.getBaseMapper().updateOperationStatusById(iid, StatusCode.CZ_PROCESSED, opinion);
StatusCode.CZ_ON_HAND, PromptSuccess.FG_LD_ID); if (result1) {
if (result2) { // 最后改变法规部经理的这条数据的操作状态为待处理
// 在业务流程表中插入一条法规领导驳回的数据 Boolean result2 = this.getBaseMapper().updateToAudit(this.getComplianceInvestigation(iid).getBusinessId(),
return AuditProcessUtil.save(this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), StatusCode.CZ_ON_HAND, PromptSuccess.FG_LD_ID);
PromptSuccess.FG_LD_NAME, opinion, PromptSuccess.HG_PROCESS_ID); if (result2) {
// 在业务流程表中插入一条法规领导驳回的数据
return AuditProcessUtil.save(this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(),
PromptSuccess.FG_LD_NAME, opinion, PromptSuccess.HG_PROCESS_ID);
}
} }
} }
} }

@ -136,7 +136,7 @@ public class DgLoanCommitteeConsiderServiceImpl extends ServiceImpl<DgLoanCommit
DgGuaranteeLetterAssignUser guaranteeLetterAssignUser = new DgGuaranteeLetterAssignUser(); DgGuaranteeLetterAssignUser guaranteeLetterAssignUser = new DgGuaranteeLetterAssignUser();
guaranteeLetterAssignUser.setBusinessId(this.getBaseMapper().getDgLoanCommitteeConsider(dgLoanCommitteeConsiderRequest.getId()) guaranteeLetterAssignUser.setBusinessId(this.getBaseMapper().getDgLoanCommitteeConsider(dgLoanCommitteeConsiderRequest.getId())
.getBusinessId()); .getBusinessId());
guaranteeLetterAssignUser.setUserId(this.getBaseMapper().getDgLoanCommitteeConsider(dgLoanCommitteeConsiderRequest.getId()) guaranteeLetterAssignUser.setCompanyId(this.getBaseMapper().getDgLoanCommitteeConsider(dgLoanCommitteeConsiderRequest.getId())
.getCompanyId()); .getCompanyId());
System.out.println(guaranteeLetterAssignUser); System.out.println(guaranteeLetterAssignUser);
result1 = guaranteeLetterAssignUserService.saveGuaranteeLetter(guaranteeLetterAssignUser); result1 = guaranteeLetterAssignUserService.saveGuaranteeLetter(guaranteeLetterAssignUser);
@ -189,29 +189,34 @@ public class DgLoanCommitteeConsiderServiceImpl extends ServiceImpl<DgLoanCommit
|| dgLoanCommitteeConsiderRequest.getRefuseOpinion().length() == 0) { || dgLoanCommitteeConsiderRequest.getRefuseOpinion().length() == 0) {
ExceptionCast.cast(GuaranteeCode.COMPLIANCE_INVESTIGATION_REMARK_NOT_NULL); ExceptionCast.cast(GuaranteeCode.COMPLIANCE_INVESTIGATION_REMARK_NOT_NULL);
} }
// 先改变贷审会的审核状态为驳回 // 绑定该条数据的userId,表示该用户操作了该条数据
Boolean result = this.getBaseMapper().updateAuditStatusByBusinessId( Boolean result4 = this.getBaseMapper().updateLoanCommitteeConsiderUserIdById(dgLoanCommitteeConsiderRequest.getId(),
this.getBaseMapper().getDgLoanCommitteeConsider(dgLoanCommitteeConsiderRequest.getId()).getBusinessId(), Integer.parseInt(userId));
StatusCode.SP_REJECT); if (result4) {
if (result) { // 先改变贷审会的审核状态为驳回
// 再改变自己的操作状态为已处理 Boolean result = this.getBaseMapper().updateAuditStatusByBusinessId(
Boolean result1 = this.getBaseMapper().updateOperationStatusById(dgLoanCommitteeConsiderRequest.getId(), this.getBaseMapper().getDgLoanCommitteeConsider(dgLoanCommitteeConsiderRequest.getId()).getBusinessId(),
StatusCode.CZ_PROCESSED, dgLoanCommitteeConsiderRequest.getRefuseOpinion()); StatusCode.SP_REJECT);
if (result1) { if (result) {
// 改变担保部的审核状态为驳回 // 再改变自己的操作状态为已处理
Boolean result2 = dgGuaranteeAssignUserMapper.updateAuditStatusByBusinessId( Boolean result1 = this.getBaseMapper().updateOperationStatusById(dgLoanCommitteeConsiderRequest.getId(),
this.getBaseMapper().getDgLoanCommitteeConsider(dgLoanCommitteeConsiderRequest.getId()).getBusinessId(), StatusCode.CZ_PROCESSED, dgLoanCommitteeConsiderRequest.getRefuseOpinion());
StatusCode.SP_REJECT); if (result1) {
if (result2) { // 改变担保部的审核状态为驳回
// 修改AB角的操作状态为待处理 Boolean result2 = dgGuaranteeAssignUserMapper.updateAuditStatusByBusinessId(
Boolean result3 = dgGuaranteeAssignUserMapper.updateOperationStatusById(
this.getBaseMapper().getDgLoanCommitteeConsider(dgLoanCommitteeConsiderRequest.getId()).getBusinessId(), this.getBaseMapper().getDgLoanCommitteeConsider(dgLoanCommitteeConsiderRequest.getId()).getBusinessId(),
StatusCode.CZ_ON_HAND); StatusCode.SP_REJECT);
if (result3) { if (result2) {
// 在业务流程表中插入一条驳回成功的数据(记得带上驳回的意见) // 修改AB角的操作状态为待处理
return AuditProcessUtil.save(this.getBaseMapper().getDgLoanCommitteeConsider( Boolean result3 = dgGuaranteeAssignUserMapper.updateOperationStatusById(
dgLoanCommitteeConsiderRequest.getId()).getBusinessId(), DgApplyAmountInfoController.getAccount(), this.getBaseMapper().getDgLoanCommitteeConsider(dgLoanCommitteeConsiderRequest.getId()).getBusinessId(),
PromptSuccess.DSH_NAME, dgLoanCommitteeConsiderRequest.getRefuseOpinion(), PromptSuccess.DSH_PROCESS_ID); StatusCode.CZ_ON_HAND);
if (result3) {
// 在业务流程表中插入一条驳回成功的数据(记得带上驳回的意见)
return AuditProcessUtil.save(this.getBaseMapper().getDgLoanCommitteeConsider(
dgLoanCommitteeConsiderRequest.getId()).getBusinessId(), DgApplyAmountInfoController.getAccount(),
PromptSuccess.DSH_NAME, dgLoanCommitteeConsiderRequest.getRefuseOpinion(), PromptSuccess.DSH_PROCESS_ID);
}
} }
} }
} }
@ -260,6 +265,10 @@ public class DgLoanCommitteeConsiderServiceImpl extends ServiceImpl<DgLoanCommit
if (dgLoanCommitteeConsider.getDisagreePerson() != null && dgLoanCommitteeConsider.getDisagreePerson().length() != 0) { if (dgLoanCommitteeConsider.getDisagreePerson() != null && dgLoanCommitteeConsider.getDisagreePerson().length() != 0) {
dgLoanCommitteeConsiderInfoResponse.setDisagreePersons(dgLoanCommitteeConsider.getDisagreePerson().split(",")); dgLoanCommitteeConsiderInfoResponse.setDisagreePersons(dgLoanCommitteeConsider.getDisagreePerson().split(","));
} }
// 贷审会通过时间
if (dgLoanCommitteeConsider.getPassingTime() != null) {
dgLoanCommitteeConsiderInfoResponse.setTime(dgLoanCommitteeConsider.getPassingTime());
}
BeanUtils.copyProperties(dgLoanCommitteeConsider, dgLoanCommitteeConsiderInfoResponse); BeanUtils.copyProperties(dgLoanCommitteeConsider, dgLoanCommitteeConsiderInfoResponse);
} }
return dgLoanCommitteeConsiderInfoResponse; return dgLoanCommitteeConsiderInfoResponse;

@ -189,24 +189,28 @@ public class DgWorkConferenceConsiderServiceImpl extends ServiceImpl<DgWorkConfe
if (opinion == null || opinion.length() == 0) { if (opinion == null || opinion.length() == 0) {
ExceptionCast.cast(GuaranteeCode.COMPLIANCE_INVESTIGATION_REMARK_NOT_NULL); ExceptionCast.cast(GuaranteeCode.COMPLIANCE_INVESTIGATION_REMARK_NOT_NULL);
} }
// 先修改工作会的审核状态为驳回 // 绑定该条数据的userId,表示该用户操作了该条数据
Boolean result = this.getBaseMapper().updateAuditStatusByBusinessId(this.getBaseMapper() Boolean result4 = this.getBaseMapper().updateWorkConferenceUserIdById(id, Integer.parseInt(userId));
.getWorkConferenceConsider(id).getBusinessId(), StatusCode.SP_REJECT); if (result4) {
if (result) { // 先修改工作会的审核状态为驳回
// 再修改自己的状态为已处理 Boolean result = this.getBaseMapper().updateAuditStatusByBusinessId(this.getBaseMapper()
Boolean result1 = this.getBaseMapper().updateOperationStatusById(id, StatusCode.CZ_PROCESSED, opinion); .getWorkConferenceConsider(id).getBusinessId(), StatusCode.SP_REJECT);
if (result1) { if (result) {
// 修改合规调查的审核状态为驳回 // 再修改自己的状态为已处理
Boolean result2 = dgComplianceInvestigationMapper.updateAuditStatusByBusinessId(this.getBaseMapper() Boolean result1 = this.getBaseMapper().updateOperationStatusById(id, StatusCode.CZ_PROCESSED, opinion);
.getWorkConferenceConsider(id).getBusinessId(), StatusCode.SP_REJECT); if (result1) {
if (result2) { // 修改合规调查的审核状态为驳回
// 修改法规领导的操作状态为待处理 Boolean result2 = dgComplianceInvestigationMapper.updateAuditStatusByBusinessId(this.getBaseMapper()
Boolean result3 = dgComplianceInvestigationMapper.updateToAudit(this.getBaseMapper() .getWorkConferenceConsider(id).getBusinessId(), StatusCode.SP_REJECT);
.getWorkConferenceConsider(id).getBusinessId(), StatusCode.CZ_ON_HAND, PromptSuccess.FG_LD_ID); if (result2) {
if (result3) { // 修改法规领导的操作状态为待处理
// 在业务流程表中插入一条工作会驳回的数据 Boolean result3 = dgComplianceInvestigationMapper.updateToAudit(this.getBaseMapper()
return AuditProcessUtil.save(this.getBaseMapper().getWorkConferenceConsider(id).getBusinessId(), DgApplyAmountInfoController.getAccount(), .getWorkConferenceConsider(id).getBusinessId(), StatusCode.CZ_ON_HAND, PromptSuccess.FG_LD_ID);
PromptSuccess.GZU_NAME, opinion, PromptSuccess.GZU_PROCESS_ID); if (result3) {
// 在业务流程表中插入一条工作会驳回的数据
return AuditProcessUtil.save(this.getBaseMapper().getWorkConferenceConsider(id).getBusinessId(), DgApplyAmountInfoController.getAccount(),
PromptSuccess.GZU_NAME, opinion, PromptSuccess.GZU_PROCESS_ID);
}
} }
} }
} }

Loading…
Cancel
Save