From ff6fa0036ada3975c18e1212dfae26743ec9209b Mon Sep 17 00:00:00 2001 From: "583641232@qq.com" <583641232@qq.com> Date: Wed, 21 Aug 2024 14:03:47 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E5=B9=B6=E5=85=A5=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/QueryCenterService.java | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/cas-system/src/main/java/com/inscloudtech/datacenter/service/QueryCenterService.java b/cas-system/src/main/java/com/inscloudtech/datacenter/service/QueryCenterService.java index 63a29cb..6f8ea42 100644 --- a/cas-system/src/main/java/com/inscloudtech/datacenter/service/QueryCenterService.java +++ b/cas-system/src/main/java/com/inscloudtech/datacenter/service/QueryCenterService.java @@ -1401,10 +1401,11 @@ public class QueryCenterService { } - private static final List SERVICE_LIST_MERGE = Arrays.asList(BankService.class, OpeningAccountInfoService.class,ITransactionPartnerService.class, IPublicFamilyService.class, + private static final List SERVICE_LIST_MERGE = Arrays.asList(BankService.class, OpeningAccountInfoService.class, + ITransactionPartnerService.class, IPublicFamilyService.class, IRealEstateService.class, ICarInfoService.class,IOtherAssetsService.class,IOtherInformationService.class, IAnalysisResultService.class, - IAnalysisReportService.class, CollectionInformation.class, - PlateNumberInfo.class); + IAnalysisReportService.class, CollectionInformationService.class, + PlateNumberService.class); public void caseMerge(AnalysisDto bo) { @@ -1417,15 +1418,15 @@ public class QueryCenterService { String targetCaseId = bo.getTargetCaseId(); for (Integer moduleIndex : moduleIndexList) { + try { + Class serviceClass = SERVICE_LIST_MERGE.get(moduleIndex); + Object serviceObj = SpringUtils.getBean(serviceClass); + String methodName = "caseMerge"; + List methodList = Arrays.stream(serviceClass.getMethods()).filter(method -> method.getName().equals(methodName)).collect(Collectors.toList()); + Method method = methodList.get(0);// + Object[] args = new Object[]{sourceCaseId,targetCaseId}; - Class serviceClass = SERVICE_LIST_MERGE.get(moduleIndex); - Object serviceObj = SpringUtils.getBean(serviceClass); - String methodName = "caseMerge"; - List methodList = Arrays.stream(serviceClass.getMethods()).filter(method -> method.getName().equals(methodName)).collect(Collectors.toList()); - Method method = methodList.get(0);// - Object[] args = new Object[]{sourceCaseId,targetCaseId}; - try { method.invoke(serviceObj, args); }catch (Exception e){ e.printStackTrace();