From 341fbc9c6b0fd0fe0d727f4e726619c7d4639b3c Mon Sep 17 00:00:00 2001 From: qiuyt Date: Mon, 2 Dec 2024 10:27:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=AB=E7=A0=81=E8=87=AA=E5=8A=A8=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E5=85=B3=E8=81=94=E5=85=B3=E7=B3=BB=E5=AF=B9=E8=B1=A1?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E5=8F=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../res/alihealth/AlihealthKytSinglerelationResponse.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/glxp/api/res/alihealth/AlihealthKytSinglerelationResponse.java b/src/main/java/com/glxp/api/res/alihealth/AlihealthKytSinglerelationResponse.java index 5f4b3550c..392ef0ea8 100644 --- a/src/main/java/com/glxp/api/res/alihealth/AlihealthKytSinglerelationResponse.java +++ b/src/main/java/com/glxp/api/res/alihealth/AlihealthKytSinglerelationResponse.java @@ -5,6 +5,7 @@ import cn.hutool.json.JSONObject; import cn.hutool.json.JSONUtil; import com.glxp.api.entity.collect.RelCodeBatch; import com.glxp.api.entity.collect.RelCodeDetail; +import com.glxp.api.util.udi.FilterUdiUtils; import lombok.Data; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.BeanUtils; @@ -22,9 +23,6 @@ public class AlihealthKytSinglerelationResponse extends AlihealthKytCommonParame private JSONObject produce_info_list; private String refEntId; - public AlihealthKytSinglerelationResponse() { - - } public AlihealthKytSinglerelationResponse(String json) { // 初始化请求的值 @@ -85,7 +83,7 @@ public class AlihealthKytSinglerelationResponse extends AlihealthKytCommonParame } } // relCodeBatch.setId(); - relCodeBatch.setProductCode(parentCode); + relCodeBatch.setProductCode(FilterUdiUtils.getUdi(parentCode).getUdi()); relCodeBatch.setSubTypeNo(jsonObject.getStr("relation_type")); relCodeBatch.setCascadeRatio(jsonObject.getStr("pkg_ratio")); relCodeBatch.setPackageSpec(jsonObject.getStr("pkg_spec")); @@ -103,7 +101,7 @@ public class AlihealthKytSinglerelationResponse extends AlihealthKytCommonParame relCodeBatch.setUploadFlagUp(0); relCodeBatch.setUploadFlagDown(0); relCodeBatch.setParentCode(null); -// relCodeBatch.setErpId(); + relCodeBatch.setErpId(customerId); relCodeBatch.setOneLevelCount(oneLevelCount); relCodeBatch.setTwoLevelCount(twoLevelCount);