пре 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>