Bläddra i källkod

调课顶课查询调整

dzx 4 månader sedan
förälder
incheckning
29ba3431db
1 ändrade filer med 1 tillägg och 1 borttagningar
  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}