Browse Source

调课顶课查询调整

dzx 4 months ago
parent
commit
29ba3431db
1 changed files with 1 additions and 1 deletions
  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}