|
@@ -126,7 +126,7 @@ public class GoodsController extends AbstractController{
|
|
return Result.failure("商品名称名称不能超过15个字符");
|
|
return Result.failure("商品名称名称不能超过15个字符");
|
|
}
|
|
}
|
|
if(StringUtils.isEmpty(goods.getBrandId())){
|
|
if(StringUtils.isEmpty(goods.getBrandId())){
|
|
- throw new RRException("直播间id为空");
|
|
|
|
|
|
+ throw new RRException("直播间名称为空");
|
|
}
|
|
}
|
|
BrandEntity brand = brandService.queryObject(goods.getBrandId());
|
|
BrandEntity brand = brandService.queryObject(goods.getBrandId());
|
|
if(brand == null){
|
|
if(brand == null){
|
|
@@ -344,7 +344,7 @@ public class GoodsController extends AbstractController{
|
|
return Result.failure("商品不存在");
|
|
return Result.failure("商品不存在");
|
|
}
|
|
}
|
|
if(StringUtils.isEmpty(goods.getBrandId())){
|
|
if(StringUtils.isEmpty(goods.getBrandId())){
|
|
- throw new RRException("直播间id为空");
|
|
|
|
|
|
+ throw new RRException("直播间名称为空");
|
|
}
|
|
}
|
|
BrandEntity brand = brandService.queryObject(goods.getBrandId());
|
|
BrandEntity brand = brandService.queryObject(goods.getBrandId());
|
|
if(brand == null){
|
|
if(brand == null){
|