Browse Source

首页异常数据调整

zouxuan 2 years ago
parent
commit
4fa24ca8e5

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

@@ -1300,10 +1300,10 @@
 			AND cgsm.id_ IS NULL
 			AND sub.parent_subject_id_ != 24
 			<if test="hasCourse != null and hasCourse == true">
-				AND mg.first_course_start_time_ >= NOW()
+				AND NOW() >= mg.first_course_start_time_
 			</if>
 			<if test="hasCourse != null and hasCourse == false">
-				AND (mg.first_course_start_time_ &lt; NOW() OR mg.first_course_start_time_ IS NULL)
+				AND (NOW() &lt; mg.first_course_start_time_ OR mg.first_course_start_time_ IS NULL)
 			</if>
 			<if test="educationUserId != null">
 				AND mg.educational_teacher_id_ = #{educationUserId}

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

@@ -1245,10 +1245,10 @@
                 AND FIND_IN_SET(mg.organ_id_,#{organIds})
             </if>
             <if test="hasCourse != null and hasCourse == true">
-                AND mg.first_course_start_time_ >= NOW()
+                AND NOW() >= mg.first_course_start_time_
             </if>
             <if test="hasCourse != null and hasCourse == false">
-                AND (mg.first_course_start_time_ &lt; NOW() OR mg.first_course_start_time_ IS NULL)
+                AND (NOW() &lt; mg.first_course_start_time_ OR mg.first_course_start_time_ IS NULL)
             </if>
             <if test="educationUserId != null">
                 AND mg.educational_teacher_id_ = #{educationUserId}