|
|
@ -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"> |
|
|
@ -411,13 +417,21 @@ |
|
|
|
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_process_config.node_node AS node_node, |
|
|
|
dc_process_config.common_phrases as common_phrases |
|
|
|
dc_organization.organization_name as organization_name, |
|
|
|
dc_road.road_name as road_name |
|
|
|
|
|
|
|
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 |
|
|
|
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 |
|
|
|
|
|
|
|
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> |
|
|
|