From 6bca91fb4c1ddaa8a8891c0fa4b2a4c44804b37f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=85=B4=E7=90=B3?= <1911390090@qq.com> Date: Wed, 21 Feb 2024 18:09:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AD=97=E6=AE=B5=20=20?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E8=A1=A8=20=20emergencyPlansId=E6=89=80?= =?UTF-8?q?=E5=B1=9E=E9=A2=84=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/zc/business/domain/DcEvent.java | 8 ++++++++ .../src/main/resources/mapper/business/DcEventMapper.xml | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/zc-business/src/main/java/com/zc/business/domain/DcEvent.java b/zc-business/src/main/java/com/zc/business/domain/DcEvent.java index 1bb5a05b..9140d798 100644 --- a/zc-business/src/main/java/com/zc/business/domain/DcEvent.java +++ b/zc-business/src/main/java/com/zc/business/domain/DcEvent.java @@ -231,6 +231,14 @@ public class DcEvent extends BaseEntity { private List processConfigList; @ApiModelProperty("事件标题") private String eventTitle; +/** + * 2014/2/21新增 + */ + +@ApiModelProperty("所属预案") + private Long emergencyPlansId; + + /** * diff --git a/zc-business/src/main/resources/mapper/business/DcEventMapper.xml b/zc-business/src/main/resources/mapper/business/DcEventMapper.xml index 0cfd9128..b69ee69e 100644 --- a/zc-business/src/main/resources/mapper/business/DcEventMapper.xml +++ b/zc-business/src/main/resources/mapper/business/DcEventMapper.xml @@ -32,6 +32,7 @@ + @@ -65,6 +66,7 @@ + @@ -152,6 +154,7 @@ event_level, event_type, event_title, + emergency_plans_id, CASE event_type WHEN '1' THEN '交通事故' WHEN '2' THEN '车辆故障' @@ -277,6 +280,7 @@ dc_event.in_tunnel, dc_event.road_id, dc_event.event_title, + dc_event.emergency_plans_id, dc_event_type.event_name AS event_name, dc_process_config.node_node AS node_node, @@ -325,6 +329,7 @@ and event_nature = #{eventNature} and event_source_tips = #{eventSourceTips} and in_tunnel = #{inTunnel} + and emergency_plans_id = #{emergencyPlansId} @@ -362,6 +367,7 @@ dc_event.estimated_end_time, dc_event.event_level, dc_event.event_title, + dc_event.emergency_plans_id, dc_event.occurrence_time, dc_event.event_type AS event_type, CASE dc_event.event_type @@ -499,6 +505,7 @@ lang, event_title, occurrence_time, + emergency_plans_id, #{id}, @@ -526,6 +533,7 @@ #{lang}, #{eventTitle}, #{occurrenceTime}, + #{emergencyPlansId}, @@ -556,6 +564,7 @@ road_id = #{lang}, event_title = #{eventTitle}, occurrence_time = #{occurrenceTime}, + emergency_plans_id = #{emergencyPlansId}, where id = #{id}