From ffa70a1adfcbc62f1d2f34d4e6e0003cd92186dd Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Fri, 10 Jun 2022 11:24:03 +0800
Subject: [PATCH] ftp  上传下载设置连接超时时间

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