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