瀏覽代碼

巡检优化

2 年之前
父節點
當前提交
f15c3f7b19
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      platform-dao/src/main/resources/mapper/upms/SysUserMapper.xml

+ 2 - 2
platform-dao/src/main/resources/mapper/upms/SysUserMapper.xml

@@ -38,7 +38,7 @@
             parameterType="com.platform.dao.dto.upms.SysUserDTO">
         select distinct u.* from t_sys_user u
         join t_sys_user_role role
-        on u.user_id=role.user_id
+        on u.user_id=role.user_id left join t_sys_role srole on role.role_id=srole.role_id
         where 1=1
         <if test="keyword !=null and keyword !=''">
             and (u.username like CONCAT('%',#{keyword},'%')
@@ -64,7 +64,7 @@
             and role.role_id=#{roleId}
         </if>
         <if test="roleCode!=null and roleCode!=''">
-            and role.role_code=#{roleCode}
+            and srole.role_code=#{roleCode}
         </if>
         order by u.update_time desc
     </select>