diff --git a/hangtag-module-oms/hangtag-module-oms-biz/src/main/java/cn/hangtag/module/oms/service/productinfo/ProductInfoServiceImpl.java b/hangtag-module-oms/hangtag-module-oms-biz/src/main/java/cn/hangtag/module/oms/service/productinfo/ProductInfoServiceImpl.java
index 0677a59..2257ab2 100644
--- a/hangtag-module-oms/hangtag-module-oms-biz/src/main/java/cn/hangtag/module/oms/service/productinfo/ProductInfoServiceImpl.java
+++ b/hangtag-module-oms/hangtag-module-oms-biz/src/main/java/cn/hangtag/module/oms/service/productinfo/ProductInfoServiceImpl.java
@@ -307,6 +307,8 @@ public class ProductInfoServiceImpl implements ProductInfoService {
continue;
}
ProductInfoDO productInfo = new ProductInfoDO();
+ productInfo.setName(excelVO.getName());
+
String code = excelVO.getCode();
if(FuncUtil.isNotEmpty(code)){
try {
@@ -317,18 +319,20 @@ public class ProductInfoServiceImpl implements ProductInfoService {
lambdaQueryWrapper.last("limit 1");
ProductInfoDO dos = productInfoMapper.selectOne(lambdaQueryWrapper);
if(FuncUtil.isNotEmpty(dos)){
+
+
// 合并属性
BeanUtil.copyProperties(dos, productInfo);
+ productInfo.setName(excelVO.getName());
+ productInfo.setSummary(excelVO.getIntroduction());
productInfo.setId(dos.getId());
String brandName = excelVO.getBrandName();
productInfo.setCode(code);
- productInfo.setTemplateType("2");
-
- productInfo.setSpecSizeWidth(FuncUtil.toDouble(excelVO.getSpecWidth()));
- productInfo.setSpecSizeHeight(FuncUtil.toDouble(excelVO.getSpecHeight()));
- productInfo.setSpecSizeThk(FuncUtil.toDouble(excelVO.getSpecThickness()));
- productInfo.setSpecMaterial(excelVO.getMaterial());
- productInfo.setRemark(excelVO.getRemarks());
+ productInfo.setSpecSizeWidth(FuncUtil.toDouble(excelVO.getSpecWidth(),null));
+ productInfo.setSpecSizeHeight(FuncUtil.toDouble(excelVO.getSpecHeight(),null));
+ productInfo.setSpecSizeThk(FuncUtil.toDouble(excelVO.getSpecThickness(),null));
+ productInfo.setSpecMaterial(FuncUtil.toStr(excelVO.getMaterial(),null));
+ productInfo.setRemark(FuncUtil.toStr(excelVO.getRemarks(),null));
Long productTypeId = toProductTypeId(excelVO.getProductType());
productInfo.setProductTypeId(productTypeId);
@@ -358,7 +362,6 @@ public class ProductInfoServiceImpl implements ProductInfoService {
if(FuncUtil.isEmpty(code)){
return "第"+(i+1)+"行编码为空:"+code;
}
- productInfo.setName(excelVO.getName());
String brandName = excelVO.getBrandName();
productInfo.setCode(code);
productInfo.setTemplateType("2");
diff --git a/hangtag-ui/hangtag-ui-admin/src/views/oms/productinfo/index.vue b/hangtag-ui/hangtag-ui-admin/src/views/oms/productinfo/index.vue
index 5bb3db2..e7a9828 100644
--- a/hangtag-ui/hangtag-ui-admin/src/views/oms/productinfo/index.vue
+++ b/hangtag-ui/hangtag-ui-admin/src/views/oms/productinfo/index.vue
@@ -122,6 +122,9 @@