驳回测试

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

@ -410,6 +410,9 @@ public class DgComplianceInvestigationServiceImpl extends ServiceImpl<DgComplian
if (opinion == null || opinion.length() == 0) {
ExceptionCast.cast(GuaranteeCode.COMPLIANCE_INVESTIGATION_REMARK_NOT_NULL);
}
// 绑定该条数据的userId,表示该用户操作了该条数据
Boolean result3 = this.getBaseMapper().updateDgComplianceInvestigationUserIdById(iid, Integer.parseInt(userId));
if (result3) {
// 先改变所有的审核状态为驳回
Boolean result = this.getBaseMapper().updateAuditStatusByBusinessId(this.getComplianceInvestigation(iid).getBusinessId(),
StatusCode.SP_REJECT);
@ -428,6 +431,7 @@ public class DgComplianceInvestigationServiceImpl extends ServiceImpl<DgComplian
}
}
}
}
// 拒绝
if (status == 3) {
if (opinion == null || opinion.length() == 0) {

@ -136,7 +136,7 @@ public class DgLoanCommitteeConsiderServiceImpl extends ServiceImpl<DgLoanCommit
DgGuaranteeLetterAssignUser guaranteeLetterAssignUser = new DgGuaranteeLetterAssignUser();
guaranteeLetterAssignUser.setBusinessId(this.getBaseMapper().getDgLoanCommitteeConsider(dgLoanCommitteeConsiderRequest.getId())
.getBusinessId());
guaranteeLetterAssignUser.setUserId(this.getBaseMapper().getDgLoanCommitteeConsider(dgLoanCommitteeConsiderRequest.getId())
guaranteeLetterAssignUser.setCompanyId(this.getBaseMapper().getDgLoanCommitteeConsider(dgLoanCommitteeConsiderRequest.getId())
.getCompanyId());
System.out.println(guaranteeLetterAssignUser);
result1 = guaranteeLetterAssignUserService.saveGuaranteeLetter(guaranteeLetterAssignUser);
@ -189,6 +189,10 @@ public class DgLoanCommitteeConsiderServiceImpl extends ServiceImpl<DgLoanCommit
|| dgLoanCommitteeConsiderRequest.getRefuseOpinion().length() == 0) {
ExceptionCast.cast(GuaranteeCode.COMPLIANCE_INVESTIGATION_REMARK_NOT_NULL);
}
// 绑定该条数据的userId,表示该用户操作了该条数据
Boolean result4 = this.getBaseMapper().updateLoanCommitteeConsiderUserIdById(dgLoanCommitteeConsiderRequest.getId(),
Integer.parseInt(userId));
if (result4) {
// 先改变贷审会的审核状态为驳回
Boolean result = this.getBaseMapper().updateAuditStatusByBusinessId(
this.getBaseMapper().getDgLoanCommitteeConsider(dgLoanCommitteeConsiderRequest.getId()).getBusinessId(),
@ -217,6 +221,7 @@ public class DgLoanCommitteeConsiderServiceImpl extends ServiceImpl<DgLoanCommit
}
}
}
}
return false;
}
@ -260,6 +265,10 @@ public class DgLoanCommitteeConsiderServiceImpl extends ServiceImpl<DgLoanCommit
if (dgLoanCommitteeConsider.getDisagreePerson() != null && dgLoanCommitteeConsider.getDisagreePerson().length() != 0) {
dgLoanCommitteeConsiderInfoResponse.setDisagreePersons(dgLoanCommitteeConsider.getDisagreePerson().split(","));
}
// 贷审会通过时间
if (dgLoanCommitteeConsider.getPassingTime() != null) {
dgLoanCommitteeConsiderInfoResponse.setTime(dgLoanCommitteeConsider.getPassingTime());
}
BeanUtils.copyProperties(dgLoanCommitteeConsider, dgLoanCommitteeConsiderInfoResponse);
}
return dgLoanCommitteeConsiderInfoResponse;

@ -189,6 +189,9 @@ public class DgWorkConferenceConsiderServiceImpl extends ServiceImpl<DgWorkConfe
if (opinion == null || opinion.length() == 0) {
ExceptionCast.cast(GuaranteeCode.COMPLIANCE_INVESTIGATION_REMARK_NOT_NULL);
}
// 绑定该条数据的userId,表示该用户操作了该条数据
Boolean result4 = this.getBaseMapper().updateWorkConferenceUserIdById(id, Integer.parseInt(userId));
if (result4) {
// 先修改工作会的审核状态为驳回
Boolean result = this.getBaseMapper().updateAuditStatusByBusinessId(this.getBaseMapper()
.getWorkConferenceConsider(id).getBusinessId(), StatusCode.SP_REJECT);
@ -212,6 +215,7 @@ public class DgWorkConferenceConsiderServiceImpl extends ServiceImpl<DgWorkConfe
}
}
}
}
return false;
}

Loading…
Cancel
Save