From 0512c04391678fe4fbd3ec69202e6a475d2dbdce Mon Sep 17 00:00:00 2001 From: tangqian Date: Thu, 1 Jun 2023 17:35:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E9=83=A8=E9=97=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/shop/controller/admin/banner/BannerController.java | 2 +- .../yudao/module/shop/dal/mysql/banner/BannerMapper.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/admin/banner/BannerController.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/admin/banner/BannerController.java index e00669d4a..1a7699ef6 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/admin/banner/BannerController.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/admin/banner/BannerController.java @@ -68,7 +68,7 @@ public class BannerController { @PostMapping("/page") @Operation(summary = "获得 Banner 分页") - @PreAuthorize("@ss.hasPermission('market:banner:query')") +// @PreAuthorize("@ss.hasPermission('market:banner:query')") public CommonResult> getBannerPage(@RequestBody@Valid BannerPageReqVO pageVO) { PageResult pageResult = bannerService.getBannerPage(pageVO); return success(BannerConvert.INSTANCE.convertPage(pageResult)); diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/dal/mysql/banner/BannerMapper.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/dal/mysql/banner/BannerMapper.java index 78accdb09..8d8ae6805 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/dal/mysql/banner/BannerMapper.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/dal/mysql/banner/BannerMapper.java @@ -17,6 +17,7 @@ public interface BannerMapper extends BaseMapperX { default PageResult selectPage(BannerPageReqVO reqVO) { return selectPage(reqVO, new LambdaQueryWrapperX() + .eq(BannerDO::getTenantId,reqVO.getTenantId()) .likeIfPresent(BannerDO::getTitle, reqVO.getTitle()) .eqIfPresent(BannerDO::getStatus, reqVO.getStatus()) .betweenIfPresent(BannerDO::getCreateTime, reqVO.getCreateTime())