From fbdd09cee9f631a315dc654f587700f7bb466ea2 Mon Sep 17 00:00:00 2001
From: ‘liusuyi’ <1951119284@qq.com>
Date: 星期二, 04 七月 2023 10:29:21 +0800
Subject: [PATCH] 修改用户查询userId格式错误

---
 ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml |    2 +-
 1 files changed, 1 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 4ea4c7a..c7452e3 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
@@ -90,7 +90,7 @@
         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 userId != ''">
             AND u.user_id = #{userId}
         </if>
         <if test="userName != null and userName != ''">

--
Gitblit v1.9.3