|
@@ -1661,60 +1661,60 @@
|
|
|
count(toer.id) > 0) a;
|
|
|
</select>
|
|
|
|
|
|
- <select id="dataCount" resultType="java.lang.Long">
|
|
|
- select count(1) as c
|
|
|
- from t_oe_exam_record toer
|
|
|
- where toer.client_websocket_status = 'ON_LINE'
|
|
|
- union all
|
|
|
- select count(1) as c
|
|
|
- from t_oe_exam_record toer
|
|
|
- where toer.STATUS in ('ANSWERING', 'RESUME_PREPARE')
|
|
|
- and toer.client_websocket_status = 'ON_LINE'
|
|
|
- union all
|
|
|
- select count(1) as c
|
|
|
- from t_oe_exam_record toer
|
|
|
- where toer.STATUS in ('FINISHED', 'PERSISTED')
|
|
|
- union all
|
|
|
- select count(distinct tees.id) as c
|
|
|
- from t_e_exam_student tees
|
|
|
- left join t_oe_exam_record toer on toer.exam_student_id = tees.id
|
|
|
- where toer.STATUS in ('FINISHED', 'PERSISTED')
|
|
|
- </select>
|
|
|
+<!-- <select id="dataCount" resultType="java.lang.Long">-->
|
|
|
+<!-- select count(1) as c-->
|
|
|
+<!-- from t_oe_exam_record toer-->
|
|
|
+<!-- where toer.client_websocket_status = 'ON_LINE'-->
|
|
|
+<!-- union all-->
|
|
|
+<!-- select count(1) as c-->
|
|
|
+<!-- from t_oe_exam_record toer-->
|
|
|
+<!-- where toer.STATUS in ('ANSWERING', 'RESUME_PREPARE')-->
|
|
|
+<!-- and toer.client_websocket_status = 'ON_LINE'-->
|
|
|
+<!-- union all-->
|
|
|
+<!-- select count(1) as c-->
|
|
|
+<!-- from t_oe_exam_record toer-->
|
|
|
+<!-- where toer.STATUS in ('FINISHED', 'PERSISTED')-->
|
|
|
+<!-- union all-->
|
|
|
+<!-- select count(distinct tees.id) as c-->
|
|
|
+<!-- from t_e_exam_student tees-->
|
|
|
+<!-- left join t_oe_exam_record toer on toer.exam_student_id = tees.id-->
|
|
|
+<!-- where toer.STATUS in ('FINISHED', 'PERSISTED')-->
|
|
|
+<!-- </select>-->
|
|
|
|
|
|
- <select id="orgDataCount" resultType="com.qmth.themis.business.bean.admin.OrgDataCountBean">
|
|
|
- select t.name as name,
|
|
|
- t.code as code,
|
|
|
- sum(onlineCount) as onlineCount,
|
|
|
- sum(examCount) as examCount
|
|
|
- from (select tbo.name,
|
|
|
- tbo.code,
|
|
|
- count(toer.id) as onlineCount,
|
|
|
- 0 as examCount
|
|
|
- from t_b_org tbo
|
|
|
- join t_e_exam tee on
|
|
|
- tbo.id = tee.org_id
|
|
|
- join t_oe_exam_record toer on
|
|
|
- tee.id = toer.exam_id
|
|
|
- WHERE toer.client_websocket_status = 'ON_LINE'
|
|
|
- group by tbo.name,
|
|
|
- tbo.code
|
|
|
- union all
|
|
|
- select tbo.name,
|
|
|
- tbo.code,
|
|
|
- 0 as onlineCount,
|
|
|
- count(toer.id) as examCount
|
|
|
- from t_b_org tbo
|
|
|
- join t_e_exam tee on
|
|
|
- tbo.id = tee.org_id
|
|
|
- join t_oe_exam_record toer on
|
|
|
- tee.id = toer.exam_id
|
|
|
- WHERE toer.STATUS in ('ANSWERING', 'RESUME_PREPARE')
|
|
|
- and toer.client_websocket_status = 'ON_LINE'
|
|
|
- group by tbo.name,
|
|
|
- tbo.code) t
|
|
|
- group by t.name,
|
|
|
- t.code
|
|
|
- </select>
|
|
|
+<!-- <select id="orgDataCount" resultType="com.qmth.themis.business.bean.admin.OrgDataCountBean">-->
|
|
|
+<!-- select t.name as name,-->
|
|
|
+<!-- t.code as code,-->
|
|
|
+<!-- sum(onlineCount) as onlineCount,-->
|
|
|
+<!-- sum(examCount) as examCount-->
|
|
|
+<!-- from (select tbo.name,-->
|
|
|
+<!-- tbo.code,-->
|
|
|
+<!-- count(toer.id) as onlineCount,-->
|
|
|
+<!-- 0 as examCount-->
|
|
|
+<!-- from t_b_org tbo-->
|
|
|
+<!-- join t_e_exam tee on-->
|
|
|
+<!-- tbo.id = tee.org_id-->
|
|
|
+<!-- join t_oe_exam_record toer on-->
|
|
|
+<!-- tee.id = toer.exam_id-->
|
|
|
+<!-- WHERE toer.client_websocket_status = 'ON_LINE'-->
|
|
|
+<!-- group by tbo.name,-->
|
|
|
+<!-- tbo.code-->
|
|
|
+<!-- union all-->
|
|
|
+<!-- select tbo.name,-->
|
|
|
+<!-- tbo.code,-->
|
|
|
+<!-- 0 as onlineCount,-->
|
|
|
+<!-- count(toer.id) as examCount-->
|
|
|
+<!-- from t_b_org tbo-->
|
|
|
+<!-- join t_e_exam tee on-->
|
|
|
+<!-- tbo.id = tee.org_id-->
|
|
|
+<!-- join t_oe_exam_record toer on-->
|
|
|
+<!-- tee.id = toer.exam_id-->
|
|
|
+<!-- WHERE toer.STATUS in ('ANSWERING', 'RESUME_PREPARE')-->
|
|
|
+<!-- and toer.client_websocket_status = 'ON_LINE'-->
|
|
|
+<!-- group by tbo.name,-->
|
|
|
+<!-- tbo.code) t-->
|
|
|
+<!-- group by t.name,-->
|
|
|
+<!-- t.code-->
|
|
|
+<!-- </select>-->
|
|
|
|
|
|
<select id="mapDataCount" resultType="com.qmth.themis.business.bean.admin.MapDataCountBean">
|
|
|
select tir.country,
|