|
@@ -2417,21 +2417,27 @@
|
|
|
<if test="isCallNames != null and isCallNames == 0">
|
|
|
AND sa.id_ IS NULL
|
|
|
</if>
|
|
|
- <if test="startTime!=null and endTime==null">
|
|
|
- AND cs.class_date_ > DATE_FORMAT(#{startTime},"%Y-%m-%d")
|
|
|
+ <if test="startTime!=null">
|
|
|
+ AND cs.class_date_ >= DATE_FORMAT(#{startTime},"%Y-%m-%d")
|
|
|
</if>
|
|
|
- <if test="startTime==null and endTime!=null">
|
|
|
- AND cs.class_date_ < DATE_FORMAT(#{endTime},"%Y-%m-%d")
|
|
|
- </if>
|
|
|
- <if test="startTime!=null and endTime!=null">
|
|
|
- AND cs.class_date_ BETWEEN DATE_FORMAT(#{startTime},"%Y-%m-%d") AND DATE_FORMAT(#{endTime},"%Y-%m-%d")
|
|
|
+ <if test="endTime!=null">
|
|
|
+ AND cs.class_date_ <= DATE_FORMAT(#{endTime},"%Y-%m-%d")
|
|
|
</if>
|
|
|
<if test="courseStatus!=null">
|
|
|
AND cs.status_ = #{courseStatus,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
</if>
|
|
|
+ <if test="createStartDate!=null">
|
|
|
+ AND date(cs.create_time_) <= date(#{createStartDate})
|
|
|
+ </if>
|
|
|
+ <if test="createEndDate!=null">
|
|
|
+ AND date(cs.create_time_) <= date(#{createEndDate})
|
|
|
+ </if>
|
|
|
<if test="courseType!=null">
|
|
|
AND cs.type_ = #{courseType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
</if>
|
|
|
+ <if test="groupType!=null">
|
|
|
+ AND cs.group_type_ = #{groupType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
+ </if>
|
|
|
<if test="schoolId!=null">
|
|
|
AND cs.schoole_id_ = #{schoolId}
|
|
|
</if>
|