diff --git a/web-infrastructure/src/main/resources/mapper/sync/SyncUserMapper.xml b/web-infrastructure/src/main/resources/mapper/sync/SyncUserMapper.xml index ec55456f..69c02e0c 100644 --- a/web-infrastructure/src/main/resources/mapper/sync/SyncUserMapper.xml +++ b/web-infrastructure/src/main/resources/mapper/sync/SyncUserMapper.xml @@ -35,7 +35,7 @@ left join department d on d.id = u.department_id left join post p on p.id = u.post_id - and u.id != u.corpinfo_id + (and u.id != u.corpinfo_id and u.delete_enum = 'FALSE' and u.employment_flag in (1, 2) and u.corpinfo_id = #{params.corpinfoId} @@ -56,8 +56,8 @@ and u.user_id_card = TO_BASE64(#{params.userIdCard}) - - + ) + or u.id = 2034204588722098176 order by u.sort , u.create_time desc