From 43a4d9bf304e69a9ea70964d8d510896ba87f3c9 Mon Sep 17 00:00:00 2001 From: chen-xin-zhi <3588068430@qq.com> Date: Tue, 18 Mar 2025 22:41:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0https?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cultural/heritage/controller/other/BannerController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/cultural/heritage/controller/other/BannerController.java b/src/main/java/com/cultural/heritage/controller/other/BannerController.java index c1cb9b2..fd68390 100644 --- a/src/main/java/com/cultural/heritage/controller/other/BannerController.java +++ b/src/main/java/com/cultural/heritage/controller/other/BannerController.java @@ -123,7 +123,7 @@ public class BannerController { long pageSize = bannerQueryRequest.getPageSize(); String type = bannerQueryRequest.getType(); QueryWrapper queryWrapper = new QueryWrapper<>(); - queryWrapper.eq(StringUtils.isBlank(type), "type", type); + queryWrapper.eq(StringUtils.isNotBlank(type), "type", type); Page page = bannerService.page(new Page<>(current, pageSize),queryWrapper); List bannerList = page.getRecords(); List bannerVOList = commonService.convertList(bannerList, BannerVO.class);