|
|
@ -27,6 +27,7 @@ |
|
|
|
<result property="stringEventType" column="stringEventType" /> |
|
|
|
<result property="stringEventSource" column="stringEventSource" /> |
|
|
|
<result property="roadId" column="road_id" /> |
|
|
|
<result property="lang" column="lang" /> |
|
|
|
</resultMap> |
|
|
|
<resultMap type="com.zc.business.domain.DcEvent" id="DcEventResultById"> |
|
|
|
<result property="id" column="id" /> |
|
|
@ -56,6 +57,11 @@ |
|
|
|
<result property="commonPhrases" column="common_phrases" /> |
|
|
|
<result property="stringEventType" column="stringEventType" /> |
|
|
|
<result property="stringEventSource" column="stringEventSource" /> |
|
|
|
<result property="lang" column="lang" /> |
|
|
|
<result property="roadName" column="road_name" /> |
|
|
|
<result property="organizationName" column="organization_name" /> |
|
|
|
|
|
|
|
|
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<resultMap type="com.zc.business.domain.DcEvent" id="DcEventResultListAll"> |
|
|
@ -313,111 +319,119 @@ |
|
|
|
<!-- 事件详情 包含事件类型 节点--> |
|
|
|
<select id="selectDcEventById" parameterType="String" resultMap="DcEventResultById"> |
|
|
|
|
|
|
|
/*详情可以调用事件处理流程*/ |
|
|
|
SELECT dc_event.id AS id, |
|
|
|
dc_event.stake_mark, |
|
|
|
dc_event.direction, |
|
|
|
dc_event.user_id, |
|
|
|
dc_event.start_time, |
|
|
|
dc_event.end_time, |
|
|
|
dc_event.estimated_end_time, |
|
|
|
dc_event.event_level, |
|
|
|
dc_event.event_type AS event_type, |
|
|
|
CASE dc_event.event_type |
|
|
|
WHEN '1' THEN '交通事故' |
|
|
|
WHEN '2' THEN '车辆故障' |
|
|
|
WHEN '3' THEN '交通管制' |
|
|
|
WHEN '4' THEN '交通拥堵' |
|
|
|
WHEN '5' THEN '非法上路' |
|
|
|
WHEN '6' THEN '路障清除' |
|
|
|
WHEN '7' THEN '施工建设' |
|
|
|
WHEN '8' THEN '服务区异常' |
|
|
|
WHEN '9' THEN '设施设备隐患' |
|
|
|
WHEN '10' THEN '异常天气' |
|
|
|
WHEN '11' THEN '其他事件' |
|
|
|
ELSE '其他' |
|
|
|
END AS stringEventType, |
|
|
|
CASE dc_event.event_subclass |
|
|
|
WHEN '1-1'THEN '追尾' |
|
|
|
WHEN '1-2'THEN '侧翻' |
|
|
|
WHEN '1-3'THEN '撞护栏' |
|
|
|
WHEN '1-4'THEN '自然' |
|
|
|
WHEN '1-5'THEN '其他事故' |
|
|
|
WHEN '2-1'THEN '车辆故障' |
|
|
|
WHEN '3-1'THEN '主线封闭和限行' |
|
|
|
WHEN '3-2'THEN '收费站封闭和限行' |
|
|
|
WHEN '3-3'THEN '立交封闭和限行' |
|
|
|
WHEN '3-4'THEN '服务区封闭和限行' |
|
|
|
WHEN '4-1'THEN '道路拥堵' |
|
|
|
WHEN '4-2'THEN '立交拥堵' |
|
|
|
WHEN '4-3'THEN '收费站拥堵' |
|
|
|
WHEN '4-4'THEN '服务区拥堵' |
|
|
|
WHEN '5-1'THEN '行人' |
|
|
|
WHEN '5-2'THEN '非机动车' |
|
|
|
WHEN '5-3'THEN '摩托车' |
|
|
|
WHEN '5-4'THEN '其他' |
|
|
|
WHEN '6-1'THEN '烟雾' |
|
|
|
WHEN '6-2'THEN '倒伏树木' |
|
|
|
WHEN '6-3'THEN '撒落物' |
|
|
|
WHEN '6-4'THEN '动物' |
|
|
|
WHEN '6-5'THEN '其他' |
|
|
|
WHEN '7-1'THEN '道路养护施工' |
|
|
|
WHEN '7-2'THEN '收费站养护施工' |
|
|
|
WHEN '7-3'THEN '服务区养护施工' |
|
|
|
WHEN '7-4'THEN '枢纽立交匝道养护施工' |
|
|
|
WHEN '7-5'THEN '地方道路养护施工' |
|
|
|
WHEN '7-6'THEN '道路工程建设施工' |
|
|
|
WHEN '7-7'THEN '收费站工程建设施工' |
|
|
|
WHEN '7-8'THEN '服务区工程建设施工' |
|
|
|
WHEN '7-9' THEN '枢纽立交匝道工程建设施工' |
|
|
|
WHEN '7-10' THEN'地方道路工程建设施工' |
|
|
|
WHEN '8-1'THEN'封闭、暂停营业' |
|
|
|
WHEN '8-2'THEN'重要设施停用' |
|
|
|
WHEN '8-3'THEN'服务区其他异常' |
|
|
|
WHEN '9-1'THEN'摄像机' |
|
|
|
WHEN '9-2'THEN'护栏' |
|
|
|
WHEN '9-3'THEN'隔离栅' |
|
|
|
WHEN '9-4'THEN'情报板' |
|
|
|
WHEN '9-5'THEN'防炫板' |
|
|
|
WHEN '9-6'THEN'其他' |
|
|
|
WHEN '10-1' THEN'雨' |
|
|
|
WHEN '10-2' THEN'雪' |
|
|
|
WHEN '10-3' THEN'雾' |
|
|
|
WHEN '10-4' THEN'大风' |
|
|
|
WHEN '10-5' THEN'低温寒潮' |
|
|
|
WHEN '10-6' THEN'路面积雪' |
|
|
|
WHEN '10-7' THEN'路面结冰' |
|
|
|
WHEN '10-8' THEN'路面积水' |
|
|
|
WHEN '10-9' THEN'其他' |
|
|
|
WHEN '11-1' THEN'其他事件' |
|
|
|
END AS event_subclass, |
|
|
|
/*详情可以调用事件处理流程*/ |
|
|
|
SELECT dc_event.id AS id, |
|
|
|
dc_event.stake_mark, |
|
|
|
dc_event.direction, |
|
|
|
dc_event.user_id, |
|
|
|
dc_event.start_time, |
|
|
|
dc_event.end_time, |
|
|
|
dc_event.estimated_end_time, |
|
|
|
dc_event.event_level, |
|
|
|
dc_event.event_type AS event_type, |
|
|
|
CASE dc_event.event_type |
|
|
|
WHEN '1' THEN '交通事故' |
|
|
|
WHEN '2' THEN '车辆故障' |
|
|
|
WHEN '3' THEN '交通管制' |
|
|
|
WHEN '4' THEN '交通拥堵' |
|
|
|
WHEN '5' THEN '非法上路' |
|
|
|
WHEN '6' THEN '路障清除' |
|
|
|
WHEN '7' THEN '施工建设' |
|
|
|
WHEN '8' THEN '服务区异常' |
|
|
|
WHEN '9' THEN '设施设备隐患' |
|
|
|
WHEN '10' THEN '异常天气' |
|
|
|
WHEN '11' THEN '其他事件' |
|
|
|
ELSE '其他' |
|
|
|
END AS stringEventType, |
|
|
|
CASE dc_event.event_subclass |
|
|
|
WHEN '1-1'THEN '追尾' |
|
|
|
WHEN '1-2'THEN '侧翻' |
|
|
|
WHEN '1-3'THEN '撞护栏' |
|
|
|
WHEN '1-4'THEN '自然' |
|
|
|
WHEN '1-5'THEN '其他事故' |
|
|
|
WHEN '2-1'THEN '车辆故障' |
|
|
|
WHEN '3-1'THEN '主线封闭和限行' |
|
|
|
WHEN '3-2'THEN '收费站封闭和限行' |
|
|
|
WHEN '3-3'THEN '立交封闭和限行' |
|
|
|
WHEN '3-4'THEN '服务区封闭和限行' |
|
|
|
WHEN '4-1'THEN '道路拥堵' |
|
|
|
WHEN '4-2'THEN '立交拥堵' |
|
|
|
WHEN '4-3'THEN '收费站拥堵' |
|
|
|
WHEN '4-4'THEN '服务区拥堵' |
|
|
|
WHEN '5-1'THEN '行人' |
|
|
|
WHEN '5-2'THEN '非机动车' |
|
|
|
WHEN '5-3'THEN '摩托车' |
|
|
|
WHEN '5-4'THEN '其他' |
|
|
|
WHEN '6-1'THEN '烟雾' |
|
|
|
WHEN '6-2'THEN '倒伏树木' |
|
|
|
WHEN '6-3'THEN '撒落物' |
|
|
|
WHEN '6-4'THEN '动物' |
|
|
|
WHEN '6-5'THEN '其他' |
|
|
|
WHEN '7-1'THEN '道路养护施工' |
|
|
|
WHEN '7-2'THEN '收费站养护施工' |
|
|
|
WHEN '7-3'THEN '服务区养护施工' |
|
|
|
WHEN '7-4'THEN '枢纽立交匝道养护施工' |
|
|
|
WHEN '7-5'THEN '地方道路养护施工' |
|
|
|
WHEN '7-6'THEN '道路工程建设施工' |
|
|
|
WHEN '7-7'THEN '收费站工程建设施工' |
|
|
|
WHEN '7-8'THEN '服务区工程建设施工' |
|
|
|
WHEN '7-9' THEN '枢纽立交匝道工程建设施工' |
|
|
|
WHEN '7-10' THEN'地方道路工程建设施工' |
|
|
|
WHEN '8-1'THEN'封闭、暂停营业' |
|
|
|
WHEN '8-2'THEN'重要设施停用' |
|
|
|
WHEN '8-3'THEN'服务区其他异常' |
|
|
|
WHEN '9-1'THEN'摄像机' |
|
|
|
WHEN '9-2'THEN'护栏' |
|
|
|
WHEN '9-3'THEN'隔离栅' |
|
|
|
WHEN '9-4'THEN'情报板' |
|
|
|
WHEN '9-5'THEN'防炫板' |
|
|
|
WHEN '9-6'THEN'其他' |
|
|
|
WHEN '10-1' THEN'雨' |
|
|
|
WHEN '10-2' THEN'雪' |
|
|
|
WHEN '10-3' THEN'雾' |
|
|
|
WHEN '10-4' THEN'大风' |
|
|
|
WHEN '10-5' THEN'低温寒潮' |
|
|
|
WHEN '10-6' THEN'路面积雪' |
|
|
|
WHEN '10-7' THEN'路面结冰' |
|
|
|
WHEN '10-8' THEN'路面积水' |
|
|
|
WHEN '10-9' THEN'其他' |
|
|
|
WHEN '11-1' THEN'其他事件' |
|
|
|
END AS event_subclass, |
|
|
|
|
|
|
|
|
|
|
|
dc_event.event_cause, |
|
|
|
dc_event.description, |
|
|
|
dc_event.event_state, |
|
|
|
CASE dc_event.event_source |
|
|
|
WHEN '1' THEN '96659' |
|
|
|
WHEN '2' THEN '交警转接' |
|
|
|
WHEN '3' THEN '道路巡查' |
|
|
|
WHEN '4' THEN '视频巡查' |
|
|
|
WHEN '5' THEN '视频AI' |
|
|
|
WHEN '6' THEN '一键救援' |
|
|
|
ELSE '其他' |
|
|
|
END AS stringEventSource, |
|
|
|
dc_event.event_nature, |
|
|
|
dc_event.remark, |
|
|
|
dc_event.create_time, |
|
|
|
dc_event.update_time, |
|
|
|
dc_event.event_source_tips, |
|
|
|
dc_event.in_tunnel, |
|
|
|
dc_event.lang as lang, |
|
|
|
dc_event_type.event_name AS event_name, |
|
|
|
dc_organization.organization_name as organization_name, |
|
|
|
dc_road.road_name as road_name |
|
|
|
|
|
|
|
FROM dc_event |
|
|
|
LEFT JOIN dc_event_type ON dc_event_type.event_type = dc_event.event_type |
|
|
|
LEFT JOIN dc_stake_mark on dc_stake_mark.stake_mark = dc_event.stake_mark |
|
|
|
LEFT JOIN dc_road_section on dc_stake_marks.section_id = dc_road_section.id |
|
|
|
LEFT JOIN dc_road on dc_road_section.road_id = dc_road.id |
|
|
|
-- -- 关联机构表 |
|
|
|
LEFT JOIN dc_organization ON dc_stake_marks.stake_mark = dc_organization.stake_mark |
|
|
|
|
|
|
|
dc_event.event_cause, |
|
|
|
dc_event.description, |
|
|
|
dc_event.event_state, |
|
|
|
CASE dc_event.event_source |
|
|
|
WHEN '1' THEN '96659' |
|
|
|
WHEN '2' THEN '交警转接' |
|
|
|
WHEN '3' THEN '道路巡查' |
|
|
|
WHEN '4' THEN '视频巡查' |
|
|
|
WHEN '5' THEN '视频AI' |
|
|
|
WHEN '6' THEN '一键救援' |
|
|
|
ELSE '其他' |
|
|
|
END AS stringEventSource, |
|
|
|
dc_event.event_nature, |
|
|
|
dc_event.remark, |
|
|
|
dc_event.create_time, |
|
|
|
dc_event.update_time, |
|
|
|
dc_event.event_source_tips, |
|
|
|
dc_event.in_tunnel, |
|
|
|
dc_event_type.event_name AS event_name, |
|
|
|
dc_process_config.node_node AS node_node, |
|
|
|
dc_process_config.common_phrases as common_phrases |
|
|
|
FROM dc_event |
|
|
|
LEFT JOIN dc_process_config on dc_process_config.event_type = dc_event.event_type |
|
|
|
LEFT JOIN dc_event_type ON dc_event_type.event_type = dc_process_config.event_type |
|
|
|
where dc_event.id = #{id} |
|
|
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
@ -446,6 +460,7 @@ |
|
|
|
<if test="eventSourceTips != null">event_source_tips,</if> |
|
|
|
<if test="inTunnel != null">in_tunnel,</if> |
|
|
|
<if test="roadId != null">road_id,</if> |
|
|
|
<if test="lang != null">lang,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null">#{id},</if> |
|
|
@ -470,6 +485,7 @@ |
|
|
|
<if test="eventSourceTips != null">#{eventSourceTips},</if> |
|
|
|
<if test="inTunnel != null">#{inTunnel},</if> |
|
|
|
<if test="roadId != null">#{roadId},</if> |
|
|
|
<if test="lang != null">#{lang},</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
@ -497,6 +513,7 @@ |
|
|
|
<if test="eventSourceTips != null">event_source_tips = #{eventSourceTips},</if> |
|
|
|
<if test="inTunnel != null">in_tunnel = #{inTunnel},</if> |
|
|
|
<if test="roadId != null">road_id = #{roadId},</if> |
|
|
|
<if test="lang != null">road_id = #{lang},</if> |
|
|
|
</trim> |
|
|
|
where id = #{id} |
|
|
|
</update> |
|
|
|