From 59b41b126c4a8642fcb489f0dea954b16465318d Mon Sep 17 00:00:00 2001
From: 钟日健 <5689795+arsn@user.noreply.gitee.com>
Date: Mon, 27 Jun 2022 14:44:25 +0800
Subject: [PATCH] 去除年龄判断

---
 src/main/java/org/springblade/modules/log/mapper/HandlerLogMapper.xml |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/springblade/modules/log/mapper/HandlerLogMapper.xml b/src/main/java/org/springblade/modules/log/mapper/HandlerLogMapper.xml
index 5997ae0..2568df8 100644
--- a/src/main/java/org/springblade/modules/log/mapper/HandlerLogMapper.xml
+++ b/src/main/java/org/springblade/modules/log/mapper/HandlerLogMapper.xml
@@ -8,11 +8,14 @@
         left join blade_user bu on bu.id = shl.user_id
         left join blade_dept bd on shl.dept_id = bd.id
         where 1=1
-        <if test="handlerLog.deptName!=null and handlerLog.deptName!''">
-            bd.dept_name like concat('%',#{handlerLog.deptName},'%')
+        <if test="handlerLog.deptName!=null and handlerLog.deptName!=''">
+           and bd.dept_name like concat('%',#{handlerLog.deptName},'%')
         </if>
-        <if test="handlerLog.deptId!=null and handlerLog.deptId!''">
-            shl.dept_id = #{handlerLog.deptId}
+        <if test="handlerLog.deptId!=null and handlerLog.deptId!=''">
+           and shl.dept_id = #{handlerLog.deptId}
+        </if>
+        <if test="handlerLog.type!=null">
+           and  shl.type = #{handlerLog.type}
         </if>
         order by shl.id desc
     </select>

--
Gitblit v1.9.3