|
|
@ -29,6 +29,7 @@ |
|
|
|
<result property="roadId" column="road_id" /> |
|
|
|
<result property="lang" column="lang" /> |
|
|
|
<result property="eventTitle" column="event_title" /> |
|
|
|
<result property="occurrenceTime" column="occurrence_time" /> |
|
|
|
</resultMap> |
|
|
|
<resultMap type="com.zc.business.domain.DcEvent" id="DcEventResultById"> |
|
|
|
<result property="id" column="id" /> |
|
|
@ -55,6 +56,7 @@ |
|
|
|
<result property="eventName" column="event_name" /> |
|
|
|
<result property="nodeNode" column="node_node" /> |
|
|
|
<result property="roadId" column="road_id" /> |
|
|
|
<result property="occurrenceTime" column="occurrence_time" /> |
|
|
|
<result property="eventTitle" column="event_title" /> |
|
|
|
<result property="commonPhrases" column="common_phrases" /> |
|
|
|
<result property="stringEventType" column="stringEventType" /> |
|
|
@ -225,6 +227,7 @@ |
|
|
|
create_time, |
|
|
|
update_time, |
|
|
|
event_source_tips, |
|
|
|
occurrence_time, |
|
|
|
in_tunnel, |
|
|
|
road_id |
|
|
|
FROM |
|
|
@ -235,6 +238,7 @@ |
|
|
|
dc_event.user_id, |
|
|
|
dc_event.start_time, |
|
|
|
dc_event.end_time, |
|
|
|
dc_event.occurrence_time, |
|
|
|
dc_event.estimated_end_time, |
|
|
|
dc_event.event_level, |
|
|
|
dc_event.event_type AS event_type, |
|
|
@ -335,6 +339,7 @@ |
|
|
|
dc_event.estimated_end_time, |
|
|
|
dc_event.event_level, |
|
|
|
dc_event.event_title, |
|
|
|
dc_event.occurrence_time, |
|
|
|
dc_event.event_type AS event_type, |
|
|
|
CASE dc_event.event_type |
|
|
|
WHEN '1' THEN '交通事故' |
|
|
@ -431,12 +436,9 @@ |
|
|
|
|
|
|
|
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 and dc_stake_mark.direction = dc_event.description |
|
|
|
LEFT JOIN dc_road_section on dc_stake_mark.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_mark.stake_mark = dc_organization.stake_mark |
|
|
|
|
|
|
|
LEFT JOIN dc_stake_mark ON dc_stake_mark.direction = dc_event.description and dc_stake_mark.stake_mark = dc_event.stake_mark |
|
|
|
LEFT JOIN dc_organization ON dc_organization.description = dc_event.direction and dc_organization.stake_mark = dc_event.stake_mark |
|
|
|
LEFT JOIN dc_road ON dc_event.road_id = dc_road.id |
|
|
|
where dc_event.id = #{id} |
|
|
|
|
|
|
|
</select> |
|
|
@ -469,6 +471,7 @@ |
|
|
|
<if test="roadId != null">road_id,</if> |
|
|
|
<if test="lang != null">lang,</if> |
|
|
|
<if test="eventTitle != null">event_title,</if> |
|
|
|
<if test="occurrenceTime != null">occurrence_time,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null">#{id},</if> |
|
|
@ -495,6 +498,7 @@ |
|
|
|
<if test="roadId != null">#{roadId},</if> |
|
|
|
<if test="lang != null">#{lang},</if> |
|
|
|
<if test="eventTitle != null">#{eventTitle},</if> |
|
|
|
<if test="occurrenceTime != null">#{occurrenceTime},</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
@ -524,6 +528,7 @@ |
|
|
|
<if test="roadId != null">road_id = #{roadId},</if> |
|
|
|
<if test="lang != null">road_id = #{lang},</if> |
|
|
|
<if test="eventTitle != null">event_title = #{eventTitle},</if> |
|
|
|
<if test="occurrenceTime != null">occurrence_time = #{occurrenceTime},</if> |
|
|
|
</trim> |
|
|
|
where id = #{id} |
|
|
|
</update> |
|
|
|