|
|
|
@ -587,14 +587,14 @@ public class YxStoreProductServiceImpl extends BaseServiceImpl<StoreProductMappe
|
|
|
|
|
if(count > 0) { |
|
|
|
|
throw new YshopException("当前商品已绑定评测,不能被下架"); |
|
|
|
|
} |
|
|
|
|
Long count1 = yxStoreHotListMapper |
|
|
|
|
.selectCount(Wrappers.<YxStoreHotList>lambdaQuery() |
|
|
|
|
.eq(YxStoreHotList::getIsShow,1)); |
|
|
|
|
// .like(YxStoreHotList::getProductList,id));
|
|
|
|
|
//此商品被热门榜单绑定,不能下架
|
|
|
|
|
if(count1 > 0) { |
|
|
|
|
throw new YshopException("当前商品已绑定热门榜单,不能被下架"); |
|
|
|
|
} |
|
|
|
|
// Long count1 = yxStoreHotListMapper
|
|
|
|
|
// .selectCount(Wrappers.<YxStoreHotList>lambdaQuery()
|
|
|
|
|
// .eq(YxStoreHotList::getIsShow,1));
|
|
|
|
|
//// .like(YxStoreHotList::getProductList,id));
|
|
|
|
|
// //此商品被热门榜单绑定,不能下架
|
|
|
|
|
// if(count1 > 0) {
|
|
|
|
|
// throw new YshopException("当前商品已绑定热门榜单,不能被下架");
|
|
|
|
|
// }
|
|
|
|
|
status = ShopCommonEnum.SHOW_0.getValue(); |
|
|
|
|
} else { |
|
|
|
|
status = ShopCommonEnum.SHOW_1.getValue(); |
|
|
|
|