|
|
|
@ -2,6 +2,7 @@ package com.daqing.financial.guarantee.service.impl; |
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
|
import com.daqing.financial.guarantee.controller.DgApplyAmountInfoController; |
|
|
|
|
import com.daqing.financial.guarantee.feign.HrmsFeignService; |
|
|
|
|
import com.daqing.financial.guarantee.mapper.DgAssetsInvestigationMapper; |
|
|
|
@ -11,9 +12,9 @@ import com.daqing.financial.guarantee.model.request.DgComplianceInvestigationReq |
|
|
|
|
import com.daqing.financial.guarantee.model.response.*; |
|
|
|
|
import com.daqing.financial.guarantee.service.IDgAssetsInvestigationService; |
|
|
|
|
import com.daqing.financial.guarantee.service.IDgComplianceInvestigationService; |
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
|
import com.daqing.financial.guarantee.service.IDgGuaranteeAssignUserService; |
|
|
|
|
import com.daqing.financial.guarantee.util.AuditProcessUtil; |
|
|
|
|
import com.daqing.financial.guarantee.util.OrdinaryUtil; |
|
|
|
|
import com.daqing.framework.domain.crms.response.CrmsCode; |
|
|
|
|
import com.daqing.framework.domain.guarantee.DgComplianceInvestigation; |
|
|
|
|
import com.daqing.framework.domain.guarantee.DgWorkConferenceConsider; |
|
|
|
@ -136,8 +137,9 @@ public class DgComplianceInvestigationServiceImpl extends ServiceImpl<DgComplian |
|
|
|
|
Boolean result2 = (Boolean) responseResult.getData(); |
|
|
|
|
if (result2) { |
|
|
|
|
// 在审核进程表中插入一条指派成功的数据
|
|
|
|
|
return AuditProcessUtil.save(this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), |
|
|
|
|
PromptSuccess.FG_JL_NAME, null, PromptSuccess.HG_PROCESS_ID,PromptSuccess.FG_JL_ID,"","",""); |
|
|
|
|
String departmentId = OrdinaryUtil.getDepartmentId(Integer.parseInt(this.getUserId())); |
|
|
|
|
return AuditProcessUtil.save(Integer.parseInt(this.getUserId()),this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), |
|
|
|
|
departmentId, null, PromptSuccess.HG_PROCESS_ID,PromptSuccess.FG_JL_ID,"","",""); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -175,8 +177,9 @@ public class DgComplianceInvestigationServiceImpl extends ServiceImpl<DgComplian |
|
|
|
|
StatusCode.CZ_ON_HAND, PromptSuccess.FG_JL_ID); |
|
|
|
|
// 在业务流程表中插入一条调查成功的数据
|
|
|
|
|
if (result2) { |
|
|
|
|
return AuditProcessUtil.save(this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), |
|
|
|
|
PromptSuccess.FG_C_NAME, opinion, PromptSuccess.HG_PROCESS_ID,PromptSuccess.FG_C_ID,"","",""); |
|
|
|
|
String departmentId = OrdinaryUtil.getDepartmentId(Integer.parseInt(this.getUserId())); |
|
|
|
|
return AuditProcessUtil.save(Integer.parseInt(this.getUserId()),this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), |
|
|
|
|
departmentId, opinion, PromptSuccess.HG_PROCESS_ID,PromptSuccess.FG_C_ID,"","",""); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -202,8 +205,9 @@ public class DgComplianceInvestigationServiceImpl extends ServiceImpl<DgComplian |
|
|
|
|
.getBusinessId(), StatusCode.CZ_ON_HAND); |
|
|
|
|
if (result3) { |
|
|
|
|
// 在业务流程表中插入一条驳回成功的数据(记得带上驳回的意见)
|
|
|
|
|
return AuditProcessUtil.save(this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), |
|
|
|
|
PromptSuccess.FG_C_NAME, opinion, PromptSuccess.HG_PROCESS_ID,PromptSuccess.FG_C_ID,"","",""); |
|
|
|
|
String departmentId = OrdinaryUtil.getDepartmentId(Integer.parseInt(this.getUserId())); |
|
|
|
|
return AuditProcessUtil.save(Integer.parseInt(this.getUserId()),this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), |
|
|
|
|
departmentId, opinion, PromptSuccess.HG_PROCESS_ID,PromptSuccess.FG_C_ID,"","",""); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -241,8 +245,9 @@ public class DgComplianceInvestigationServiceImpl extends ServiceImpl<DgComplian |
|
|
|
|
StatusCode.CZ_ON_HAND, PromptSuccess.FG_C_ID); |
|
|
|
|
if (result1) { |
|
|
|
|
// 在业务流程表中插入一条法规经理同意的数据
|
|
|
|
|
return AuditProcessUtil.save(this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), |
|
|
|
|
PromptSuccess.FG_JL_NAME, opinion, PromptSuccess.HG_PROCESS_ID,PromptSuccess.FG_JL_ID,"","",""); |
|
|
|
|
String departmentId = OrdinaryUtil.getDepartmentId(Integer.parseInt(this.getUserId())); |
|
|
|
|
return AuditProcessUtil.save(Integer.parseInt(this.getUserId()),this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), |
|
|
|
|
departmentId, opinion, PromptSuccess.HG_PROCESS_ID,PromptSuccess.FG_JL_ID,"","",""); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -263,8 +268,9 @@ public class DgComplianceInvestigationServiceImpl extends ServiceImpl<DgComplian |
|
|
|
|
StatusCode.CZ_ON_HAND, PromptSuccess.FG_C_ID); |
|
|
|
|
if (result2) { |
|
|
|
|
// 在业务流程表中插入一条法规经理驳回的数据
|
|
|
|
|
return AuditProcessUtil.save(this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), |
|
|
|
|
PromptSuccess.FG_JL_NAME, opinion, PromptSuccess.HG_PROCESS_ID,PromptSuccess.FG_JL_ID,"","",""); |
|
|
|
|
String departmentId = OrdinaryUtil.getDepartmentId(Integer.parseInt(this.getUserId())); |
|
|
|
|
return AuditProcessUtil.save(Integer.parseInt(this.getUserId()),this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), |
|
|
|
|
departmentId, opinion, PromptSuccess.HG_PROCESS_ID,PromptSuccess.FG_JL_ID,"","",""); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -286,8 +292,9 @@ public class DgComplianceInvestigationServiceImpl extends ServiceImpl<DgComplian |
|
|
|
|
this.getComplianceInvestigation(iid).getBusinessId(), StatusCode.YW_REJECTED); |
|
|
|
|
if (result2) { |
|
|
|
|
// 在业务流程表中插入一条拒绝数据(记得带上拒绝意见)
|
|
|
|
|
return AuditProcessUtil.save(this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), |
|
|
|
|
PromptSuccess.FG_JL_NAME, opinion, PromptSuccess.HG_PROCESS_ID,PromptSuccess.FG_JL_ID,"","",""); |
|
|
|
|
String departmentId = OrdinaryUtil.getDepartmentId(Integer.parseInt(this.getUserId())); |
|
|
|
|
return AuditProcessUtil.save(Integer.parseInt(this.getUserId()),this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), |
|
|
|
|
departmentId, opinion, PromptSuccess.HG_PROCESS_ID,PromptSuccess.FG_JL_ID,"","",""); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -327,8 +334,9 @@ public class DgComplianceInvestigationServiceImpl extends ServiceImpl<DgComplian |
|
|
|
|
} |
|
|
|
|
if (result1) { |
|
|
|
|
// 在业务流程表中插入一条法规经理审核成功的数据
|
|
|
|
|
return AuditProcessUtil.save(this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), |
|
|
|
|
PromptSuccess.FG_JL_NAME, opinion, PromptSuccess.HG_PROCESS_ID,PromptSuccess.FG_JL_ID,"","",""); |
|
|
|
|
String departmentId = OrdinaryUtil.getDepartmentId(Integer.parseInt(this.getUserId())); |
|
|
|
|
return AuditProcessUtil.save(Integer.parseInt(this.getUserId()),this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), |
|
|
|
|
departmentId, opinion, PromptSuccess.HG_PROCESS_ID,PromptSuccess.FG_JL_ID,"","",""); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -349,8 +357,9 @@ public class DgComplianceInvestigationServiceImpl extends ServiceImpl<DgComplian |
|
|
|
|
StatusCode.CZ_ON_HAND, PromptSuccess.FG_C_ID); |
|
|
|
|
if (result2) { |
|
|
|
|
// 在业务流程表中插入一条法规经理驳回的数据
|
|
|
|
|
return AuditProcessUtil.save(this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), |
|
|
|
|
PromptSuccess.FG_JL_NAME, opinion, PromptSuccess.HG_PROCESS_ID,PromptSuccess.FG_JL_ID,"","",""); |
|
|
|
|
String departmentId = OrdinaryUtil.getDepartmentId(Integer.parseInt(this.getUserId())); |
|
|
|
|
return AuditProcessUtil.save(Integer.parseInt(this.getUserId()),this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), |
|
|
|
|
departmentId, opinion, PromptSuccess.HG_PROCESS_ID,PromptSuccess.FG_JL_ID,"","",""); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -372,8 +381,9 @@ public class DgComplianceInvestigationServiceImpl extends ServiceImpl<DgComplian |
|
|
|
|
this.getComplianceInvestigation(iid).getBusinessId(), StatusCode.YW_REJECTED); |
|
|
|
|
if (result2) { |
|
|
|
|
// 在业务流程表中插入一条拒绝数据(记得带上拒绝意见)
|
|
|
|
|
return AuditProcessUtil.save(this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), |
|
|
|
|
PromptSuccess.FG_JL_NAME, opinion, PromptSuccess.HG_PROCESS_ID,PromptSuccess.FG_JL_ID,"","",""); |
|
|
|
|
String departmentId = OrdinaryUtil.getDepartmentId(Integer.parseInt(this.getUserId())); |
|
|
|
|
return AuditProcessUtil.save(Integer.parseInt(this.getUserId()),this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), |
|
|
|
|
departmentId, opinion, PromptSuccess.HG_PROCESS_ID,PromptSuccess.FG_JL_ID,"","",""); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -413,8 +423,9 @@ public class DgComplianceInvestigationServiceImpl extends ServiceImpl<DgComplian |
|
|
|
|
} |
|
|
|
|
if (result1) { |
|
|
|
|
// 在业务流程表中插入一条法规领导审核成功的数据
|
|
|
|
|
return AuditProcessUtil.save(this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), |
|
|
|
|
PromptSuccess.FG_LD_NAME, opinion, PromptSuccess.HG_PROCESS_ID,PromptSuccess.FG_LD_ID,"","",""); |
|
|
|
|
String departmentId = OrdinaryUtil.getDepartmentId(Integer.parseInt(this.getUserId())); |
|
|
|
|
return AuditProcessUtil.save(Integer.parseInt(this.getUserId()),this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), |
|
|
|
|
departmentId, opinion, PromptSuccess.HG_PROCESS_ID,PromptSuccess.FG_LD_ID,"","",""); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -439,8 +450,9 @@ public class DgComplianceInvestigationServiceImpl extends ServiceImpl<DgComplian |
|
|
|
|
StatusCode.CZ_ON_HAND, PromptSuccess.FG_JL_ID); |
|
|
|
|
if (result2) { |
|
|
|
|
// 在业务流程表中插入一条法规领导驳回的数据
|
|
|
|
|
return AuditProcessUtil.save(this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), |
|
|
|
|
PromptSuccess.FG_LD_NAME, opinion, PromptSuccess.HG_PROCESS_ID,PromptSuccess.FG_LD_ID,"","",""); |
|
|
|
|
String departmentId = OrdinaryUtil.getDepartmentId(Integer.parseInt(this.getUserId())); |
|
|
|
|
return AuditProcessUtil.save(Integer.parseInt(this.getUserId()),this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), |
|
|
|
|
departmentId, opinion, PromptSuccess.HG_PROCESS_ID,PromptSuccess.FG_LD_ID,"","",""); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -466,8 +478,9 @@ public class DgComplianceInvestigationServiceImpl extends ServiceImpl<DgComplian |
|
|
|
|
this.getComplianceInvestigation(iid).getBusinessId(), StatusCode.YW_REJECTED); |
|
|
|
|
if (result2) { |
|
|
|
|
// 在业务流程表中插入一条拒绝数据(记得带上拒绝意见)
|
|
|
|
|
return AuditProcessUtil.save(this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), |
|
|
|
|
PromptSuccess.FG_LD_NAME, opinion, PromptSuccess.HG_PROCESS_ID,PromptSuccess.FG_LD_ID,"","",""); |
|
|
|
|
String departmentId = OrdinaryUtil.getDepartmentId(Integer.parseInt(this.getUserId())); |
|
|
|
|
return AuditProcessUtil.save(Integer.parseInt(this.getUserId()),this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), |
|
|
|
|
departmentId, opinion, PromptSuccess.HG_PROCESS_ID,PromptSuccess.FG_LD_ID,"","",""); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|