人员查询调整

This commit is contained in:
tqzhang 2025-01-22 10:27:54 +08:00
parent 5ab46fd88d
commit 8226b52ea1
2 changed files with 2 additions and 1 deletions

View File

@ -197,7 +197,7 @@
<select id="getUserList" resultType="com.bonus.gs.sub.evaluate.evaluate.beans.OrganizationalBean"> <select id="getUserList" resultType="com.bonus.gs.sub.evaluate.evaluate.beans.OrganizationalBean">
select NAME userName, LOGIN_NAME idCard, SEX, TELPHONE userPhone, dept_id tableId select NAME userName, LOGIN_NAME idCard, SEX, TELPHONE userPhone, dept_id tableId
FROM gs_exam.pm_user FROM gs_exam.pm_user
where IS_ACTIVE = 1 and and if_active = '1' where IS_ACTIVE = 1 and if_active = '1'
and dept_id = #{deptId} and dept_id = #{deptId}
</select> </select>
<select id="getEvaluatePersonList" <select id="getEvaluatePersonList"

View File

@ -67,6 +67,7 @@
left join gs_exam.pm_new_role_user pnru on pu.ID = pnru.user_id and pnru.del_flag = '0' left join gs_exam.pm_new_role_user pnru on pu.ID = pnru.user_id and pnru.del_flag = '0'
left join gs_exam.pm_new_role pnr on pnru.ROLE_ID = pnr.id and pnr.del_flag = '0' left join gs_exam.pm_new_role pnr on pnru.ROLE_ID = pnr.id and pnr.del_flag = '0'
where pu.IS_ACTIVE = '1' and pu.if_active = '1' and pu.LOGIN_NAME not in (select id_card from sys_user where status = '1' and id_card is not null) where pu.IS_ACTIVE = '1' and pu.if_active = '1' and pu.LOGIN_NAME not in (select id_card from sys_user where status = '1' and id_card is not null)
and pu.id != 1
<if test="bean.id != null and bean.id != ''"> <if test="bean.id != null and bean.id != ''">
and pu.dept_id in and pu.dept_id in
<foreach collection="arr" item="id" open="(" close=")" separator=","> <foreach collection="arr" item="id" open="(" close=")" separator=",">