cy 3 سال پیش
والد
کامیت
bdb61cd529
1فایلهای تغییر یافته به همراه6 افزوده شده و 6 حذف شده
  1. 6 6
      cooleshow-user/user-biz/src/main/resources/config/mybatis/CourseScheduleMapper.xml

+ 6 - 6
cooleshow-user/user-biz/src/main/resources/config/mybatis/CourseScheduleMapper.xml

@@ -399,6 +399,12 @@
         AND p.subject_id_=#{param.subjectId}) sp ON t.user_id_=sp.teacherId
 
         WHERE t.user_id_ IN (SELECT teacher_id_ FROM teacher_free_time GROUP BY teacher_id_)
+        <if test="param.teacherIdList !=null">
+            AND t.user_id_ IN
+            <foreach collection="param.teacherIdList" item="item" open="(" separator="," close=")">
+                #{item}
+            </foreach>
+        </if>
         <if test="param.subjectId !=null">
             AND sp.subjectId=#{param.subjectId}
         </if>
@@ -410,12 +416,6 @@
                 ORDER BY ${param.sort}
             </when>
         </choose>
-        <if test="param.teacherIdList != null and param.teacherIdList != 0">
-            AND t.user_id_ IN
-            <foreach collection="param.teacherIdList" item="item" open="(" separator="," close=")">
-                #{item}
-            </foreach>
-        </if>
     </select>
 
     <select id="queryCourseTeacher" resultType="com.yonge.cooleshow.biz.dal.vo.CourseStudent"