Browse Source

mapper增加感知事件判断

develop
王兴琳 1 year ago
parent
commit
3edc6f8eeb
  1. 9
      zc-business/src/main/resources/mapper/business/DcEventMapper.xml

9
zc-business/src/main/resources/mapper/business/DcEventMapper.xml

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

Loading…
Cancel
Save