修改商品标签
This commit is contained in:
@@ -130,7 +130,13 @@ public class BookLabelAndMarketController {
|
||||
return R.ok();
|
||||
}
|
||||
}else {
|
||||
return R.error("请先删除子集,设置成最后一集");
|
||||
List<ShopProductBookLabel> labelList = labelService.list(new LambdaQueryWrapper<ShopProductBookLabel>().eq(ShopProductBookLabel::getPid,id));
|
||||
if (labelList.size() > 0) {
|
||||
return R.error("请先删除子集,设置成最后一集");
|
||||
}else {
|
||||
labelService.removeById(id);
|
||||
return R.ok();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -185,7 +191,13 @@ public class BookLabelAndMarketController {
|
||||
return R.ok();
|
||||
}
|
||||
}else {
|
||||
return R.error("请先删除子集,设置成最后一集");
|
||||
List<ShopProductBookMarket> marketList = marketService.list(new LambdaQueryWrapper<ShopProductBookMarket>().eq(ShopProductBookMarket::getPid,id));
|
||||
if (marketList.size() > 0) {
|
||||
return R.error("请先删除子集,设置成最后一集");
|
||||
}else {
|
||||
marketService.removeById(id);
|
||||
return R.ok();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user