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);