|
|
@ -284,10 +284,11 @@ public class DgComplianceInvestigationServiceImpl extends ServiceImpl<DgComplian |
|
|
|
// 1.2.若最新操作人为C角或法规部领导,表示C角调查通过后发送过来的数据或者法规部领导驳回的数据
|
|
|
|
// 1.2.若最新操作人为C角或法规部领导,表示C角调查通过后发送过来的数据或者法规部领导驳回的数据
|
|
|
|
// 同意
|
|
|
|
// 同意
|
|
|
|
if (status == 1) { |
|
|
|
if (status == 1) { |
|
|
|
|
|
|
|
Integer auditStatus = this.getBaseMapper().getAuditStatusByBusinessId(this.getComplianceInvestigation(iid).getBusinessId(), |
|
|
|
|
|
|
|
PromptSuccess.FG_JL_ID); |
|
|
|
Boolean result = this.getBaseMapper().check(iid, opinion, new Date(), |
|
|
|
Boolean result = this.getBaseMapper().check(iid, opinion, new Date(), |
|
|
|
StatusCode.SP_IN_REVIEW, StatusCode.CZ_PROCESSED, Integer.parseInt(userId)); |
|
|
|
StatusCode.SP_IN_REVIEW, StatusCode.CZ_PROCESSED, Integer.parseInt(userId)); |
|
|
|
if (result) { |
|
|
|
if (result) { |
|
|
|
Integer auditStatus = this.getBaseMapper().getAuditStatusByBusinessId(this.getComplianceInvestigation(iid).getBusinessId(), PromptSuccess.FG_JL_ID); |
|
|
|
|
|
|
|
Boolean result1; |
|
|
|
Boolean result1; |
|
|
|
if (StatusCode.SP_REJECT.equals(auditStatus)) { |
|
|
|
if (StatusCode.SP_REJECT.equals(auditStatus)) { |
|
|
|
// 表示为法规部领导驳回的数据,先更新审批状态为审核中
|
|
|
|
// 表示为法规部领导驳回的数据,先更新审批状态为审核中
|
|
|
@ -422,7 +423,7 @@ public class DgComplianceInvestigationServiceImpl extends ServiceImpl<DgComplian |
|
|
|
if (result1) { |
|
|
|
if (result1) { |
|
|
|
// 最后改变法规部经理的这条数据的操作状态为待处理
|
|
|
|
// 最后改变法规部经理的这条数据的操作状态为待处理
|
|
|
|
Boolean result2 = this.getBaseMapper().updateToAudit(this.getComplianceInvestigation(iid).getBusinessId(), |
|
|
|
Boolean result2 = this.getBaseMapper().updateToAudit(this.getComplianceInvestigation(iid).getBusinessId(), |
|
|
|
StatusCode.CZ_ON_HAND, PromptSuccess.FG_LD_ID); |
|
|
|
StatusCode.CZ_ON_HAND, PromptSuccess.FG_JL_ID); |
|
|
|
if (result2) { |
|
|
|
if (result2) { |
|
|
|
// 在业务流程表中插入一条法规领导驳回的数据
|
|
|
|
// 在业务流程表中插入一条法规领导驳回的数据
|
|
|
|
return AuditProcessUtil.save(this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), |
|
|
|
return AuditProcessUtil.save(this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), |
|
|
@ -470,16 +471,21 @@ public class DgComplianceInvestigationServiceImpl extends ServiceImpl<DgComplian |
|
|
|
public DgComplianceInvestigationInfoResponse query(Integer iid) { |
|
|
|
public DgComplianceInvestigationInfoResponse query(Integer iid) { |
|
|
|
DgComplianceInvestigationInfoResponse dgComplianceInvestigationInfoResponse = new DgComplianceInvestigationInfoResponse(); |
|
|
|
DgComplianceInvestigationInfoResponse dgComplianceInvestigationInfoResponse = new DgComplianceInvestigationInfoResponse(); |
|
|
|
// 担保领导的数据id
|
|
|
|
// 担保领导的数据id
|
|
|
|
Integer guaranteeId = this.getBaseMapper().getGuaranteeId(this.getComplianceInvestigation(iid).getBusinessId(), |
|
|
|
Integer guaranteeId = this.getBaseMapper().getGuaranteeId(this.getComplianceInvestigation(iid).getBusinessId(), PromptSuccess.DB_LD_ID); |
|
|
|
PromptSuccess.DB_LD_ID); |
|
|
|
if (guaranteeId != null) { |
|
|
|
|
|
|
|
// 担保详情
|
|
|
|
|
|
|
|
GuaranteeDetailResponse guaranteeDetailResponse = guaranteeAssignUserService.guaranteeDetail(guaranteeId); |
|
|
|
|
|
|
|
dgComplianceInvestigationInfoResponse.setGuaranteeDetailResponse(guaranteeDetailResponse); |
|
|
|
|
|
|
|
} |
|
|
|
// 资产领导的数据id
|
|
|
|
// 资产领导的数据id
|
|
|
|
Integer dgAssetsInvestigationId = this.getBaseMapper().getDgAssetsInvestigationId(this.getComplianceInvestigation(iid).getBusinessId(), |
|
|
|
Integer dgAssetsInvestigationId = this.getBaseMapper().getDgAssetsInvestigationId(this.getComplianceInvestigation(iid).getBusinessId(), |
|
|
|
PromptSuccess.ZC_LD_ID); |
|
|
|
PromptSuccess.ZC_LD_ID); |
|
|
|
// 担保详情
|
|
|
|
if (dgAssetsInvestigationId != null) { |
|
|
|
GuaranteeDetailResponse guaranteeDetailResponse = guaranteeAssignUserService.guaranteeDetail(guaranteeId); |
|
|
|
// 资产详情
|
|
|
|
// 资产详情
|
|
|
|
AssetsDetailResponse assetsDetailResponse = dgAssetsInvestigationService.assetsDetail(dgAssetsInvestigationId); |
|
|
|
AssetsDetailResponse assetsDetailResponse = dgAssetsInvestigationService.assetsDetail(dgAssetsInvestigationId); |
|
|
|
dgComplianceInvestigationInfoResponse.setAssetsResponse(assetsDetailResponse.getAssetsResponse()); |
|
|
|
// 合规附件和意见
|
|
|
|
} |
|
|
|
|
|
|
|
// 合规调查附件和意见
|
|
|
|
DgComplianceInvestigation dgComplianceInvestigation = this.getBaseMapper().queryDgComplianceInvestigation(iid); |
|
|
|
DgComplianceInvestigation dgComplianceInvestigation = this.getBaseMapper().queryDgComplianceInvestigation(iid); |
|
|
|
if (dgComplianceInvestigation != null) { |
|
|
|
if (dgComplianceInvestigation != null) { |
|
|
|
if (dgComplianceInvestigation.getFileUrl() != null && dgComplianceInvestigation.getFileUrl().length() != 0) { |
|
|
|
if (dgComplianceInvestigation.getFileUrl() != null && dgComplianceInvestigation.getFileUrl().length() != 0) { |
|
|
@ -490,10 +496,6 @@ public class DgComplianceInvestigationServiceImpl extends ServiceImpl<DgComplian |
|
|
|
dgComplianceInvestigationInfoResponse.setOpinion(dgComplianceInvestigation.getOpinion()); |
|
|
|
dgComplianceInvestigationInfoResponse.setOpinion(dgComplianceInvestigation.getOpinion()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
// 统一返回
|
|
|
|
|
|
|
|
dgComplianceInvestigationInfoResponse.setGuaranteeDetailResponse(guaranteeDetailResponse); |
|
|
|
|
|
|
|
dgComplianceInvestigationInfoResponse.setAssetsResponse(assetsDetailResponse.getAssetsResponse()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return dgComplianceInvestigationInfoResponse; |
|
|
|
return dgComplianceInvestigationInfoResponse; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|