Commit 690bff85 authored by liuyang's avatar liuyang

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

parent 0780ec16
......@@ -27,8 +27,7 @@
FROM organization o
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_role r on s.id = r.user_id
WHERE o.is_del = 0 and r.role_id = 3
WHERE o.is_del = 0 and o.type='ENTERPRISE'
<if test="p.enterpriseName != null and p.enterpriseName != ''">
and o.`name` like concat('%',#{p.enterpriseName},'%')
</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