Просмотр исходного кода

fix 修复课件查询SQL异常

Eric 1 год назад
Родитель
Сommit
d751bab2c3
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      mec-biz/src/main/resources/config/mybatis/LessonCoursewareMapper.xml

+ 2 - 2
mec-biz/src/main/resources/config/mybatis/LessonCoursewareMapper.xml

@@ -5,10 +5,10 @@
     <sql id="selectPageSql">
     <sql id="selectPageSql">
         <where>
         <where>
             <if test="param.studentId != null">
             <if test="param.studentId != null">
-                AND (lc.student_range_type_ == 'ALL' OR (lcum.user_id_ = #{param.studentId} AND lcum.user_type_ = 'STUDENT'))
+                AND (lc.student_range_type_ = 'ALL' OR (lcum.user_id_ = #{param.studentId} AND lcum.user_type_ = 'STUDENT'))
             </if>
             </if>
             <if test="param.teacherId != null">
             <if test="param.teacherId != null">
-                AND (lc.teacher_range_type_ == 'ALL' OR (lcum.user_id_ = #{param.teacherId} AND lcum.user_type_ = 'TEACHER'))
+                AND (lc.teacher_range_type_ = 'ALL' OR (lcum.user_id_ = #{param.teacherId} AND lcum.user_type_ = 'TEACHER'))
             </if>
             </if>
             <if test="param.lessonCoursewareIds != null">
             <if test="param.lessonCoursewareIds != null">
                 and lc.lesson_course_id_ IN
                 and lc.lesson_course_id_ IN