Explorar o código

调课顶课查询调整

dzx hai 1 ano
pai
achega
29ba3431db
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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}