|
|
|
@ -195,8 +195,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
<if test="startTime != null">and t1.create_time >= #{startTime}</if> |
|
|
|
|
<if test="endTime != null">and t1.create_time <= #{endTime}</if> |
|
|
|
|
<if test="alarmSource != null and alarmSource != ''">alarm_source = #{alarmSource},</if> |
|
|
|
|
<if test="classification_event_code != null">and t6.code = #{classificationEventCode}</if> |
|
|
|
|
<if test="event_grade_id != null">and t1.event_grade_id = #{eventGradeId}</if> |
|
|
|
|
<if test="classificationEventCode != null">and t6.code = #{classificationEventCode}</if> |
|
|
|
|
<if test="eventGradeId != null">and t1.event_grade_id = #{eventGradeId}</if> |
|
|
|
|
</where> |
|
|
|
|
</select> |
|
|
|
|
<select id="selectExerciseInfoListByCondition" resultType="com.cjy.emergencycommand.domain.vo.OrderInfoVO"> |
|
|
|
@ -286,7 +286,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
<select id="alarmStatisticsBySource" resultType="com.cjy.emergencycommand.domain.vo.AlarmStatisticsVO"> |
|
|
|
|
SELECT t1.name,COUNT(t2.id) as value FROM ec_classification_config t1 |
|
|
|
|
LEFT JOIN ec_alarm_info t2 ON t1.`code` = t2.alarm_source AND t2.del_flag !=2 AND t2.organ_code = #{organCode} AND t2.create_time >CURRENT_DATE() |
|
|
|
|
WHERE t1.type = 3 AND t1.del_flag !=2 |
|
|
|
|
WHERE t1.type != 2 AND t1.del_flag !=2 |
|
|
|
|
GROUP BY t1.code,t1.name,t1.id |
|
|
|
|
ORDER BY t1.id |
|
|
|
|
</select> |
|
|
|
@ -353,7 +353,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
t1.classification_event_code as classificationEventCode,t1.event_grade_id as eventGradeId, |
|
|
|
|
t1.principal_user_id AS principalUserId,t1.waring_feedback AS waringFeedback, |
|
|
|
|
t1.scheduling_id AS schedulingId,t1.multimedia_scheduling_type AS multimediaSchedulingType, |
|
|
|
|
t1.multimedia_scheduling_id AS multimediaSchedulingId |
|
|
|
|
t1.multimedia_scheduling_id AS multimediaSchedulingId,t1.status |
|
|
|
|
from ec_alarm_info t1 |
|
|
|
|
LEFT JOIN ec_classification_config t2 ON t1.alarm_source = t2.code AND t2.type = 3 |
|
|
|
|
LEFT JOIN sys_dict_data t4 ON t1.grade_id = t4.dict_value AND t4.dict_type = 'urgency_grade' |
|
|
|
@ -363,7 +363,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
select t1.id, t1.create_time as createTime ,t2.name as alarmSourceName, |
|
|
|
|
t1.alarm_code as alarmCode,t4.dict_label as gradeName,t3.name as classificationDataName, |
|
|
|
|
t1.contact_user as contactUser,t1.phone as phone, |
|
|
|
|
t1.title,t1.longitude,t1.latitude |
|
|
|
|
t1.title,t1.longitude,t1.latitude,t1.status |
|
|
|
|
from ec_alarm_info t1 |
|
|
|
|
LEFT JOIN ec_classification_config t2 ON t1.alarm_source = t2.code AND t2.type = 3 |
|
|
|
|
LEFT JOIN ec_classification_data_config t3 ON t1.classification_data_code = t3.code |
|
|
|
|