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) {