소스 검색

feat(资方管理):bug修复

Wangyafan 6 달 전
부모
커밋
3e5552a987
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/main/java/com/sunxung/factoring/service/fundmanagement/impl/FinancialInstitutionServiceImpl.java

+ 2 - 1
src/main/java/com/sunxung/factoring/service/fundmanagement/impl/FinancialInstitutionServiceImpl.java

@@ -905,7 +905,8 @@ public class FinancialInstitutionServiceImpl extends ServiceImpl<FinancialInstit
             if (customerDisburses.isEmpty()) {
                 //如果客户对应的支用信息都为空 删除客户信息
                 if (dictService.get(financialCustomer.getCustomerStatus()).getCode().equals(FinancialCustomerStatusDict.ChildEnum.FINANCIAL_CUSTOMER_TO_BE_EDIT.getCode())) {
-                    BusinessProcessingLog customerLog = businessProcessingLogService.getByBusinessTypeBusinessKey(ConstantUtil.FINANCIAL_CUSTOMER_PROCESS, financialCustomer.getId());
+                    BusinessProcessingLog customerLog = businessProcessingLogService
+                            .findLatestByTaskDefKey(null,ConstantUtil.FINANCIAL_CUSTOMER_PROCESS, financialCustomer.getId());
                     //终止客户信息流程
                     businessProcessingTaskService.terminate(customerLog.getHistoricTaskId(), financialCustomer.getId(), customerLog.getBusinessType(),
                             customerLog.getTaskName(), customerLog.getTaskDefKey());