Commit 38e37858 authored by liuyang's avatar liuyang

fixed 用户管理列表只查询管理员和运营角色的人员

parent dcfd0e96
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
select u.* select u.*
from sys_user u from sys_user u
inner join sys_user_role r on u.id = r.user_id inner join sys_user_role r on u.id = r.user_id
where u.is_del=0 and r.role_id in (1,3) where u.is_del=0 and r.role_id in (1,2)
<if test="p.username != null and p.username != ''"> <if test="p.username != null and p.username != ''">
and u.username like concat('%',#{p.username},'%') and u.username like concat('%',#{p.username},'%')
</if> </if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment