|
|
|
@ -237,6 +237,7 @@ public class UdiProductServiceImpl implements UdiProductService {
|
|
|
|
|
udiProductEntity.setCpmctymc(addProductRequest.getName());
|
|
|
|
|
udiProductEntity.setGgxh(addProductRequest.getSpec());
|
|
|
|
|
udiProductEntity.setZczbhhzbapzbh(addProductRequest.getRegisterNo());
|
|
|
|
|
udiProductEntity.setDiType(ConstantStatus.DI_TYPE_MAIN);
|
|
|
|
|
|
|
|
|
|
UdiRelevanceEntity udiRelevanceEntity = new UdiRelevanceEntity();
|
|
|
|
|
udiRelevanceEntity.setId(IdUtil.getSnowflakeNextId());
|
|
|
|
@ -245,7 +246,7 @@ public class UdiProductServiceImpl implements UdiProductService {
|
|
|
|
|
udiRelevanceEntity.setUuid(udiProductEntity.getUuid());
|
|
|
|
|
udiRelevanceEntity.setNeedCert(false);
|
|
|
|
|
udiRelevanceEntity.setPurType(1);
|
|
|
|
|
udiProductEntity.setDiType(ConstantStatus.DI_TYPE_MAIN);
|
|
|
|
|
udiRelevanceEntity.setAttributeType(addProductRequest.getAttributeType());
|
|
|
|
|
|
|
|
|
|
// TODO: 2024/2/27 初始化其他字段
|
|
|
|
|
setUpdateInfo(udiProductEntity,udiRelevanceEntity);
|
|
|
|
|