|
@ -32,6 +32,7 @@ |
|
|
<result property="lang" column="lang" /> |
|
|
<result property="lang" column="lang" /> |
|
|
<result property="eventTitle" column="event_title" /> |
|
|
<result property="eventTitle" column="event_title" /> |
|
|
<result property="occurrenceTime" column="occurrence_time" /> |
|
|
<result property="occurrenceTime" column="occurrence_time" /> |
|
|
|
|
|
<result property="isPerceived" column="is_perceived" /> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
|
|
|
|
|
|
<resultMap type="map" id="countMap"> |
|
|
<resultMap type="map" id="countMap"> |
|
@ -74,6 +75,7 @@ |
|
|
<result property="lang" column="lang" /> |
|
|
<result property="lang" column="lang" /> |
|
|
<result property="roadName" column="road_name" /> |
|
|
<result property="roadName" column="road_name" /> |
|
|
<result property="organizationName" column="organization_name" /> |
|
|
<result property="organizationName" column="organization_name" /> |
|
|
|
|
|
<result property="isPerceived" column="is_perceived" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</resultMap> |
|
|
</resultMap> |
|
@ -155,6 +157,7 @@ |
|
|
event_level, |
|
|
event_level, |
|
|
event_type, |
|
|
event_type, |
|
|
event_title, |
|
|
event_title, |
|
|
|
|
|
is_perceived, |
|
|
CASE event_type |
|
|
CASE event_type |
|
|
WHEN '1' THEN '交通事故' |
|
|
WHEN '1' THEN '交通事故' |
|
|
WHEN '2' THEN '车辆故障' |
|
|
WHEN '2' THEN '车辆故障' |
|
@ -259,6 +262,7 @@ |
|
|
<sql id="selectDcEventVoListAll"> select dc_event.id AS id, |
|
|
<sql id="selectDcEventVoListAll"> select dc_event.id AS id, |
|
|
dc_event.stake_mark, |
|
|
dc_event.stake_mark, |
|
|
dc_event.direction, |
|
|
dc_event.direction, |
|
|
|
|
|
dc_event.is_perceived, |
|
|
dc_event.user_id, |
|
|
dc_event.user_id, |
|
|
dc_event.start_time, |
|
|
dc_event.start_time, |
|
|
dc_event.end_time, |
|
|
dc_event.end_time, |
|
@ -328,6 +332,7 @@ |
|
|
<if test="eventNature != null "> and event_nature = #{eventNature}</if> |
|
|
<if test="eventNature != null "> and event_nature = #{eventNature}</if> |
|
|
<if test="eventSourceTips != null and eventSourceTips != ''"> and event_source_tips = #{eventSourceTips}</if> |
|
|
<if test="eventSourceTips != null and eventSourceTips != ''"> and event_source_tips = #{eventSourceTips}</if> |
|
|
<if test="inTunnel != null "> and in_tunnel = #{inTunnel}</if> |
|
|
<if test="inTunnel != null "> and in_tunnel = #{inTunnel}</if> |
|
|
|
|
|
<if test="isPerceived != null "> and is_perceived = #{isPerceived}</if> |
|
|
</where> |
|
|
</where> |
|
|
|
|
|
|
|
|
</select> |
|
|
</select> |
|
@ -361,6 +366,7 @@ |
|
|
WHEN '3' THEN '济南方向' |
|
|
WHEN '3' THEN '济南方向' |
|
|
END AS direction, |
|
|
END AS direction, |
|
|
dc_event.user_id, |
|
|
dc_event.user_id, |
|
|
|
|
|
dc_event.is_perceived, |
|
|
dc_event.user_id as user_id, |
|
|
dc_event.user_id as user_id, |
|
|
sys_user.nick_name as nickName, |
|
|
sys_user.nick_name as nickName, |
|
|
dc_event.start_time, |
|
|
dc_event.start_time, |
|
@ -505,6 +511,7 @@ |
|
|
<if test="lang != null">lang,</if> |
|
|
<if test="lang != null">lang,</if> |
|
|
<if test="eventTitle != null">event_title,</if> |
|
|
<if test="eventTitle != null">event_title,</if> |
|
|
<if test="occurrenceTime != null">occurrence_time,</if> |
|
|
<if test="occurrenceTime != null">occurrence_time,</if> |
|
|
|
|
|
<if test="isPerceived != null">is_perceived,</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="id != null">#{id},</if> |
|
|
<if test="id != null">#{id},</if> |
|
@ -532,6 +539,7 @@ |
|
|
<if test="lang != null">#{lang},</if> |
|
|
<if test="lang != null">#{lang},</if> |
|
|
<if test="eventTitle != null">#{eventTitle},</if> |
|
|
<if test="eventTitle != null">#{eventTitle},</if> |
|
|
<if test="occurrenceTime != null">#{occurrenceTime},</if> |
|
|
<if test="occurrenceTime != null">#{occurrenceTime},</if> |
|
|
|
|
|
<if test="isPerceived != null">#{isPerceived},</if> |
|
|
</trim> |
|
|
</trim> |
|
|
</insert> |
|
|
</insert> |
|
|
|
|
|
|
|
@ -562,6 +570,7 @@ |
|
|
<if test="lang != null">road_id = #{lang},</if> |
|
|
<if test="lang != null">road_id = #{lang},</if> |
|
|
<if test="eventTitle != null">event_title = #{eventTitle},</if> |
|
|
<if test="eventTitle != null">event_title = #{eventTitle},</if> |
|
|
<if test="occurrenceTime != null">occurrence_time = #{occurrenceTime},</if> |
|
|
<if test="occurrenceTime != null">occurrence_time = #{occurrenceTime},</if> |
|
|
|
|
|
<if test="isPerceived != null">is_perceived = #{isPerceived},</if> |
|
|
</trim> |
|
|
</trim> |
|
|
where id = #{id} |
|
|
where id = #{id} |
|
|
</update> |
|
|
</update> |
|
|