|
@ -113,15 +113,16 @@ |
|
|
<select id="selectByUserName" resultType="com.yxt.anrui.portal.api.sysuser.SysUser"> |
|
|
<select id="selectByUserName" resultType="com.yxt.anrui.portal.api.sysuser.SysUser"> |
|
|
SELECT su.* |
|
|
SELECT su.* |
|
|
FROM sys_user su |
|
|
FROM sys_user su |
|
|
left join sys_staffinfo si on si.sid = su.staffSid |
|
|
left join sys_staffinfo si on si.sid = su.staffSid |
|
|
where su.userName = #{param1} |
|
|
where su.userName = #{param1} |
|
|
and su.isDelete = 0 |
|
|
and su.isDelete = 0 |
|
|
and su.userType = 1 and si.personTypeKey != '01' |
|
|
and su.userType = 1 |
|
|
|
|
|
and si.personTypeKey != '01' |
|
|
</select> |
|
|
</select> |
|
|
<select id="selectByUserNameApp" resultType="com.yxt.anrui.portal.api.sysuser.SysUser"> |
|
|
<select id="selectByUserNameApp" resultType="com.yxt.anrui.portal.api.sysuser.SysUser"> |
|
|
SELECT su.* |
|
|
SELECT su.* |
|
|
FROM sys_user su |
|
|
FROM sys_user su |
|
|
left join sys_staffinfo si on si.sid = su.staffSid |
|
|
left join sys_staffinfo si on si.sid = su.staffSid |
|
|
where su.userName = #{param1} |
|
|
where su.userName = #{param1} |
|
|
and su.isDelete = 0 |
|
|
and su.isDelete = 0 |
|
|
and su.userType = 1 |
|
|
and su.userType = 1 |
|
@ -244,10 +245,11 @@ |
|
|
<select id="selectByMobile" resultType="com.yxt.anrui.portal.api.sysuser.SysUser"> |
|
|
<select id="selectByMobile" resultType="com.yxt.anrui.portal.api.sysuser.SysUser"> |
|
|
select su.* |
|
|
select su.* |
|
|
from sys_user su |
|
|
from sys_user su |
|
|
left join sys_staffinfo si on si.sid = su.staffSid |
|
|
left join sys_staffinfo si on si.sid = su.staffSid |
|
|
where su.mobile = #{mobile} |
|
|
where su.mobile = #{mobile} |
|
|
and su.isDelete = 0 |
|
|
and su.isDelete = 0 |
|
|
and su.userType = 1 and si.personTypeKey != '01' |
|
|
and su.userType = 1 |
|
|
|
|
|
and si.personTypeKey != '01' |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<update id="updateIsEnable"> |
|
|
<update id="updateIsEnable"> |
|
@ -267,7 +269,7 @@ |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="getUserByRole" resultType="com.yxt.anrui.portal.api.sysuser.SysUserVo"> |
|
|
<select id="getUserByRole" resultType="com.yxt.anrui.portal.api.sysuser.SysUserVo"> |
|
|
select distinct si.name, su.sid, su.staffSid<!--, so.orgSidPath--> |
|
|
select distinct si.name, su.sid, su.staffSid<!--, so.orgSidPath--> |
|
|
from sys_user_role sr |
|
|
from sys_user_role sr |
|
|
left join sys_user su on sr.userSid = su.sid |
|
|
left join sys_user su on sr.userSid = su.sid |
|
|
left join sys_staffinfo si on si.sid = su.staffSid |
|
|
left join sys_staffinfo si on si.sid = su.staffSid |
|
@ -310,9 +312,10 @@ |
|
|
<select id="getUserByRoleSid" resultType="com.yxt.anrui.portal.api.sysuser.SysUserVo"> |
|
|
<select id="getUserByRoleSid" resultType="com.yxt.anrui.portal.api.sysuser.SysUserVo"> |
|
|
select si.name, su.sid, su.staffSid |
|
|
select si.name, su.sid, su.staffSid |
|
|
from sys_user_role sr |
|
|
from sys_user_role sr |
|
|
left join sys_user su on sr.userSid = su.sid |
|
|
left join sys_user su on sr.userSid = su.sid |
|
|
left join sys_staffinfo si on si.sid = su.staffSid |
|
|
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> |
|
|
</select> |
|
|
|
|
|
|
|
|
<update id="updateAppIdByMobile"> |
|
|
<update id="updateAppIdByMobile"> |
|
@ -333,4 +336,18 @@ |
|
|
#{item} |
|
|
#{item} |
|
|
</foreach> |
|
|
</foreach> |
|
|
</select> |
|
|
</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> |
|
|
</mapper> |