소스 검색

调课顶课查询调整

dzx 4 달 전
부모
커밋
29ba3431db
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/resources/mapper/courseTable/CourseTable.xml

+ 1 - 1
src/main/resources/mapper/courseTable/CourseTable.xml

@@ -62,7 +62,7 @@
         <if test="dto.classId != null and dto.classId != ''">
             and t1.class_id = #{dto.classId}
         </if>
-        <if test="dto.exceptCourseList != null">
+        <if test="dto.exceptCourseList != null and dto.exceptCourseList.size > 0">
             AND t1.id not in
             <foreach item="courseId" collection="dto.exceptCourseList" open="(" separator="," close=")">
                 #{courseId}