|
@@ -918,15 +918,11 @@
|
|
|
select count(1) as c
|
|
|
from t_oe_exam_record toer
|
|
|
where exists(
|
|
|
- select teea.id
|
|
|
- from t_e_exam_activity teea
|
|
|
- where exists(
|
|
|
- select tee.id
|
|
|
- from t_e_exam tee
|
|
|
- where tee.org_id = #{orgId}
|
|
|
- and tee.id = teea.exam_id
|
|
|
- )
|
|
|
- and toer.exam_activity_id = teea.id)
|
|
|
+ select tee.id
|
|
|
+ from t_e_exam tee
|
|
|
+ where tee.org_id = 89389883529379840
|
|
|
+ and toer.exam_id = tee.id
|
|
|
+ )
|
|
|
and (toer.STATUS = 'FIRST_PREPARE'
|
|
|
or toer.STATUS = 'ANSWERING'
|
|
|
or toer.STATUS = 'BREAK_OFF'
|
|
@@ -936,43 +932,42 @@
|
|
|
select count(1) as c
|
|
|
from t_oe_exam_record toer
|
|
|
where exists(
|
|
|
- select teea.id
|
|
|
- from t_e_exam_activity teea
|
|
|
- where exists(
|
|
|
- select tee.id
|
|
|
- from t_e_exam tee
|
|
|
- where tee.org_id = #{orgId}
|
|
|
- and tee.id = teea.exam_id
|
|
|
- )
|
|
|
- and toer.exam_activity_id = teea.id)
|
|
|
+ select tee.id
|
|
|
+ from t_e_exam tee
|
|
|
+ where tee.org_id = 89389883529379840
|
|
|
+ and toer.exam_id = tee.id
|
|
|
+ )
|
|
|
and toer.STATUS = 'FIRST_PREPARE'
|
|
|
and toer.client_websocket_status = 'ON_LINE'
|
|
|
union all
|
|
|
select count(1) as c
|
|
|
from t_oe_exam_record toer
|
|
|
where exists(
|
|
|
- select teea.id
|
|
|
- from t_e_exam_activity teea
|
|
|
- where exists(
|
|
|
- select tee.id
|
|
|
- from t_e_exam tee
|
|
|
- where tee.org_id = #{orgId}
|
|
|
- and tee.id = teea.exam_id
|
|
|
- )
|
|
|
- and toer.exam_activity_id = teea.id)
|
|
|
+ select tee.id
|
|
|
+ from t_e_exam tee
|
|
|
+ where tee.org_id = 89389883529379840
|
|
|
+ and toer.exam_id = tee.id
|
|
|
+ )
|
|
|
and toer.STATUS = 'ANSWERING'
|
|
|
and toer.client_websocket_status = 'ON_LINE'
|
|
|
</select>
|
|
|
|
|
|
<select id="findByStopInfo" resultType="com.qmth.themis.business.bean.admin.CountStopBean">
|
|
|
select
|
|
|
+ sum(t.clientWebsocketStatusOffCount) as offCount,
|
|
|
+ sum(t.cameraMonitorStatusStop + t.screenMonitorStatusStop + t.mobileFirstMonitorStatusStop +
|
|
|
+ t.mobileSecondMonitorStatusStop) as stopCount,
|
|
|
+ sum(t.allCount) as allCount
|
|
|
+ from
|
|
|
+ (select
|
|
|
count((t.client_websocket_status = 'OFF_LINE' or t.client_websocket_status is null) or null) as
|
|
|
clientWebsocketStatusOffCount,
|
|
|
count(t.client_websocket_status = 'ON_LINE') as clientWebsocketStatusOnCount,
|
|
|
count(t.camera_monitor_status = 'STOP') as cameraMonitorStatusStop,
|
|
|
count(t.screen_monitor_status = 'STOP') as screenMonitorStatusStop,
|
|
|
count(t.mobile_first_monitor_status = 'STOP') as mobileFirstMonitorStatusStop,
|
|
|
- count(t.mobile_second_monitor_status = 'STOP') as mobileSecondMonitorStatusStop
|
|
|
+ count(t.mobile_second_monitor_status = 'STOP') as mobileSecondMonitorStatusStop,
|
|
|
+ 0 as allCount
|
|
|
from
|
|
|
t_oe_exam_record t
|
|
|
left join t_e_exam_student s on
|
|
@@ -997,6 +992,23 @@
|
|
|
t.screen_monitor_status,
|
|
|
t.mobile_first_monitor_status,
|
|
|
t.mobile_second_monitor_status
|
|
|
+ UNION all
|
|
|
+ select
|
|
|
+ 0 as clientWebsocketStatusOffCount,
|
|
|
+ 0 as clientWebsocketStatusOnCount,
|
|
|
+ 0 as cameraMonitorStatusStop,
|
|
|
+ 0 as screenMonitorStatusStop,
|
|
|
+ 0 as mobileFirstMonitorStatusStop,
|
|
|
+ 0 as mobileSecondMonitorStatusStop,
|
|
|
+ count(1) as allCount
|
|
|
+ from
|
|
|
+ t_e_exam_student t
|
|
|
+ where
|
|
|
+ t.exam_id = #{examId}
|
|
|
+ and t.room_code in
|
|
|
+ <foreach collection="roomCodeSet" item="roomCode" index="index" open="(" close=")" separator=",">
|
|
|
+ #{roomCode}
|
|
|
+ </foreach>) t
|
|
|
</select>
|
|
|
|
|
|
<select id="findByOnlineInfo" resultType="java.lang.Integer">
|