From 6e9a9177c06468415974345974c0318f8444fac6 Mon Sep 17 00:00:00 2001 From: qiuyt Date: Thu, 19 Dec 2024 16:57:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E7=94=A8=E9=98=BF=E9=87=8C=E5=85=B3?= =?UTF-8?q?=E8=81=94=E5=85=B3=E7=B3=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../res/alihealth/AlihealthYljgSinglerelationResponse.java | 4 ++-- .../com/glxp/api/service/collect/RelCodeBatchService.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/glxp/api/res/alihealth/AlihealthYljgSinglerelationResponse.java b/src/main/java/com/glxp/api/res/alihealth/AlihealthYljgSinglerelationResponse.java index 20ef6763..a34976d1 100644 --- a/src/main/java/com/glxp/api/res/alihealth/AlihealthYljgSinglerelationResponse.java +++ b/src/main/java/com/glxp/api/res/alihealth/AlihealthYljgSinglerelationResponse.java @@ -128,12 +128,12 @@ public class AlihealthYljgSinglerelationResponse extends AlihealthKytCommonParam } - public List disposeRelRodeDetailList(Integer batchIdFk) { + public List disposeRelRodeDetailList(Integer batchIdFk,String code) { List list = new ArrayList<>(); List> jsonArray = (List) this.getCode_relation_list().get("code_info"); if (jsonArray != null && jsonArray.size() > 0) { for (Map map : jsonArray) { - if (!Objects.isNull(map) && StringUtils.isNotEmpty(map.get("parent_code"))) { + if (!Objects.isNull(map) && StringUtils.isNotEmpty(map.get("parent_code")) && code.equals(map.get("parent_code"))) { RelCodeDetail relCodeDetail = new RelCodeDetail(); relCodeDetail.setCurCode(map.get("code")); relCodeDetail.setPackLayer(Integer.valueOf(map.get("code_level"))); diff --git a/src/main/java/com/glxp/api/service/collect/RelCodeBatchService.java b/src/main/java/com/glxp/api/service/collect/RelCodeBatchService.java index 8fbbdc89..405ca816 100644 --- a/src/main/java/com/glxp/api/service/collect/RelCodeBatchService.java +++ b/src/main/java/com/glxp/api/service/collect/RelCodeBatchService.java @@ -742,7 +742,7 @@ public class RelCodeBatchService extends ServiceImpl list = alihealthKytSinglerelationResponse.disposeRelRodeDetailList(id); + List list = alihealthKytSinglerelationResponse.disposeRelRodeDetailList(id,relCodeBatch.getCurCode()); if (list != null && list.size() > 0) { List curCodeList = new ArrayList(); for (RelCodeDetail relCodeDetail : list) {