|
@@ -186,10 +186,10 @@ public class DmpProductInfoServiceImpl extends AbstractCrudService<DmpProductInf
|
|
|
public void update(DmpProductInfo dmpProductInfo) {
|
|
|
dmpProductInfo.setUpdatedTime(new Date());
|
|
|
if (checkNameUnique(dmpProductInfo)){
|
|
|
- throw new BusinessException("新增产品信息'" + dmpProductInfo.getProductCode() + "'失败,产品编码已存在");
|
|
|
+ throw new BusinessException("修改产品信息'" + dmpProductInfo.getProductCode() + "'失败,产品编码已存在");
|
|
|
}
|
|
|
if (checkProductNameUnique(dmpProductInfo)){
|
|
|
- throw new BusinessException("新增产品信息'" + dmpProductInfo.getProductName() + "'失败,产品名称已存在");
|
|
|
+ throw new BusinessException("修改产品信息'" + dmpProductInfo.getProductName() + "'失败,产品名称已存在");
|
|
|
}
|
|
|
this.updateById(dmpProductInfo);
|
|
|
}
|