|
@@ -309,7 +309,7 @@ public class BrandController extends AbstractController{
|
|
params.put("isDelete", 0);
|
|
params.put("isDelete", 0);
|
|
List<GoodsEntity> goodsEntities = goodsService.queryList(params);
|
|
List<GoodsEntity> goodsEntities = goodsService.queryList(params);
|
|
if (!ObjectUtils.isEmpty(goodsEntities)) {
|
|
if (!ObjectUtils.isEmpty(goodsEntities)) {
|
|
- return Result.failure("该场景或者直播间已经设置了商品,不允许删除!");
|
|
|
|
|
|
+ return Result.failure("删除失败,先删除直播间绑定的商品后再重试!");
|
|
}
|
|
}
|
|
//获取数据,推送给api
|
|
//获取数据,推送给api
|
|
Arrays.stream(ids).map(id-> brandService.queryObject(id)).forEach(entity->{
|
|
Arrays.stream(ids).map(id-> brandService.queryObject(id)).forEach(entity->{
|
|
@@ -346,8 +346,11 @@ public class BrandController extends AbstractController{
|
|
params.put("createUserId",getUser().getId());
|
|
params.put("createUserId",getUser().getId());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
List<BrandEntity> list = brandService.queryList(params);
|
|
List<BrandEntity> list = brandService.queryList(params);
|
|
|
|
+ if(roleIds.contains(8L)){
|
|
|
|
+ List<BrandEntity> list2 = brandService.getBrandByUserId(getUser().getId());
|
|
|
|
+ list.addAll(list2);
|
|
|
|
+ }
|
|
|
|
|
|
return Result.success(list);
|
|
return Result.success(list);
|
|
}
|
|
}
|