|
@@ -1368,8 +1368,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="atFull != null and atFull !='' ">
|
|
<if test="atFull != null and atFull !='' ">
|
|
AND (SELECT COUNT(a.id) FROM class_grade_user a where a.grade_id = g.grade_id and a.status =1) < g.student_upper
|
|
AND (SELECT COUNT(a.id) FROM class_grade_user a where a.grade_id = g.grade_id and a.status =1) < g.student_upper
|
|
</if>
|
|
</if>
|
|
- <if test="classStartTime != null and classStartTime != '' and classEndTime != null and classEndTime != ''">
|
|
|
|
- AND (#{classStartTime} BETWEEN g.class_start_time and g.class_end_time or #{classEndTime} BETWEEN g.class_start_time and g.class_end_time)
|
|
|
|
|
|
+ <if test="classStartTime != null and classStartTime != '' ">
|
|
|
|
+ AND g.class_start_time >=#{classStartTime}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="classEndTime != null and classEndTime != '' ">
|
|
|
|
+ AND #{classEndTime} >= g.class_end_time
|
|
</if>
|
|
</if>
|
|
<if test="pastDue != null or pastDue != null ">
|
|
<if test="pastDue != null or pastDue != null ">
|
|
AND ((unix_timestamp(now())+10*24*3600) < g.class_end_time or g.class_start_time is null)
|
|
AND ((unix_timestamp(now())+10*24*3600) < g.class_end_time or g.class_start_time is null)
|
|
@@ -1458,8 +1461,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="atFull != null and atFull !='' ">
|
|
<if test="atFull != null and atFull !='' ">
|
|
AND (SELECT COUNT(a.id) FROM class_grade_user a where a.grade_id = g.grade_id and a.status =1) < g.student_upper
|
|
AND (SELECT COUNT(a.id) FROM class_grade_user a where a.grade_id = g.grade_id and a.status =1) < g.student_upper
|
|
</if>
|
|
</if>
|
|
- <if test="classStartTime != null and classStartTime != '' and classEndTime != null and classEndTime != ''">
|
|
|
|
- AND (#{classStartTime} BETWEEN g.class_start_time and g.class_end_time or #{classEndTime} BETWEEN g.class_start_time and g.class_end_time)
|
|
|
|
|
|
+ <if test="classStartTime != null and classStartTime != '' ">
|
|
|
|
+ AND g.class_start_time >=#{classStartTime}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="classEndTime != null and classEndTime != '' ">
|
|
|
|
+ AND #{classEndTime} >= g.class_end_time
|
|
</if>
|
|
</if>
|
|
<if test="pastDue != null or pastDue != null ">
|
|
<if test="pastDue != null or pastDue != null ">
|
|
AND ((unix_timestamp(now())+10*24*3600) < g.class_end_time or g.class_start_time is null)
|
|
AND ((unix_timestamp(now())+10*24*3600) < g.class_end_time or g.class_start_time is null)
|