1、增加是否主账号判断

2、增加是否在职判断
main
shenzhidan 2026-03-06 18:53:26 +08:00
parent b4980a91b1
commit 7fae9aa488
1 changed files with 5 additions and 2 deletions

View File

@ -29,9 +29,12 @@
LEFT JOIN department d ON d.id = uc.department_id
LEFT JOIN post p ON p.id = uc.post_id
WHERE uc.delete_enum = 'FALSE'
<if test="params.noMain != null">
AND (
(uc.user_type IN (1, 2) AND uc.rz_flag = 1)
OR (uc.user_type = 3 AND uc.employment_flag = 1)
)
AND uc.id != uc.corpinfo_id
</if>
<if test="params.corpinfoId != null">
AND uc.corpinfo_id = #{params.corpinfoId}
</if>