|
|
|
@ -7,10 +7,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
|
import com.daqing.financial.guarantee.controller.DgApplyAmountInfoController; |
|
|
|
|
import com.daqing.financial.guarantee.feign.CrmsFeignService; |
|
|
|
|
import com.daqing.financial.guarantee.feign.HrmsFeignService; |
|
|
|
|
import com.daqing.financial.guarantee.mapper.DgApplyAmountInfoMapper; |
|
|
|
|
import com.daqing.financial.guarantee.mapper.DgAssetsAssessmentAssetsLogMapper; |
|
|
|
|
import com.daqing.financial.guarantee.mapper.DgAssetsInvestigationMapper; |
|
|
|
|
import com.daqing.financial.guarantee.mapper.DgAssetsMoneyMapper; |
|
|
|
|
import com.daqing.financial.guarantee.mapper.*; |
|
|
|
|
import com.daqing.financial.guarantee.model.request.ApprovalAssetsRequest; |
|
|
|
|
import com.daqing.financial.guarantee.model.request.AssetsRequest; |
|
|
|
|
import com.daqing.financial.guarantee.model.request.InvestigateAssetsRequest; |
|
|
|
@ -20,10 +17,7 @@ import com.daqing.financial.guarantee.util.ArraysUtil; |
|
|
|
|
import com.daqing.financial.guarantee.util.AuditProcessUtil; |
|
|
|
|
import com.daqing.framework.domain.crms.request.DgApplyAmountInfoRequest; |
|
|
|
|
import com.daqing.framework.domain.crms.response.CrmsCode; |
|
|
|
|
import com.daqing.framework.domain.guarantee.DgApplyAmountInfo; |
|
|
|
|
import com.daqing.framework.domain.guarantee.DgAssetsAssessmentAssetsLog; |
|
|
|
|
import com.daqing.framework.domain.guarantee.DgAssetsInvestigation; |
|
|
|
|
import com.daqing.framework.domain.guarantee.DgAssetsMoney; |
|
|
|
|
import com.daqing.framework.domain.guarantee.*; |
|
|
|
|
import com.daqing.framework.exception.ExceptionCast; |
|
|
|
|
import com.daqing.framework.model.StatusCode; |
|
|
|
|
import com.daqing.framework.model.response.PromptSuccess; |
|
|
|
@ -71,6 +65,12 @@ public class DgAssetsInvestigationServiceImpl extends ServiceImpl<DgAssetsInvest |
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
private DgAssetsMoneyMapper dgAssetsMoneyMapper; |
|
|
|
|
@Resource |
|
|
|
|
private DgGuaranteeAssignUserMapper dgGuaranteeAssignUserMapper; |
|
|
|
|
@Resource |
|
|
|
|
private DgMessageInvestigationMapper dgMessageInvestigationMapper; |
|
|
|
|
@Resource |
|
|
|
|
private DgComplianceInvestigationMapper dgComplianceInvestigationMapper; |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public PageUtils queryPage(Integer page, Integer size, String customerNumberOrName, List<String> roleIdlist, String userId, Integer status) { |
|
|
|
@ -281,6 +281,26 @@ public class DgAssetsInvestigationServiceImpl extends ServiceImpl<DgAssetsInvest |
|
|
|
|
//待完善
|
|
|
|
|
if(approvalAssetsRequest.getStatus()==StatusCode.SP_REVIEWED && assetsInvestigation.getOperatingStatus()==StatusCode.CZ_PROCESSED && assetsInvestigation.getType()==3) {//资产部分管领导审核通过
|
|
|
|
|
|
|
|
|
|
//查看担保部分管领导是否审核通过
|
|
|
|
|
int a=dgGuaranteeAssignUserMapper.selectCount(new QueryWrapper<DgGuaranteeAssignUser>() |
|
|
|
|
.eq("business_id",assetsInvestigation.getBusinessId()) |
|
|
|
|
.eq("type",4).eq("status",StatusCode.SP_REVIEWED).eq("operating_status",StatusCode.CZ_PROCESSED)); |
|
|
|
|
|
|
|
|
|
//查看信息部分管领导是否审核通过
|
|
|
|
|
int b=dgMessageInvestigationMapper.selectCount(new QueryWrapper<DgMessageInvestigation>() |
|
|
|
|
.eq("business_id",assetsInvestigation.getBusinessId()) |
|
|
|
|
.eq("type",3).eq("status",StatusCode.SP_REVIEWED).eq("operating_status",StatusCode.CZ_PROCESSED)); |
|
|
|
|
int sum = a+b; |
|
|
|
|
if(sum==2){ |
|
|
|
|
//新增记录到合规调查
|
|
|
|
|
DgComplianceInvestigation compliance =new DgComplianceInvestigation(); |
|
|
|
|
compliance.setCompanyId(assetsInvestigation.getCompanyId());//企业id
|
|
|
|
|
compliance.setRoleId(assetsInvestigation.getRoleId());//角色id
|
|
|
|
|
compliance.setBusinessId(assetsInvestigation.getBusinessId());//业务id
|
|
|
|
|
compliance.setOperationStatus(StatusCode.CZ_ON_HAND);//操作状态设置为待处理
|
|
|
|
|
compliance.setAuditStatus(StatusCode.SP_TO_BE_ASSIGNED);//审核状态设置为待指派
|
|
|
|
|
dgComplianceInvestigationMapper.insert(compliance); |
|
|
|
|
} |
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
String account = dgApplyAmountInfoController.getAccount(); |
|
|
|
|
AuditProcessUtil.save(assetsInvestigation.getBusinessId(),account,"资产部分管领导",approvalAssetsRequest.getApplyContent()); |
|
|
|
|