浏览代码

feat(资方管理):bug修复

Wangyafan 6 月之前
父节点
当前提交
3e5552a987

+ 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());