diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/mapper/DgComplianceInvestigationMapper.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/mapper/DgComplianceInvestigationMapper.java index b18b3bba..e8b07d55 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/mapper/DgComplianceInvestigationMapper.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/mapper/DgComplianceInvestigationMapper.java @@ -65,4 +65,9 @@ public interface DgComplianceInvestigationMapper extends BaseMapper ids); } diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgComplianceInvestigationServiceImpl.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgComplianceInvestigationServiceImpl.java index bb71def0..39d257b7 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgComplianceInvestigationServiceImpl.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgComplianceInvestigationServiceImpl.java @@ -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.daqing.financial.guarantee.controller.DgApplyAmountInfoController; import com.daqing.financial.guarantee.feign.HrmsFeignService; import com.daqing.financial.guarantee.mapper.DgComplianceInvestigationMapper; import com.daqing.financial.guarantee.mapper.DgGuaranteeAssignUserMapper; @@ -14,6 +15,7 @@ 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.framework.domain.crms.response.CrmsCode; import com.daqing.framework.domain.guarantee.DgComplianceInvestigation; import com.daqing.framework.domain.guarantee.DgWorkConferenceConsider; @@ -122,7 +124,8 @@ public class DgComplianceInvestigationServiceImpl extends ServiceImpl 0) { + // 工作会该条数据存在,表示是工作会驳回的数据 + result1 = this.getBaseMapper().updateWorkConferenceConsider(complianceInvestigation.getBusinessId(), PromptSuccess.GZU_ID, + StatusCode.SP_IN_REVIEW, StatusCode.CZ_ON_HAND); + } else { + // 工作会该条数据不存在,表示不是工作会驳回数据,需要新增一条 + DgWorkConferenceConsider workConferenceConsider = new DgWorkConferenceConsider(); + workConferenceConsider.setCompanyId(complianceInvestigation.getCompanyId()); + workConferenceConsider.setBusinessId(complianceInvestigation.getBusinessId()); + workConferenceConsider.setRoleId(PromptSuccess.GZU_ID); + workConferenceConsider.setAuditStatus(StatusCode.SP_IN_REVIEW); + workConferenceConsider.setOperationStatus(StatusCode.CZ_ON_HAND); + workConferenceConsider.setCreateTime(new Date()); + workConferenceConsider.setUpdateTime(new Date()); + result1 = this.getBaseMapper().insertWorkConferenceConsider(workConferenceConsider); + } if (result1) { // 在业务流程表中插入一条法规领导审核成功的数据 - return true; + return AuditProcessUtil.save(this.getComplianceInvestigation(iid).getBusinessId(), DgApplyAmountInfoController.getAccount(), + PromptSuccess.FG_LD_NAME, opinion, PromptSuccess.HG_PROCESS_ID); } } } @@ -381,7 +401,8 @@ public class DgComplianceInvestigationServiceImpl extends ServiceImpl ids) { + if (null == ids || ids.size() == 0){ + ExceptionCast.cast(GuaranteeCode.EXCEL_ID_NOT_NULL); + } List idList = new ArrayList<>(); for (String id : ids) { idList.add(Integer.parseInt(id)); @@ -220,4 +285,21 @@ public class DgLoanCommitteeConsiderServiceImpl extends ServiceImpl> responseResult = hrmsFeignService.listEmpNameByUserId(userIds); List employees = responseResult.getData(); - if (employees != null){ + if (employees != null) { for (EmployeeVO employee : employees) { if (Objects.equals(employee.getId(), auditOpinion.getAEmpId().longValue())) { auditOpinionResponse.setAName(employee.getName()); @@ -302,11 +309,17 @@ public class DgWorkConferenceConsiderServiceImpl extends ServiceImpl excelList = new ArrayList<>(); if (responseResult.getData() != null) { excelList = this.transitionUserName(list, responseResult.getData()); - }else { + } else { for (DgWorkConferencePO dgWorkConferencePO : list) { DgWorkConferenceResponse workConferenceResponse = new DgWorkConferenceResponse(); BeanUtils.copyProperties(dgWorkConferencePO, workConferenceResponse); diff --git a/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgComplianceInvestigationMapper.xml b/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgComplianceInvestigationMapper.xml index f0fba373..5d761366 100644 --- a/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgComplianceInvestigationMapper.xml +++ b/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgComplianceInvestigationMapper.xml @@ -129,12 +129,25 @@ UPDATE dg_business_process_status SET business_status = #{businessStatus} WHERE business_id = #{businessId} + + + + + + + + UPDATE dg_work_conference_consider SET audit_status = #{auditStatus},operation_status = #{operationStatus} + WHERE business_id = #{businessId} AND role_id = #{roleId} + + diff --git a/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgGuaranteeAssignUserMapper.xml b/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgGuaranteeAssignUserMapper.xml index a8c30e67..a1d6ae34 100644 --- a/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgGuaranteeAssignUserMapper.xml +++ b/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgGuaranteeAssignUserMapper.xml @@ -60,12 +60,12 @@ - UPDATE dg_compliance_assign_user SET status = #{auditStatus} WHERE business_id = #{businessId} + UPDATE dg_guarantee_assign_user SET status = #{auditStatus} WHERE business_id = #{businessId} - UPDATE dg_compliance_assign_user SET operating_status = #{operationStatus} + UPDATE dg_guarantee_assign_user SET operating_status = #{operationStatus} WHERE business_id = #{businessId} AND (role_id = 59 OR role_id = 60) diff --git a/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgLoanCommitteeConsiderMapper.xml b/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgLoanCommitteeConsiderMapper.xml index 19215fbc..1a4c3690 100644 --- a/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgLoanCommitteeConsiderMapper.xml +++ b/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgLoanCommitteeConsiderMapper.xml @@ -64,7 +64,7 @@ UPDATE dg_loan_committee_consider SET consider_id = #{userId},status = #{status},operating_status = #{operatingStatus},create_time = #{date}, - agreed_items = #{lr.agreedItems},additional_items = #{lr.additionalItems},loan_money = #{lrloanMoney}, + agreed_items = #{lr.agreedItems},additional_items = #{lr.additionalItems},loan_money = #{lr.loanMoney}, loan_tern = #{lr.loanTern},agree_person = #{lr.agreePerson},disagree_person = #{lr.disagreePerson}, file = #{lr.fileUrl},passing_time = #{lr.passingTime} WHERE id = #{lr.id} @@ -126,4 +126,15 @@ UPDATE dg_loan_committee_consider SET operating_status = #{operatingStatus},refuse_opinion = #{refuseOpinion} WHERE id = #{id} + + + + + + UPDATE dg_guarantee_letter_assign_user SET status = #{auditStatus},operating_status = #{operatingStatus} + WHERE business_id = #{businessId} AND role_id = #{roleId} + + diff --git a/dq-framework-common/src/main/java/com/daqing/framework/model/response/PromptSuccess.java b/dq-framework-common/src/main/java/com/daqing/framework/model/response/PromptSuccess.java index 8ff7e202..e3110706 100644 --- a/dq-framework-common/src/main/java/com/daqing/framework/model/response/PromptSuccess.java +++ b/dq-framework-common/src/main/java/com/daqing/framework/model/response/PromptSuccess.java @@ -75,4 +75,20 @@ public class PromptSuccess { public static final Integer DSH_ID = 72; // 贷审会 public static final Integer CWB_ID = 73; // 财务部 + + public static final Integer HG_PROCESS_ID = 5; // 合规调查进程id + + public static final Integer GZU_PROCESS_ID = 6; // 工作会进程id + + public static final Integer DSH_PROCESS_ID = 7; // 贷审会进程id + + public static final String FG_C_NAME = "法规部C角"; // 法规部C角 + + public static final String FG_JL_NAME = "法规部经理"; // 法规部经理 + + public static final String FG_LD_NAME = "法规部领导"; // 法规部领导 + + public static final String GZU_NAME = "工作会"; // 工作会 + + public static final String DSH_NAME = "贷审会"; // 贷审会 }