|
|
@ -238,7 +238,7 @@ |
|
|
|
left join sys_staffinfo si on si.sid = su.staffSid |
|
|
|
left join sys_staff_org so on so.staffSid = si.sid |
|
|
|
where sr.roleSid = #{roleSid} |
|
|
|
and find_in_set(#{levelOrgSid}, replace(so.orgSidPath, '/', ',')) |
|
|
|
and find_in_set(#{levelOrgSid}, replace(so.orgSidPath, '/', ',')) and si.personTypeKey != '01' |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getUserByOrgSid" resultType="java.util.Map"> |
|
|
@ -276,7 +276,7 @@ |
|
|
|
from sys_user_role sr |
|
|
|
left join sys_user su on sr.userSid = su.sid |
|
|
|
left join sys_staffinfo si on si.sid = su.staffSid |
|
|
|
where sr.roleSid = #{roleSid} |
|
|
|
where sr.roleSid = #{roleSid} and si.personTypeKey != '01' |
|
|
|
</select> |
|
|
|
|
|
|
|
<update id="updateAppIdByMobile"> |
|
|
|