|
@@ -1385,12 +1385,12 @@
|
|
AND CONCAT( cs.class_date_, ' ', cs.end_class_time_ )<now()
|
|
AND CONCAT( cs.class_date_, ' ', cs.end_class_time_ )<now()
|
|
</if>
|
|
</if>
|
|
<if test="status!=null">
|
|
<if test="status!=null">
|
|
- AND cs.status_ = #{status}
|
|
|
|
|
|
+ AND cs.status_ = #{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
</if>
|
|
</if>
|
|
- <if test="startClassDate!=null">
|
|
|
|
|
|
+ <if test="startClassDate!=null and startClassDate!=''">
|
|
AND cs.class_date_ >= #{startClassDate}
|
|
AND cs.class_date_ >= #{startClassDate}
|
|
</if>
|
|
</if>
|
|
- <if test="endClassDate!=null">
|
|
|
|
|
|
+ <if test="endClassDate!=null and endClassDate!=''">
|
|
AND cs.class_date_ <= #{endClassDate}
|
|
AND cs.class_date_ <= #{endClassDate}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
@@ -1494,12 +1494,12 @@
|
|
AND sa.teacher_id_=#{userId}
|
|
AND sa.teacher_id_=#{userId}
|
|
</if>
|
|
</if>
|
|
<if test="status!=null">
|
|
<if test="status!=null">
|
|
- AND cs.status_ = #{status}
|
|
|
|
|
|
+ AND cs.status_ = #{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
</if>
|
|
</if>
|
|
- <if test="startClassDate!=null">
|
|
|
|
|
|
+ <if test="startClassDate!=null and startClassDate!=''">
|
|
AND cs.class_date_ >= #{startClassDate}
|
|
AND cs.class_date_ >= #{startClassDate}
|
|
</if>
|
|
</if>
|
|
- <if test="endClassDate!=null">
|
|
|
|
|
|
+ <if test="endClassDate!=null and endClassDate!=''">
|
|
AND cs.class_date_ <= #{endClassDate}
|
|
AND cs.class_date_ <= #{endClassDate}
|
|
</if>
|
|
</if>
|
|
GROUP BY sa.course_schedule_id_
|
|
GROUP BY sa.course_schedule_id_
|
|
@@ -1528,12 +1528,12 @@
|
|
AND sa.teacher_id_=#{userId}
|
|
AND sa.teacher_id_=#{userId}
|
|
</if>
|
|
</if>
|
|
<if test="status!=null">
|
|
<if test="status!=null">
|
|
- AND cs.status_ = #{status}
|
|
|
|
|
|
+ AND cs.status_ = #{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
</if>
|
|
</if>
|
|
- <if test="startClassDate!=null">
|
|
|
|
|
|
+ <if test="startClassDate!=null and startClassDate!=''">
|
|
AND cs.class_date_ >= #{startClassDate}
|
|
AND cs.class_date_ >= #{startClassDate}
|
|
</if>
|
|
</if>
|
|
- <if test="endClassDate!=null">
|
|
|
|
|
|
+ <if test="endClassDate!=null and endClassDate!=''">
|
|
AND cs.class_date_ <= #{endClassDate}
|
|
AND cs.class_date_ <= #{endClassDate}
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|