Browse Source

Merge remote-tracking branch 'origin/dev1.0' into dev1.0

liuj 4 months ago
parent
commit
5b9909a465

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