|
@@ -1016,6 +1016,7 @@
|
|
<if test="orgId != null and orgId != ''">
|
|
<if test="orgId != null and orgId != ''">
|
|
and h.org_id=#{orgId}
|
|
and h.org_id=#{orgId}
|
|
</if>
|
|
</if>
|
|
|
|
+ and h.monitor_status <![CDATA[ <> ]]> 'FINISHED'
|
|
and (f.STATUS = 'FIRST_PREPARE' or f.STATUS = 'ANSWERING'
|
|
and (f.STATUS = 'FIRST_PREPARE' or f.STATUS = 'ANSWERING'
|
|
or f.STATUS = 'BREAK_OFF' or f.STATUS = 'RESUME_PREPARE')
|
|
or f.STATUS = 'BREAK_OFF' or f.STATUS = 'RESUME_PREPARE')
|
|
AND t.type!='NONE'
|
|
AND t.type!='NONE'
|
|
@@ -1033,7 +1034,8 @@
|
|
<if test="orgId != null and orgId != ''">
|
|
<if test="orgId != null and orgId != ''">
|
|
and h.org_id=#{orgId}
|
|
and h.org_id=#{orgId}
|
|
</if>
|
|
</if>
|
|
- and (f.STATUS = 'FIRST_PREPARE' or f.STATUS = 'ANSWERING'
|
|
|
|
|
|
+ and h.monitor_status <![CDATA[ <> ]]> 'FINISHED'
|
|
|
|
+ and (f.STATUS = 'FIRST_PREPARE' or f.STATUS = 'ANSWERING'
|
|
or f.STATUS = 'BREAK_OFF' or f.STATUS = 'RESUME_PREPARE')
|
|
or f.STATUS = 'BREAK_OFF' or f.STATUS = 'RESUME_PREPARE')
|
|
AND t.status = 0
|
|
AND t.status = 0
|
|
AND t.id IS NOT NULL
|
|
AND t.id IS NOT NULL
|
|
@@ -1052,6 +1054,7 @@
|
|
<if test="orgId != null and orgId != ''">
|
|
<if test="orgId != null and orgId != ''">
|
|
and tee.org_id = #{orgId}
|
|
and tee.org_id = #{orgId}
|
|
</if>
|
|
</if>
|
|
|
|
+ and tee.monitor_status <![CDATA[ <> ]]> 'FINISHED'
|
|
and (toer.STATUS = 'FIRST_PREPARE' or toer.STATUS = 'ANSWERING'
|
|
and (toer.STATUS = 'FIRST_PREPARE' or toer.STATUS = 'ANSWERING'
|
|
or toer.STATUS = 'BREAK_OFF' or toer.STATUS = 'RESUME_PREPARE')
|
|
or toer.STATUS = 'BREAK_OFF' or toer.STATUS = 'RESUME_PREPARE')
|
|
group by
|
|
group by
|
|
@@ -1075,12 +1078,13 @@
|
|
<if test="orgId != null and orgId != ''">
|
|
<if test="orgId != null and orgId != ''">
|
|
and tee.org_id = #{orgId}
|
|
and tee.org_id = #{orgId}
|
|
</if>
|
|
</if>
|
|
|
|
+ and tee.monitor_status <![CDATA[ <> ]]> 'FINISHED'
|
|
and (toer.STATUS = 'FIRST_PREPARE' or toer.STATUS = 'ANSWERING'
|
|
and (toer.STATUS = 'FIRST_PREPARE' or toer.STATUS = 'ANSWERING'
|
|
or toer.STATUS = 'BREAK_OFF' or toer.STATUS = 'RESUME_PREPARE')
|
|
or toer.STATUS = 'BREAK_OFF' or toer.STATUS = 'RESUME_PREPARE')
|
|
and tir.country != '0' and tir.province != '0'
|
|
and tir.country != '0' and tir.province != '0'
|
|
group by
|
|
group by
|
|
tir.country,
|
|
tir.country,
|
|
- tir.province;
|
|
|
|
|
|
+ tir.province
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="getMap" resultType="com.qmth.themis.business.bean.admin.ExaminationMonitorMapBean">
|
|
<select id="getMap" resultType="com.qmth.themis.business.bean.admin.ExaminationMonitorMapBean">
|
|
@@ -1106,6 +1110,7 @@
|
|
<if test="orgId != null and orgId != ''">
|
|
<if test="orgId != null and orgId != ''">
|
|
and tee.org_id = #{orgId}
|
|
and tee.org_id = #{orgId}
|
|
</if>
|
|
</if>
|
|
|
|
+ and tee.monitor_status <![CDATA[ <> ]]> 'FINISHED'
|
|
and toer.client_websocket_status = 'ON_LINE'
|
|
and toer.client_websocket_status = 'ON_LINE'
|
|
and (toer.STATUS = 'FIRST_PREPARE'
|
|
and (toer.STATUS = 'FIRST_PREPARE'
|
|
or toer.STATUS = 'ANSWERING'
|
|
or toer.STATUS = 'ANSWERING'
|
|
@@ -1133,6 +1138,7 @@
|
|
<if test="orgId != null and orgId != ''">
|
|
<if test="orgId != null and orgId != ''">
|
|
and tee.org_id = #{orgId}
|
|
and tee.org_id = #{orgId}
|
|
</if>
|
|
</if>
|
|
|
|
+ and tee.monitor_status <![CDATA[ <> ]]> 'FINISHED'
|
|
and (toer.STATUS = 'FIRST_PREPARE'
|
|
and (toer.STATUS = 'FIRST_PREPARE'
|
|
or toer.STATUS = 'ANSWERING'
|
|
or toer.STATUS = 'ANSWERING'
|
|
or toer.STATUS = 'BREAK_OFF'
|
|
or toer.STATUS = 'BREAK_OFF'
|
|
@@ -1217,6 +1223,7 @@
|
|
from t_e_exam tee
|
|
from t_e_exam tee
|
|
where tee.org_id = #{orgId}
|
|
where tee.org_id = #{orgId}
|
|
and toer.exam_id = tee.id
|
|
and toer.exam_id = tee.id
|
|
|
|
+ and tee.monitor_status <![CDATA[ <> ]]> 'FINISHED'
|
|
)
|
|
)
|
|
and (toer.STATUS = 'FIRST_PREPARE'
|
|
and (toer.STATUS = 'FIRST_PREPARE'
|
|
or toer.STATUS = 'ANSWERING'
|
|
or toer.STATUS = 'ANSWERING'
|
|
@@ -1231,6 +1238,7 @@
|
|
from t_e_exam tee
|
|
from t_e_exam tee
|
|
where tee.org_id = #{orgId}
|
|
where tee.org_id = #{orgId}
|
|
and toer.exam_id = tee.id
|
|
and toer.exam_id = tee.id
|
|
|
|
+ and tee.monitor_status <![CDATA[ <> ]]> 'FINISHED'
|
|
)
|
|
)
|
|
and toer.STATUS = 'FIRST_PREPARE'
|
|
and toer.STATUS = 'FIRST_PREPARE'
|
|
and toer.client_websocket_status = 'ON_LINE'
|
|
and toer.client_websocket_status = 'ON_LINE'
|
|
@@ -1242,6 +1250,7 @@
|
|
from t_e_exam tee
|
|
from t_e_exam tee
|
|
where tee.org_id = #{orgId}
|
|
where tee.org_id = #{orgId}
|
|
and toer.exam_id = tee.id
|
|
and toer.exam_id = tee.id
|
|
|
|
+ and tee.monitor_status <![CDATA[ <> ]]> 'FINISHED'
|
|
)
|
|
)
|
|
and toer.STATUS = 'ANSWERING'
|
|
and toer.STATUS = 'ANSWERING'
|
|
and toer.client_websocket_status = 'ON_LINE'
|
|
and toer.client_websocket_status = 'ON_LINE'
|
|
@@ -1647,6 +1656,7 @@
|
|
<if test="orgId != null and orgId != ''">
|
|
<if test="orgId != null and orgId != ''">
|
|
and tee.org_id = #{orgId}
|
|
and tee.org_id = #{orgId}
|
|
</if>
|
|
</if>
|
|
|
|
+ and tee.monitor_status <![CDATA[ <> ]]> 'FINISHED'
|
|
and (teesol.create_time <![CDATA[ >= ]]> #{minusTime}
|
|
and (teesol.create_time <![CDATA[ >= ]]> #{minusTime}
|
|
and teesol.create_time <![CDATA[ <= ]]> #{currentTime})
|
|
and teesol.create_time <![CDATA[ <= ]]> #{currentTime})
|
|
and teesol.`type` = 'ON_LINE') t where t.createTime <![CDATA[ <= ]]> #{item}
|
|
and teesol.`type` = 'ON_LINE') t where t.createTime <![CDATA[ <= ]]> #{item}
|
|
@@ -1671,6 +1681,7 @@
|
|
<if test="orgId != null and orgId != ''">
|
|
<if test="orgId != null and orgId != ''">
|
|
and tee.org_id = #{orgId}
|
|
and tee.org_id = #{orgId}
|
|
</if>
|
|
</if>
|
|
|
|
+ and tee.monitor_status <![CDATA[ <> ]]> 'FINISHED'
|
|
and (teesol.create_time <![CDATA[ >= ]]> #{minusTime}
|
|
and (teesol.create_time <![CDATA[ >= ]]> #{minusTime}
|
|
and teesol.create_time <![CDATA[ <= ]]> #{currentTime})
|
|
and teesol.create_time <![CDATA[ <= ]]> #{currentTime})
|
|
and teesol.`type` = 'OFF_LINE') t where t.createTime <![CDATA[ <= ]]> #{item}
|
|
and teesol.`type` = 'OFF_LINE') t where t.createTime <![CDATA[ <= ]]> #{item}
|