扫码自动获取关联关系对象属性变化

dev_unify
qiuyt 7 months ago
parent a761685950
commit 341fbc9c6b

@ -5,6 +5,7 @@ import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil; import cn.hutool.json.JSONUtil;
import com.glxp.api.entity.collect.RelCodeBatch; import com.glxp.api.entity.collect.RelCodeBatch;
import com.glxp.api.entity.collect.RelCodeDetail; import com.glxp.api.entity.collect.RelCodeDetail;
import com.glxp.api.util.udi.FilterUdiUtils;
import lombok.Data; import lombok.Data;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
@ -22,9 +23,6 @@ public class AlihealthKytSinglerelationResponse extends AlihealthKytCommonParame
private JSONObject produce_info_list; private JSONObject produce_info_list;
private String refEntId; private String refEntId;
public AlihealthKytSinglerelationResponse() {
}
public AlihealthKytSinglerelationResponse(String json) { public AlihealthKytSinglerelationResponse(String json) {
// 初始化请求的值 // 初始化请求的值
@ -85,7 +83,7 @@ public class AlihealthKytSinglerelationResponse extends AlihealthKytCommonParame
} }
} }
// relCodeBatch.setId(); // relCodeBatch.setId();
relCodeBatch.setProductCode(parentCode); relCodeBatch.setProductCode(FilterUdiUtils.getUdi(parentCode).getUdi());
relCodeBatch.setSubTypeNo(jsonObject.getStr("relation_type")); relCodeBatch.setSubTypeNo(jsonObject.getStr("relation_type"));
relCodeBatch.setCascadeRatio(jsonObject.getStr("pkg_ratio")); relCodeBatch.setCascadeRatio(jsonObject.getStr("pkg_ratio"));
relCodeBatch.setPackageSpec(jsonObject.getStr("pkg_spec")); relCodeBatch.setPackageSpec(jsonObject.getStr("pkg_spec"));
@ -103,7 +101,7 @@ public class AlihealthKytSinglerelationResponse extends AlihealthKytCommonParame
relCodeBatch.setUploadFlagUp(0); relCodeBatch.setUploadFlagUp(0);
relCodeBatch.setUploadFlagDown(0); relCodeBatch.setUploadFlagDown(0);
relCodeBatch.setParentCode(null); relCodeBatch.setParentCode(null);
// relCodeBatch.setErpId(); relCodeBatch.setErpId(customerId);
relCodeBatch.setOneLevelCount(oneLevelCount); relCodeBatch.setOneLevelCount(oneLevelCount);
relCodeBatch.setTwoLevelCount(twoLevelCount); relCodeBatch.setTwoLevelCount(twoLevelCount);

Loading…
Cancel
Save