yonge il y a 2 ans
Parent
commit
3d96089126

+ 4 - 4
mec-biz/src/main/resources/config/mybatis/CourseScheduleSwMapper.xml

@@ -101,10 +101,10 @@
 				and cs.teach_mode_ = #{teachMode}
 			</if>
 			<if test="createStartDate != null">
-				and date(cs.create_time_) &gt;= #{createStartDate}
+				and class_date_ &gt;= #{createStartDate}
 			</if>
 			<if test="createEndDate != null">
-				and date(cs.create_time_) &lt;= #{createEndDate}
+				and class_date_ &lt;= #{createEndDate}
 			</if>
 		</where>
 		ORDER BY cs.id_
@@ -125,10 +125,10 @@
 				and cs.teach_mode_ = #{teachMode}
 			</if>
 			<if test="createStartDate != null">
-				and date(cs.create_time_) &gt;= #{createStartDate}
+				and class_date_ &gt;= #{createStartDate}
 			</if>
 			<if test="createEndDate != null">
-				and date(cs.create_time_) &lt;= #{createEndDate}
+				and class_date_ &lt;= #{createEndDate}
 			</if>
 		</where>
 	</select>