From 19b7f4c3171a0d26c64180c2fcead5c5e6a00812 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期一, 08 九月 2025 16:42:58 +0800
Subject: [PATCH] long_task_reason有误,修改

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

diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
index 464b361..d975b62 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
@@ -123,9 +123,12 @@
         u
         left join sys_dept d on u.dept_id = d.dept_id
         where u.del_flag = '0'
-        <if test="userId != null and userId != 0">
+        <if test="userId != null">
             AND u.user_id = #{userId}
         </if>
+        <if test="orgid != null and orgid != ''">
+            AND u.orgid = #{orgid}
+        </if>
         <if test="userName != null and userName != ''">
             AND u.user_name like concat('%', #{userName}, '%')
         </if>

--
Gitblit v1.9.3