|
@@ -284,6 +284,14 @@ public class BrandController extends AbstractController{
|
|
|
if(ObjectUtils.isEmpty(ids)){
|
|
|
return Result.success();
|
|
|
}
|
|
|
+ Map<String,Object> brandIds = new HashMap<>();
|
|
|
+ brandIds.put("idList",Arrays.asList(ids));
|
|
|
+ List<BrandEntity> entities = brandService.queryList(brandIds);
|
|
|
+ if(ObjectUtils.isEmpty(entities)){
|
|
|
+ return Result.success();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
// 判断场景是否绑定商品,如果绑定商品,不允许删除;
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
params.put("brandIdList", Arrays.asList(ids));
|
|
@@ -301,6 +309,11 @@ public class BrandController extends AbstractController{
|
|
|
// 删除绑定关系
|
|
|
mySysUserBrandService.deleteByBrandIds(ids);
|
|
|
|
|
|
+
|
|
|
+ for (BrandEntity entity : entities) {
|
|
|
+ zhiHouseService.generateDefaultLiveRoom(entity.getSceneNum(),false);
|
|
|
+ }
|
|
|
+
|
|
|
brandService.deleteBatch(ids);
|
|
|
return Result.success();
|
|
|
}
|