|
|
@ -28,6 +28,7 @@ |
|
|
|
<result property="stringEventSource" column="stringEventSource" /> |
|
|
|
<result property="roadId" column="road_id" /> |
|
|
|
<result property="lang" column="lang" /> |
|
|
|
<result property="eventTitle" column="event_title" /> |
|
|
|
</resultMap> |
|
|
|
<resultMap type="com.zc.business.domain.DcEvent" id="DcEventResultById"> |
|
|
|
<result property="id" column="id" /> |
|
|
@ -54,6 +55,7 @@ |
|
|
|
<result property="eventName" column="event_name" /> |
|
|
|
<result property="nodeNode" column="node_node" /> |
|
|
|
<result property="roadId" column="road_id" /> |
|
|
|
<result property="eventTitle" column="event_title" /> |
|
|
|
<result property="commonPhrases" column="common_phrases" /> |
|
|
|
<result property="stringEventType" column="stringEventType" /> |
|
|
|
<result property="stringEventSource" column="stringEventSource" /> |
|
|
@ -64,6 +66,7 @@ |
|
|
|
|
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<!-- |
|
|
|
<resultMap type="com.zc.business.domain.DcEvent" id="DcEventResultListAll"> |
|
|
|
<result property="id" column="id" /> |
|
|
|
<result property="deptId" column="dept_id" /> |
|
|
@ -88,9 +91,9 @@ |
|
|
|
<result property="inTunnel" column="in_tunnel" /> |
|
|
|
<result property="stringEventType" column="stringEventType" /> |
|
|
|
<result property="stringEventSource" column="stringEventSource" /> |
|
|
|
<!-- <result property="dcProcessConfig.processNode" column="process_node" /> |
|
|
|
<!– <result property="dcProcessConfig.processNode" column="process_node" /> |
|
|
|
<result property="dcProcessConfig.commonPhrases" column="common_phrases" /> |
|
|
|
<result property="dcProcessConfig.nodeNode" column="node_node" /> --> |
|
|
|
<result property="dcProcessConfig.nodeNode" column="node_node" /> –> |
|
|
|
<result property="dcEventMap.processNode" column="process_node"/> |
|
|
|
<result property="dcEventMap.commonPhrases" column="common_phrases"/> |
|
|
|
<result property="dcEventMap.nodeNode" column="node_node"/> |
|
|
@ -118,6 +121,7 @@ |
|
|
|
<result property="dcEventMap.contactNumber" column="contact_number"/> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
--> |
|
|
|
|
|
|
|
<!-- <sql id="selectDcEventVo"> |
|
|
|
select id, dept_id, stake_mark, direction, user_id, start_time, end_time, estimated_end_time, event_level, event_type, event_subclass, event_cause, description, event_state, event_source, event_nature, remark, create_time, update_time, event_source_tips, in_tunnel from dc_event |
|
|
@ -134,6 +138,7 @@ |
|
|
|
estimated_end_time, |
|
|
|
event_level, |
|
|
|
event_type, |
|
|
|
event_title, |
|
|
|
CASE event_type |
|
|
|
WHEN '1' THEN '交通事故' |
|
|
|
WHEN '2' THEN '车辆故障' |
|
|
@ -246,6 +251,7 @@ |
|
|
|
dc_event.event_source_tips, |
|
|
|
dc_event.in_tunnel, |
|
|
|
dc_event.road_id, |
|
|
|
dc_event.event_title, |
|
|
|
|
|
|
|
dc_event_type.event_name AS event_name, |
|
|
|
dc_process_config.node_node AS node_node, |
|
|
@ -461,6 +467,7 @@ |
|
|
|
<if test="inTunnel != null">in_tunnel,</if> |
|
|
|
<if test="roadId != null">road_id,</if> |
|
|
|
<if test="lang != null">lang,</if> |
|
|
|
<if test="eventTitle != null">event_title,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null">#{id},</if> |
|
|
@ -486,6 +493,7 @@ |
|
|
|
<if test="inTunnel != null">#{inTunnel},</if> |
|
|
|
<if test="roadId != null">#{roadId},</if> |
|
|
|
<if test="lang != null">#{lang},</if> |
|
|
|
<if test="eventTitle != null">#{eventTitle},</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
@ -514,6 +522,7 @@ |
|
|
|
<if test="inTunnel != null">in_tunnel = #{inTunnel},</if> |
|
|
|
<if test="roadId != null">road_id = #{roadId},</if> |
|
|
|
<if test="lang != null">road_id = #{lang},</if> |
|
|
|
<if test="eventTitle != null">event_title = #{eventTitle},</if> |
|
|
|
</trim> |
|
|
|
where id = #{id} |
|
|
|
</update> |
|
|
|