Browse Source

临时解决

459242451@qq.com 3 years ago
parent
commit
d215257b25
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml

+ 2 - 2
ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml

@@ -109,7 +109,7 @@
         <if test="user.params.endTime != null and user.params.endTime != ''"><!-- 结束时间检索 -->
             AND date_format(u.create_time,'%y%m%d') &lt;= date_format(#{user.params.endTime},'%y%m%d')
         </if>
-        <if test="user.deptId != null and user.deptId != 0">
+        <if test="user.deptId != null and user.deptId != '0'">
             AND (u.dept_id = #{user.deptId} ) OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE #{user.deptId} = ANY(string_to_array(ancestors,',') ))
         </if>
         <!-- 数据范围过滤 -->
@@ -145,7 +145,7 @@
         <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
             AND date_format(u.create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
         </if>
-        <if test="deptId != null and deptId != 0">
+        <if test="deptId != null and deptId != '0'">
             AND (u.dept_id = #{user.deptId} ) OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE #{user.deptId} = ANY(string_to_array(ancestors,',') ))
         </if>
         <!-- 数据范围过滤 -->