|
@@ -1384,13 +1384,13 @@
|
|
|
<if test="onlyHistory!=null and onlyHistory==1">
|
|
|
AND CONCAT( cs.class_date_, ' ', cs.end_class_time_ )<now()
|
|
|
</if>
|
|
|
- <if test="status!=null">
|
|
|
+ <if test="status!=null and status!=''">
|
|
|
AND cs.status_ = #{status}
|
|
|
</if>
|
|
|
- <if test="startClassDate!=null">
|
|
|
+ <if test="startClassDate!=null and startClassDate!=''">
|
|
|
AND cs.class_date_ >= #{startClassDate}
|
|
|
</if>
|
|
|
- <if test="endClassDate!=null">
|
|
|
+ <if test="endClassDate!=null and endClassDate!=''">
|
|
|
AND cs.class_date_ <= #{endClassDate}
|
|
|
</if>
|
|
|
</where>
|
|
@@ -1493,13 +1493,13 @@
|
|
|
<if test="userId != null">
|
|
|
AND sa.teacher_id_=#{userId}
|
|
|
</if>
|
|
|
- <if test="status!=null">
|
|
|
+ <if test="status!=null and status!=''">
|
|
|
AND cs.status_ = #{status}
|
|
|
</if>
|
|
|
- <if test="startClassDate!=null">
|
|
|
+ <if test="startClassDate!=null and startClassDate!=''">
|
|
|
AND cs.class_date_ >= #{startClassDate}
|
|
|
</if>
|
|
|
- <if test="endClassDate!=null">
|
|
|
+ <if test="endClassDate!=null and endClassDate!=''">
|
|
|
AND cs.class_date_ <= #{endClassDate}
|
|
|
</if>
|
|
|
GROUP BY sa.course_schedule_id_
|
|
@@ -1527,13 +1527,13 @@
|
|
|
<if test="userId != null">
|
|
|
AND sa.teacher_id_=#{userId}
|
|
|
</if>
|
|
|
- <if test="status!=null">
|
|
|
+ <if test="status!=null and status!=''">
|
|
|
AND cs.status_ = #{status}
|
|
|
</if>
|
|
|
- <if test="startClassDate!=null">
|
|
|
+ <if test="startClassDate!=null and startClassDate!=''">
|
|
|
AND cs.class_date_ >= #{startClassDate}
|
|
|
</if>
|
|
|
- <if test="endClassDate!=null">
|
|
|
+ <if test="endClassDate!=null and endClassDate!=''">
|
|
|
AND cs.class_date_ <= #{endClassDate}
|
|
|
</if>
|
|
|
</select>
|