@@ -87,7 +87,7 @@
AND t2.credential_number LIKE concat('%', #{dto.credentialNumber}, '%')
</if>
<if test="dto.notInIds != null and dto.notInIds.size() > 0">
- and t2.id in
+ and t2.id not in
<foreach item="notInId" index="index" collection="dto.notInIds" open="(" close=")" separator=",">
#{notInId}
</foreach>