|
@@ -685,7 +685,7 @@
|
|
|
</if>
|
|
|
and tee.monitor_status <![CDATA[ <> ]]> 'FINISHED'
|
|
|
</where>
|
|
|
- ) t
|
|
|
+ group by tee.id,tees.room_code,tee.name,teea.id,teea.code,tees.`identity`,tees.name,leftExamCount,statusTemp,tes.mobile_number,t.breach_status,tees.class_no) t
|
|
|
<where>
|
|
|
<if test="status != null and status != '' or status == 0">
|
|
|
<choose>
|
|
@@ -780,9 +780,7 @@
|
|
|
</if>
|
|
|
and tee.monitor_status <![CDATA[ <> ]]> 'FINISHED'
|
|
|
</where>
|
|
|
- group by
|
|
|
- tee.id,tees.room_code,tee.name,teea.id,teea.code,tees.`identity`,tees.name,leftExamCount,statusTemp,tes.mobile_number,t.breach_status)
|
|
|
- t
|
|
|
+ group by tee.id,tees.room_code,tee.name,teea.id,teea.code,tees.`identity`,tees.name,leftExamCount,statusTemp,tes.mobile_number,t.breach_status,tees.class_no) t
|
|
|
<where>
|
|
|
<if test="status != null and status != '' or status == 0">
|
|
|
<choose>
|
|
@@ -796,10 +794,10 @@
|
|
|
</if>
|
|
|
<if test="breachStatus != null and breachStatus != '' or breachStatus == 0">
|
|
|
<if test="breachStatus == 0">
|
|
|
- and t.breachStatus = #{breachStatus}
|
|
|
+ and t.breachStatusTemp = #{breachStatus}
|
|
|
</if>
|
|
|
<if test="breachStatus == 1">
|
|
|
- and (t.breachStatus = #{breachStatus} or t.breachStatus is null)
|
|
|
+ and (t.breachStatusTemp = #{breachStatus} or t.breachStatusTemp is null)
|
|
|
</if>
|
|
|
</if>
|
|
|
</where>
|