登陆人或责任人部门错误问题 已修复 (可能存在残留)

This commit is contained in:
yuezhihang
2021-12-16 16:56:53 +08:00
parent a5e00ef286
commit 349c283db4
6 changed files with 27 additions and 13 deletions
@@ -754,9 +754,10 @@
<!-- 根据account获取未逻辑删除的UserEO -->
<select id="getUserEOByAccountNotDeleted" resultMap="BaseResultMap" parameterType="java.lang.String">
select usid, account, valid_flag, password, uname, ext_info,email,work_num,creation_time,modify_time,oper_user,user_source,disable_flag,unlock_flag,user_type
,INSTITUTION_NAME,INSTITUTION_ID,SEX,PHONE,ts_institution.name as upDeptName,ts_institution.id as upDeptId
,t2.name as INSTITUTION_NAME,INSTITUTION_ID,SEX,PHONE,ts_institution.name as upDeptName,ts_institution.id as upDeptId
from TS_USER
left join ts_institution ON ts_institution.id = (SELECT parent_id from ts_institution WHERE id = ts_user.INSTITUTION_ID)
left join ts_institution t2 on ts_user.INSTITUTION_ID=t2.id
where account = #{account} and VALID_FLAG != 1
</select>