|
@@ -273,11 +273,10 @@
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="findManageInfoByEntIdBeforeApproval" resultType="java.lang.Long">
|
|
<select id="findManageInfoByEntIdBeforeApproval" resultType="java.lang.Long">
|
|
|
- select distinct
|
|
|
|
|
- f.role_id roleId
|
|
|
|
|
|
|
+ select distinct r.id roleId
|
|
|
from kws_enterprise a
|
|
from kws_enterprise a
|
|
|
LEFT JOIN kws_user d ON a.phone = d.account and d.del_flag = 0
|
|
LEFT JOIN kws_user d ON a.phone = d.account and d.del_flag = 0
|
|
|
- left join kws_user_role f on f.user_id = d.id and f.del_flag = 0
|
|
|
|
|
|
|
+ left join kws_role r on r.ent_id = a.id and r.del_flag = 0
|
|
|
where a.del_flag = 0
|
|
where a.del_flag = 0
|
|
|
and d.is_main = 1
|
|
and d.is_main = 1
|
|
|
and d.system_type = 2
|
|
and d.system_type = 2
|