diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgApplyAmountInfoController.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgApplyAmountInfoController.java index 6a15f03c..1a5a7dd2 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgApplyAmountInfoController.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgApplyAmountInfoController.java @@ -79,11 +79,7 @@ public class DgApplyAmountInfoController implements DgApplyAmountInfoControllerA @GetMapping("/getRoles") @ApiOperation(value = "获取当前用户角色") public ResponseResult getRoles(){ - HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest(); - String token = request.getHeader("token"); - String userId = RedisUtil.get("dq:token:" + token); - //获取当前用户拥有的角色ids - String roleIds = RedisUtil.get("dq:userRole:" + userId); + String roleIds = applyAmountInfoService.getRoles(); return ResponseResult.SUCCESS(roleIds); } diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgLoanNoticeController.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgLoanNoticeController.java index f156cf7b..e19ac6b6 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgLoanNoticeController.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgLoanNoticeController.java @@ -89,6 +89,7 @@ public class DgLoanNoticeController { put("bankName", bank); put("clientName", name); put("loanMoney", money); + put("money", loanMoney); }}); try { httpServletResponse.setContentType("application/msword"); 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 { Boolean excelExport(List ids,HttpServletResponse response); int approvalBusinessApplication(Integer id, Integer status, String remark, Integer companyId); + + String getRoles(); } diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/IDgWorkConferenceConsiderService.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/IDgWorkConferenceConsiderService.java index d43979ca..b116fcad 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/IDgWorkConferenceConsiderService.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/IDgWorkConferenceConsiderService.java @@ -2,6 +2,7 @@ package com.daqing.financial.guarantee.service; import com.baomidou.mybatisplus.extension.service.IService; import com.daqing.financial.guarantee.model.response.AuditOpinionResponse; +import com.daqing.financial.guarantee.model.response.DgWorkConferenceConsiderQueryResponse; import com.daqing.framework.domain.guarantee.DgWorkConferenceConsider; import com.daqing.framework.utils.PageUtils; @@ -26,7 +27,7 @@ public interface IDgWorkConferenceConsiderService extends IService ids); } diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgApplyAmountInfoServiceImpl.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgApplyAmountInfoServiceImpl.java index e6096b16..99d2d28e 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgApplyAmountInfoServiceImpl.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgApplyAmountInfoServiceImpl.java @@ -85,6 +85,14 @@ public class DgApplyAmountInfoServiceImpl 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 0 ? "资产部经理更新成功" : "资产部经理更新失败"); @@ -590,7 +592,7 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl 0 ? "资产部经理更新成功" : "资产部经理更新失败"); @@ -624,7 +626,7 @@ public class DgGuaranteeLetterAssignUserServiceImpl 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 0 ? "驳回更新财务部经理成功" : "驳回更新财务部经理失败"); diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgPaymentConfirmationConsiderServiceImpl.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgPaymentConfirmationConsiderServiceImpl.java index 7dd8321c..8c3c5a16 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgPaymentConfirmationConsiderServiceImpl.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgPaymentConfirmationConsiderServiceImpl.java @@ -9,9 +9,6 @@ import com.daqing.financial.guarantee.mapper.DgLoanNoticeMapper; import com.daqing.financial.guarantee.mapper.DgPaymentConfirmationConsiderMapper; import com.daqing.financial.guarantee.model.request.PaymentConfirmationQueryRequest; import com.daqing.financial.guarantee.model.request.PaymentConfirmationUpdateRequest; -import com.daqing.financial.guarantee.model.response.BusinessApplicationListResponse; -import com.daqing.financial.guarantee.model.response.GuaranteeLetterListResponse; -import com.daqing.financial.guarantee.model.response.LoanNoticeListResponse; import com.daqing.financial.guarantee.model.response.PaymentConfirmationListResponse; import com.daqing.financial.guarantee.service.IDgPaymentConfirmationConsiderService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; @@ -24,7 +21,6 @@ import com.daqing.framework.model.response.PromptSuccess; import com.daqing.framework.util.RedisUtil; import com.daqing.framework.utils.PageUtils; import com.daqing.framework.utils.excel.EasyExcelUtil; -import com.daqing.framework.utils.excel.ExcelUtil; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -213,6 +209,7 @@ public class DgPaymentConfirmationConsiderServiceImpl extends ServiceImpl 0 ? "驳回更新资产部经理成功" : "驳回更新资产部经理失败"); @@ -307,6 +304,7 @@ public class DgPaymentConfirmationConsiderServiceImpl extends ServiceImpl 0 ? "驳回更新资产部经理成功" : "驳回更新资产部经理失败"); diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgWorkConferenceConsiderServiceImpl.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgWorkConferenceConsiderServiceImpl.java index 1106d763..5db8faa3 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgWorkConferenceConsiderServiceImpl.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgWorkConferenceConsiderServiceImpl.java @@ -2,16 +2,19 @@ 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.DgLoanCommitteeConsiderMapper; import com.daqing.financial.guarantee.mapper.DgWorkConferenceConsiderMapper; import com.daqing.financial.guarantee.model.response.AuditOpinionResponse; +import com.daqing.financial.guarantee.model.response.DgWorkConferenceConsiderQueryResponse; import com.daqing.financial.guarantee.model.response.DgWorkConferenceResponse; import com.daqing.financial.guarantee.model.response.GuaranteeDetailResponse; import com.daqing.financial.guarantee.service.IDgGuaranteeAssignUserService; import com.daqing.financial.guarantee.service.IDgWorkConferenceConsiderService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +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.DgLoanCommitteeConsider; @@ -111,7 +114,7 @@ public class DgWorkConferenceConsiderServiceImpl 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/DgGuaranteeLetterAssignUserMapper.xml b/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgGuaranteeLetterAssignUserMapper.xml index b9419ca1..8cc0fc10 100644 --- a/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgGuaranteeLetterAssignUserMapper.xml +++ b/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgGuaranteeLetterAssignUserMapper.xml @@ -51,7 +51,7 @@ AND (lau.user_id = #{userId} or lau.user_id is null OR lau.user_id = '') - AND aai.business_code LIKE CONCAT('%',#{customerNumberOrName},'%') OR cc.name LIKE CONCAT('%',#{customerNumberOrName},'%') + AND (aai.business_code LIKE CONCAT('%' #{customerNumberOrName} '%') OR cc.name LIKE CONCAT('%' #{customerNumberOrName} '%')) AND lau.status = #{status} 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-financial-guarantee/src/main/resources/mapper/guarantee/DgLoanNoticeMapper.xml b/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgLoanNoticeMapper.xml index de654666..41ef5344 100644 --- a/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgLoanNoticeMapper.xml +++ b/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgLoanNoticeMapper.xml @@ -49,7 +49,7 @@ AND (ln.consider_id = #{userId} or ln.consider_id is null OR ln.consider_id = '') - AND aai.business_code LIKE CONCAT('%',#{customerNumberOrName},'%') OR cc.name LIKE CONCAT('%',#{customerNumberOrName},'%') + AND (aai.business_code LIKE CONCAT('%' #{customerNumberOrName} '%') OR cc.name LIKE CONCAT('%' #{customerNumberOrName} '%')) AND ln.status = #{status} diff --git a/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgPaymentConfirmationConsiderMapper.xml b/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgPaymentConfirmationConsiderMapper.xml index fa3ead69..4c67b36c 100644 --- a/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgPaymentConfirmationConsiderMapper.xml +++ b/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgPaymentConfirmationConsiderMapper.xml @@ -53,7 +53,7 @@ AND (pcc.consider_id = #{userId} or pcc.consider_id is null OR pcc.consider_id = '') - AND aai.business_code LIKE CONCAT('%',#{customerNumberOrName},'%') OR cc.name LIKE CONCAT('%',#{customerNumberOrName},'%') + AND (aai.business_code LIKE CONCAT('%' #{customerNumberOrName} '%') OR cc.name LIKE CONCAT('%' #{customerNumberOrName} '%')) AND pcc.status = #{status} 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 = "贷审会"; // 贷审会 }