|
|
@@ -263,11 +263,9 @@ public class FsPlatformProductScrmServiceImpl implements IFsPlatformProductScrmS
|
|
|
if(copyProductInfo==null){
|
|
|
return R.error("复制,商品数据不存在!");
|
|
|
}
|
|
|
- //这个商品是否已经在我店铺存在了
|
|
|
- Long storeProductId = copyProductInfo.getStoreProductId();
|
|
|
- //存在
|
|
|
- FsStoreProductScrm ObjectExist = fsStoreProductMapper.selectFsStoreProductById(storeProductId);
|
|
|
- if(ObjectUtils.isNotEmpty(ObjectExist)){
|
|
|
+ //存在,这个商品是否已经在我店铺存在了
|
|
|
+ boolean existFlag = fsStoreProductMapper.productNameExist(copyProductInfo.getProductName(), fsStoreProduct.getStoreId());
|
|
|
+ if(existFlag){
|
|
|
return R.error("这个商品你店铺已经有了,无需重复添加!");
|
|
|
}
|
|
|
//插入复制商品
|