|
@@ -434,6 +434,8 @@ public class ProductInfoServiceImpl extends ServiceImpl<ProductInfoMapper, Produ
|
|
productInfoDto.setCode(null);
|
|
productInfoDto.setCode(null);
|
|
// 排除名称重复
|
|
// 排除名称重复
|
|
this.nameDuplication(ProductInfo::getName, productInfoDto.getName(), productInfoDto.getId(), "产品名称重复");
|
|
this.nameDuplication(ProductInfo::getName, productInfoDto.getName(), productInfoDto.getId(), "产品名称重复");
|
|
|
|
+ // 排除自定义编码重复
|
|
|
|
+ this.nameDuplication(ProductInfo::getCustomCode, productInfoDto.getCustomCode(), "产品自定义编码重复");
|
|
this.updateById(productInfoDto);
|
|
this.updateById(productInfoDto);
|
|
ObsFileUtil.editFile(productInfoDto.getFileList(), productInfoDto.getId());
|
|
ObsFileUtil.editFile(productInfoDto.getFileList(), productInfoDto.getId());
|
|
}
|
|
}
|