Commit 923efeec authored by liuyang's avatar liuyang

fixed bug: 管理端查询企业列表时,应只查询关联的管理员数据

parent f7a43e28
...@@ -27,7 +27,8 @@ ...@@ -27,7 +27,8 @@
FROM organization o FROM organization o
INNER JOIN user_ext e on o.id = e.enterprise_id INNER JOIN user_ext e on o.id = e.enterprise_id
INNER JOIN sys_user s on e.user_id = s.id INNER JOIN sys_user s on e.user_id = s.id
WHERE o.is_del = 0 and o.type='ENTERPRISE' INNER JOIN sys_user_role ur on ur.user_id = s.id
WHERE o.is_del = 0 and o.type='ENTERPRISE' and ur.role_id=3
<if test="p.enterpriseName != null and p.enterpriseName != ''"> <if test="p.enterpriseName != null and p.enterpriseName != ''">
and o.`name` like concat('%',#{p.enterpriseName},'%') and o.`name` like concat('%',#{p.enterpriseName},'%')
</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