From 2f74a0e6c101edc69de6d5e19e7c071e09a9c3ea Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期三, 01 四月 2026 10:44:41 +0800
Subject: [PATCH] 修改bug

---
 ruoyi-system/src/main/resources/mapper/system/RecordMapper.xml |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/ruoyi-system/src/main/resources/mapper/system/RecordMapper.xml b/ruoyi-system/src/main/resources/mapper/system/RecordMapper.xml
index df3b9c9..cb93e6a 100644
--- a/ruoyi-system/src/main/resources/mapper/system/RecordMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/RecordMapper.xml
@@ -53,23 +53,26 @@
             #{item}
         </foreach>
 
-        <if test="query.type == null">
+        <if test="query.category==1">
             and t1.level = 0
         </if>
         <if test="query.content != null">
-            and t1.hierarchy_name like concat('%',#{query.content},'%')
+            and (t1.hierarchy_name like concat('%',#{query.content},'%') or t2.description like concat('%',#{query.content},'%'))
         </if>
         <if test="query.startTime != null and query.startTime !='' and query.endTime!=null and query.endTime !=''">
             and t1.create_time between #{query.startTime} and #{query.endTime}
         </if>
 
         ) as o where 1=1
-        <if test="query.reformed != null">
-            and o.state = #{query.reformed}
+        <if test="query.state != null">
+            and o.state = #{query.state}
         </if>
         <if test="query.type != null">
             and o.type = #{query.type}
         </if>
+        <if test="query.level != null">
+            and o.level = #{query.level}
+        </if>
         order by o.create_time desc
     </select>
 

--
Gitblit v1.7.1