Commit 690bff85 authored by liuyang's avatar liuyang

fixed bug:后台不能创建企业,提示已存在

parent 0780ec16
...@@ -27,8 +27,7 @@ ...@@ -27,8 +27,7 @@
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
INNER JOIN sys_user_role r on s.id = r.user_id WHERE o.is_del = 0 and o.type='ENTERPRISE'
WHERE o.is_del = 0 and r.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