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