From 3bcdc44828a0cf441bc1b49d954bd0d147b49cf4 Mon Sep 17 00:00:00 2001 From: chen-xin-zhi <3588068430@qq.com> Date: Fri, 21 Mar 2025 14:08:29 +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 --- .../heritage/service/clothes/impl/ClothesServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/cultural/heritage/service/clothes/impl/ClothesServiceImpl.java b/src/main/java/com/cultural/heritage/service/clothes/impl/ClothesServiceImpl.java index 86d2ae5..1be9dc7 100644 --- a/src/main/java/com/cultural/heritage/service/clothes/impl/ClothesServiceImpl.java +++ b/src/main/java/com/cultural/heritage/service/clothes/impl/ClothesServiceImpl.java @@ -76,7 +76,7 @@ public class ClothesServiceImpl extends ServiceImpl impl queryWrapper.eq(id != null, "id", id); queryWrapper.like(StringUtils.isNotBlank(name), "name", name); queryWrapper.eq(categoryId != null, "categoryId", categoryId); - queryWrapper.eq("isShelves", isShelves); + queryWrapper.eq(isShelves != null, "isShelves", isShelves); // 根据排序字段和排序顺序进行排序 queryWrapper.orderBy(SqlUtils.validSortField(sortField),