|
|
@ -116,7 +116,8 @@ |
|
|
|
left join sys_staffinfo si on si.sid = su.staffSid |
|
|
|
where su.userName = #{param1} |
|
|
|
and su.isDelete = 0 |
|
|
|
and su.userType = 1 and si.personTypeKey != '01' |
|
|
|
and su.userType = 1 |
|
|
|
and si.personTypeKey != '01' |
|
|
|
</select> |
|
|
|
<select id="selectByUserNameApp" resultType="com.yxt.anrui.portal.api.sysuser.SysUser"> |
|
|
|
SELECT su.* |
|
|
@ -247,7 +248,8 @@ |
|
|
|
left join sys_staffinfo si on si.sid = su.staffSid |
|
|
|
where su.mobile = #{mobile} |
|
|
|
and su.isDelete = 0 |
|
|
|
and su.userType = 1 and si.personTypeKey != '01' |
|
|
|
and su.userType = 1 |
|
|
|
and si.personTypeKey != '01' |
|
|
|
</select> |
|
|
|
|
|
|
|
<update id="updateIsEnable"> |
|
|
@ -312,7 +314,8 @@ |
|
|
|
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} and si.personTypeKey != '01' |
|
|
|
where sr.roleSid = #{roleSid} |
|
|
|
and si.personTypeKey != '01' |
|
|
|
</select> |
|
|
|
|
|
|
|
<update id="updateAppIdByMobile"> |
|
|
@ -333,4 +336,18 @@ |
|
|
|
#{item} |
|
|
|
</foreach> |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getUserMessageByRole" resultType="com.yxt.anrui.portal.api.sysuser.SysUserVo"> |
|
|
|
select distinct si.name, su.sid, su.staffSid,so.orgSidPath |
|
|
|
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 |
|
|
|
left join sys_staff_org so on so.staffSid = si.sid |
|
|
|
where sr.roleSid = #{roleSid} |
|
|
|
and find_in_set(#{levelOrgSid}, replace(so.orgSidPath, '/', ',')) |
|
|
|
and si.personTypeKey != '01' AND so.`manageType`=3 and su.sid in |
|
|
|
<foreach collection="list" item="item" index="index" open="(" separator="," close=")"> |
|
|
|
#{item} |
|
|
|
</foreach> |
|
|
|
</select> |
|
|
|
</mapper> |