From 109cbb50d48867083e1a2c746a7ebc3c95cf3569 Mon Sep 17 00:00:00 2001
From: zepengdev <lzpsmith@outlook.com>
Date: Thu, 26 Jun 2025 22:54:12 +0800
Subject: [PATCH] fix: 修正分页查询返回错误总数的问题

---
 oying-system/src/main/resources/mapper/pc/store/StoreCategoryMapper.xml |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/oying-system/src/main/resources/mapper/pc/store/StoreCategoryMapper.xml b/oying-system/src/main/resources/mapper/pc/store/StoreCategoryMapper.xml
index f79f66c..4c1901d 100644
--- a/oying-system/src/main/resources/mapper/pc/store/StoreCategoryMapper.xml
+++ b/oying-system/src/main/resources/mapper/pc/store/StoreCategoryMapper.xml
@@ -25,9 +25,15 @@
         <include refid="Base_Column_List"/>
         from pc_store_category
         <where>
+            <if test="criteria.categoryId != null ">
+                and category_id = #{criteria.categoryId}
+            </if>
             <if test="criteria.storeId != null ">
                 and store_id = #{criteria.storeId}
             </if>
+            <if test="criteria.blurry != null and criteria.blurry != ''">
+                and name like concat('%',#{criteria.blurry},'%')
+            </if>
             <if test="criteria.level != null ">
                 and level = #{criteria.level}
             </if>

--
Gitblit v1.9.3