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