This commit is contained in:
2025-12-19 18:30:59 +08:00
parent 4a9b27cd33
commit 069cfc1949

View File

@@ -31,7 +31,7 @@ public class GbWareServiceImpl extends ServiceImpl<GbWareMapper, GbWare> impleme
@Override
public Page<GbWare> getGbWarePage(GbWareQueryParamDTO param, Long shopId, boolean isAdmin) {
if (!shopInfoService.checkSwitch(shopId, ShopSwitchTypeEnum.GROUP_BUY)) {
if (!isAdmin && !shopInfoService.checkSwitch(shopId, ShopSwitchTypeEnum.GROUP_BUY)) {
return new Page<>();
}
Long mainShopId = shopInfoService.getMainIdByShopId(shopId);