|
@@ -1042,7 +1042,7 @@
|
|
|
<select id="getWarnDistribution"
|
|
|
resultType="com.qmth.themis.business.bean.admin.ExaminationMonitorWarnDistributionBean">
|
|
|
select
|
|
|
- tiiwi.info as type,
|
|
|
+ if(tiiwi.info is not null,substring_index(substring_index(tiiwi.info,'】',1),'【',-1),null) as type,
|
|
|
count(tiiwi.exam_record_id) as warnCount
|
|
|
from
|
|
|
t_ie_invigilate_warn_info tiiwi
|
|
@@ -1077,6 +1077,7 @@
|
|
|
</if>
|
|
|
and (toer.STATUS = 'FIRST_PREPARE' or toer.STATUS = 'ANSWERING'
|
|
|
or toer.STATUS = 'BREAK_OFF' or toer.STATUS = 'RESUME_PREPARE')
|
|
|
+ and tir.country != '0' and tir.province != '0'
|
|
|
group by
|
|
|
tir.country,
|
|
|
tir.province;
|
|
@@ -1110,6 +1111,7 @@
|
|
|
or toer.STATUS = 'ANSWERING'
|
|
|
or toer.STATUS = 'BREAK_OFF'
|
|
|
or toer.STATUS = 'RESUME_PREPARE')
|
|
|
+ and tir.country != '0' and tir.province != '0'
|
|
|
group by
|
|
|
tir.country,
|
|
|
tir.province
|
|
@@ -1135,6 +1137,7 @@
|
|
|
or toer.STATUS = 'ANSWERING'
|
|
|
or toer.STATUS = 'BREAK_OFF'
|
|
|
or toer.STATUS = 'RESUME_PREPARE')
|
|
|
+ and tir.country != '0' and tir.province != '0'
|
|
|
group by
|
|
|
tir.country,
|
|
|
tir.province) t
|
|
@@ -1645,13 +1648,9 @@
|
|
|
<if test="orgId != null and orgId != ''">
|
|
|
and tee.org_id = #{orgId}
|
|
|
</if>
|
|
|
- and (teesol.create_time <![CDATA[ >= ]]> unix_timestamp(date_sub(#{currentDate}, interval #{scaleSize} minute))
|
|
|
- * 1000
|
|
|
+ and (teesol.create_time >= unix_timestamp(date_sub(#{currentDate}, interval #{interval} day)) * 1000
|
|
|
and teesol.create_time <![CDATA[ <= ]]> unix_timestamp(#{currentDate}) * 1000)
|
|
|
- and teesol.`type` = 'ON_LINE') t
|
|
|
- where
|
|
|
- (t.createTime <![CDATA[ >= ]]> #{item} and t.createTime <![CDATA[ < ]]> date_add(#{item}, interval #{interval}
|
|
|
- minute))
|
|
|
+ and teesol.`type` = 'ON_LINE') t where t.createTime <![CDATA[ <= ]]> #{item}
|
|
|
union all
|
|
|
select
|
|
|
t.hour,
|
|
@@ -1673,12 +1672,8 @@
|
|
|
<if test="orgId != null and orgId != ''">
|
|
|
and tee.org_id = #{orgId}
|
|
|
</if>
|
|
|
- and (teesol.create_time <![CDATA[ >= ]]> unix_timestamp(date_sub(#{currentDate}, interval #{scaleSize} minute))
|
|
|
- * 1000
|
|
|
+ and (teesol.create_time >= unix_timestamp(date_sub(#{currentDate}, interval #{interval} day)) * 1000
|
|
|
and teesol.create_time <![CDATA[ <= ]]> unix_timestamp(#{currentDate}) * 1000)
|
|
|
- and teesol.`type` = 'OFF_LINE') t
|
|
|
- where
|
|
|
- (t.createTime <![CDATA[ >= ]]> #{item} and t.createTime <![CDATA[ < ]]> date_add(#{item}, interval #{interval}
|
|
|
- minute))
|
|
|
+ and teesol.`type` = 'OFF_LINE') t where t.createTime <![CDATA[ <= ]]> #{item}
|
|
|
</sql>
|
|
|
</mapper>
|