|
|
@ -4,13 +4,11 @@ import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
import com.daqing.financial.guarantee.controller.DgApplyAmountInfoController; |
|
|
|
import com.daqing.financial.guarantee.controller.DgApplyAmountInfoController; |
|
|
|
import com.daqing.financial.guarantee.feign.HrmsFeignService; |
|
|
|
import com.daqing.financial.guarantee.feign.HrmsFeignService; |
|
|
|
|
|
|
|
import com.daqing.financial.guarantee.mapper.DgAssetsInvestigationMapper; |
|
|
|
import com.daqing.financial.guarantee.mapper.DgComplianceInvestigationMapper; |
|
|
|
import com.daqing.financial.guarantee.mapper.DgComplianceInvestigationMapper; |
|
|
|
import com.daqing.financial.guarantee.mapper.DgGuaranteeAssignUserMapper; |
|
|
|
import com.daqing.financial.guarantee.mapper.DgGuaranteeAssignUserMapper; |
|
|
|
import com.daqing.financial.guarantee.model.request.DgComplianceInvestigationRequest; |
|
|
|
import com.daqing.financial.guarantee.model.request.DgComplianceInvestigationRequest; |
|
|
|
import com.daqing.financial.guarantee.model.response.AssetsDetailResponse; |
|
|
|
import com.daqing.financial.guarantee.model.response.*; |
|
|
|
import com.daqing.financial.guarantee.model.response.DgComplianceInvestigationInfoResponse; |
|
|
|
|
|
|
|
import com.daqing.financial.guarantee.model.response.DgComplianceInvestigationResponse; |
|
|
|
|
|
|
|
import com.daqing.financial.guarantee.model.response.GuaranteeDetailResponse; |
|
|
|
|
|
|
|
import com.daqing.financial.guarantee.service.IDgAssetsInvestigationService; |
|
|
|
import com.daqing.financial.guarantee.service.IDgAssetsInvestigationService; |
|
|
|
import com.daqing.financial.guarantee.service.IDgComplianceInvestigationService; |
|
|
|
import com.daqing.financial.guarantee.service.IDgComplianceInvestigationService; |
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
@ -66,6 +64,9 @@ public class DgComplianceInvestigationServiceImpl extends ServiceImpl<DgComplian |
|
|
|
@Autowired |
|
|
|
@Autowired |
|
|
|
private IDgAssetsInvestigationService dgAssetsInvestigationService; |
|
|
|
private IDgAssetsInvestigationService dgAssetsInvestigationService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private DgAssetsInvestigationMapper dgAssetsInvestigationMapper; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 列表 |
|
|
|
* 列表 |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -228,7 +229,7 @@ public class DgComplianceInvestigationServiceImpl extends ServiceImpl<DgComplian |
|
|
|
if (Objects.equals(operationStatus, StatusCode.CZ_ON_HAND)) { |
|
|
|
if (Objects.equals(operationStatus, StatusCode.CZ_ON_HAND)) { |
|
|
|
// 查询业务流程表,找出该业务id的最新操作记录的角色名称
|
|
|
|
// 查询业务流程表,找出该业务id的最新操作记录的角色名称
|
|
|
|
String roleName = this.getBaseMapper().getAuditProcessLatestNameByBusinessId(this.getComplianceInvestigation(iid).getBusinessId()); |
|
|
|
String roleName = this.getBaseMapper().getAuditProcessLatestNameByBusinessId(this.getComplianceInvestigation(iid).getBusinessId()); |
|
|
|
if (PromptSuccess.DB_AB_NAME.equals(roleName)) { |
|
|
|
if (PromptSuccess.DB_A_NAME.equals(roleName) || PromptSuccess.DB_B_NAME.equals(roleName)) { |
|
|
|
// 1.1.若最新操作人为A/B角,表示为驳回给AB角之后直接返回的数据
|
|
|
|
// 1.1.若最新操作人为A/B角,表示为驳回给AB角之后直接返回的数据
|
|
|
|
// 同意
|
|
|
|
// 同意
|
|
|
|
if (status == 1) { |
|
|
|
if (status == 1) { |
|
|
@ -295,13 +296,14 @@ 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(), |
|
|
|
// 此条业务id下的法规领导数据是否存在
|
|
|
|
PromptSuccess.FG_JL_ID); |
|
|
|
Integer count = this.getBaseMapper().countComplianceInvestigation(this.getComplianceInvestigation(iid).getBusinessId(), |
|
|
|
Boolean result = this.getBaseMapper().check(iid, opinion, new Date(), |
|
|
|
PromptSuccess.FG_LD_ID); |
|
|
|
StatusCode.SP_IN_REVIEW, StatusCode.CZ_PROCESSED, Integer.parseInt(userId)); |
|
|
|
Boolean result = this.getBaseMapper().check(iid, opinion, new Date(), StatusCode.SP_IN_REVIEW, |
|
|
|
|
|
|
|
StatusCode.CZ_PROCESSED, Integer.parseInt(userId)); |
|
|
|
if (result) { |
|
|
|
if (result) { |
|
|
|
Boolean result1; |
|
|
|
Boolean result1; |
|
|
|
if (StatusCode.SP_REJECT.equals(auditStatus)) { |
|
|
|
if (count > 0) { |
|
|
|
// 表示为法规部领导驳回的数据,先更新审批状态为审核中
|
|
|
|
// 表示为法规部领导驳回的数据,先更新审批状态为审核中
|
|
|
|
Boolean result2 = this.getBaseMapper().updateAuditStatusByBusinessId(this.getComplianceInvestigation(iid).getBusinessId(), |
|
|
|
Boolean result2 = this.getBaseMapper().updateAuditStatusByBusinessId(this.getComplianceInvestigation(iid).getBusinessId(), |
|
|
|
StatusCode.SP_IN_REVIEW); |
|
|
|
StatusCode.SP_IN_REVIEW); |
|
|
@ -494,6 +496,12 @@ public class DgComplianceInvestigationServiceImpl extends ServiceImpl<DgComplian |
|
|
|
if (dgAssetsInvestigationId != null) { |
|
|
|
if (dgAssetsInvestigationId != null) { |
|
|
|
// 资产详情
|
|
|
|
// 资产详情
|
|
|
|
AssetsDetailResponse assetsDetailResponse = dgAssetsInvestigationService.assetsDetail(dgAssetsInvestigationId); |
|
|
|
AssetsDetailResponse assetsDetailResponse = dgAssetsInvestigationService.assetsDetail(dgAssetsInvestigationId); |
|
|
|
|
|
|
|
// 资产领导审核时填写的审核金额与期限
|
|
|
|
|
|
|
|
DgAssetsInvestigationResponse dgAssetsInvestigationResponse = dgAssetsInvestigationMapper.selectInfoById(dgAssetsInvestigationId); |
|
|
|
|
|
|
|
if (dgAssetsInvestigationResponse != null) { |
|
|
|
|
|
|
|
assetsDetailResponse.getAssetsResponse().setAmount(dgAssetsInvestigationResponse.getAmount()); |
|
|
|
|
|
|
|
assetsDetailResponse.getAssetsResponse().setTerm(dgAssetsInvestigationResponse.getTerm()); |
|
|
|
|
|
|
|
} |
|
|
|
dgComplianceInvestigationInfoResponse.setAssetsResponse(assetsDetailResponse.getAssetsResponse()); |
|
|
|
dgComplianceInvestigationInfoResponse.setAssetsResponse(assetsDetailResponse.getAssetsResponse()); |
|
|
|
} |
|
|
|
} |
|
|
|
// 合规调查附件和意见
|
|
|
|
// 合规调查附件和意见
|
|
|
|