소스 검색

班主任选择学生接口查询调整

dzx 5 달 전
부모
커밋
61751770a8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/resources/mapper/student/BaseStudentSchoolRollMapper.xml

+ 1 - 1
src/main/resources/mapper/student/BaseStudentSchoolRollMapper.xml

@@ -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>