From f3aaa7ea7a0f56ff4a6f9faf057a6595ab3275a7 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期一, 31 五月 2021 17:44:03 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into dev --- ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml index 8332ea9..df59332 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -106,7 +106,9 @@ ancestors) )) </if> <!-- 鏁版嵁鑼冨洿杩囨护 --> - ${user.params.dataScope} + <if test="user.params.dataScope != null and user.params.dataScope != ''"> + AND ( ${user.params.dataScope} ) + </if> </select> <select id="selectUserList" parameterType="SysUser" resultMap="SysUserResult"> @@ -135,7 +137,9 @@ ancestors) )) </if> <!-- 鏁版嵁鑼冨洿杩囨护 --> - AND ( ${params.dataScope} ) + <if test="params.dataScope != null and params.dataScope != ''"> + AND ( ${params.dataScope} ) + </if> </select> <select id="selectUserByUserName" parameterType="String" resultMap="SysUserResult"> -- Gitblit v1.9.3