Browse Source

电话类型改为string 事件信息表增加高速公路字段

develop
王兴琳 10 months ago
parent
commit
b005bab1b9
  1. 3
      zc-business/src/main/java/com/zc/business/domain/DcEvent.java
  2. 10
      zc-business/src/main/java/com/zc/business/domain/DcEventAccident.java
  3. 2
      zc-business/src/main/java/com/zc/business/domain/DcEventTrafficControl.java
  4. 7
      zc-business/src/main/resources/mapper/business/DcEventAccidentMapper.xml
  5. 9
      zc-business/src/main/resources/mapper/business/DcEventMapper.xml
  6. 6
      zc-business/src/main/resources/mapper/business/DcEventTrafficControlMapper.xml

3
zc-business/src/main/java/com/zc/business/domain/DcEvent.java

@ -185,6 +185,9 @@ public class DcEvent extends BaseEntity {
*/
@ApiModelProperty("是否处在隧道 0 表示 false,1 表示 true")
private Integer inTunnel;
@ApiModelProperty("高速公路")
private Long roadId;
@ApiModelProperty("事件详情参数")
@TableField(exist = false)
private DcEventMap dcEventMap;

10
zc-business/src/main/java/com/zc/business/domain/DcEventAccident.java

@ -109,14 +109,14 @@ public class DcEventAccident extends BaseEntity {
*/
@ApiModelProperty("交警电话")
private Integer policeContact;
private String policeContact;
/**
* 清障电话
*/
@ApiModelProperty("清障电话")
private Integer towingServiceContact;
private String towingServiceContact;
/**
* 前方是否拥堵
@ -210,12 +210,12 @@ public class DcEventAccident extends BaseEntity {
@ApiModelProperty("私密事件")
private Integer isPrivate;
/**
/* *//**
* 高速公路
*/
*//*
@ApiModelProperty("高速公路")
private Integer roadId;
private Integer roadId;*/
/**
* 设施关联
*/

2
zc-business/src/main/java/com/zc/business/domain/DcEventTrafficControl.java

@ -67,8 +67,10 @@ public class DcEventTrafficControl extends BaseEntity
@ApiModelProperty("匝道(立交)")
@Excel(name = "匝道", readConverterExp = "立=交")
private Long rampId;
/*
@ApiModelProperty("高速公路 id")
private Long roadId;
*/
@ApiModelProperty("原因类型")
private String causeType;

7
zc-business/src/main/resources/mapper/business/DcEventAccidentMapper.xml

@ -31,11 +31,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="fatalities" column="fatalities" />
<result property="isPrivate" column="is_private" />
<result property="facilityId" column="facility_id" />
<result property="roadId" column="road_id" />
</resultMap>
<sql id="selectDcEventAccidentVo">
select id, reporter_name, reporter_phone_number, accident_type, location_type, traffic_jam, weather_condition, impact_level, is_reverse_cargo, is_maintenance, police_contact, towing_service_contact, congestion_ahead, at_intersection, on_curve, spillage_item, vehicle_owner_phone, lane_occupancy, small_car, trucks, buses, tankers, minor_injuries, serious_injuries, fatalities, is_private, facility_id, road_id from dc_event_accident
select id, reporter_name, reporter_phone_number, accident_type, location_type, traffic_jam, weather_condition, impact_level, is_reverse_cargo, is_maintenance, police_contact, towing_service_contact, congestion_ahead, at_intersection, on_curve, spillage_item, vehicle_owner_phone, lane_occupancy, small_car, trucks, buses, tankers, minor_injuries, serious_injuries, fatalities, is_private, facility_id from dc_event_accident
</sql>
<select id="selectDcEventAccidentList" parameterType="DcEventAccident" resultMap="DcEventAccidentResult">
@ -67,7 +66,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="fatalities != null "> and fatalities = #{fatalities}</if>
<if test="isPrivate != null "> and is_private = #{isPrivate}</if>
<if test="facilityId != null "> and facility_id = #{facilityId}</if>
<if test="roadId != null "> and road_id = #{roadId}</if>
</where>
</select>
@ -106,7 +104,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="fatalities != null">fatalities,</if>
<if test="isPrivate != null">is_private,</if>
<if test="facilityId != null">facility_id,</if>
<if test="roadId != null">road_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
@ -136,7 +133,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="fatalities != null">#{fatalities},</if>
<if test="isPrivate != null">#{isPrivate},</if>
<if test="facilityId != null">#{facilityId},</if>
<if test="roadId != null">#{roadId},</if>
</trim>
</insert>
@ -169,7 +165,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="fatalities != null">fatalities = #{fatalities},</if>
<if test="isPrivate != null">is_private = #{isPrivate},</if>
<if test="facilityId != null">facility_id = #{facilityId},</if>
<if test="roadId != null">road_id = #{roadId},</if>
</trim>
where id = #{id}
</update>

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

@ -26,6 +26,7 @@
<result property="eventSourceTips" column="event_source_tips" />
<result property="stringEventType" column="stringEventType" />
<result property="stringEventSource" column="stringEventSource" />
<result property="roadId" column="road_id" />
</resultMap>
<resultMap type="com.zc.business.domain.DcEvent" id="DcEventResultById">
<result property="id" column="id" />
@ -51,6 +52,7 @@
<result property="inTunnel" column="in_tunnel" />
<result property="eventName" column="event_name" />
<result property="nodeNode" column="node_node" />
<result property="roadId" column="road_id" />
<result property="commonPhrases" column="common_phrases" />
<result property="stringEventType" column="stringEventType" />
<result property="stringEventSource" column="stringEventSource" />
@ -212,7 +214,8 @@
create_time,
update_time,
event_source_tips,
in_tunnel
in_tunnel,
road_id
FROM
dc_event </sql>
<sql id="selectDcEventVoListAll"> select dc_event.id AS id,
@ -236,6 +239,7 @@
dc_event.update_time,
dc_event.event_source_tips,
dc_event.in_tunnel,
dc_event.road_id,
dc_event_type.event_name AS event_name,
dc_process_config.node_node AS node_node,
@ -441,6 +445,7 @@
<if test="updateTime != null">update_time,</if>
<if test="eventSourceTips != null">event_source_tips,</if>
<if test="inTunnel != null">in_tunnel,</if>
<if test="roadId != null">road_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
@ -464,6 +469,7 @@
<if test="updateTime != null">#{updateTime},</if>
<if test="eventSourceTips != null">#{eventSourceTips},</if>
<if test="inTunnel != null">#{inTunnel},</if>
<if test="roadId != null">#{roadId},</if>
</trim>
</insert>
@ -490,6 +496,7 @@
<if test="updateTime != null">update_time = #{updateTime},</if>
<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>
</trim>
where id = #{id}
</update>

6
zc-business/src/main/resources/mapper/business/DcEventTrafficControlMapper.xml

@ -11,7 +11,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="exitsInlets" column="exits_inlets" />
<result property="facilityId" column="facility_id" />
<result property="rampId" column="ramp_id" />
<result property="rampId" column="road_id" />
<result property="causeType" column="cause_type" />
<result property="measure" column="measure" />
@ -28,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="selectDcEventTrafficControlVo">
select id, control_type, control_cause, exits_inlets, facility_id, ramp_id,road_id,cause_type,measure,classify,limited_type,vehicle_type from dc_event_traffic_control
select id, control_type, control_cause, exits_inlets, facility_id, ramp_id,cause_type,measure,classify,limited_type,vehicle_type from dc_event_traffic_control
</sql>
<!--关联路网设施查询-->
<sql id="selectDcEventTrafficControlVoById">
@ -79,7 +78,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="exitsInlets != null">exits_inlets,</if>
<if test="facilityId != null">facility_id,</if>
<if test="rampId != null">ramp_id,</if>
<if test="roadId != null">road_id,</if>
<if test="causeType != null">cause_type,</if>
<if test="measure != null">measure,</if>
@ -94,7 +92,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="exitsInlets != null">#{exitsInlets},</if>
<if test="facilityId != null">#{facilityId},</if>
<if test="rampId != null">#{rampId},</if>
<if test="roadId != null">#{roadId},</if>
<if test="causeType != null">#{causeType},</if>
<if test="measure != null">#{measure},</if>
@ -112,7 +109,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="exitsInlets != null">exits_inlets = #{exitsInlets},</if>
<if test="facilityId != null">facility_id = #{facilityId},</if>
<if test="rampId != null">ramp_id = #{rampId},</if>
<if test="roadId != null">road_id = #{roadId},</if>
<if test="causeType != null">cause_type = #{causeType},</if>
<if test="measure != null">measure = #{measure},</if>
<if test="classify != null">classify = #{classify},</if>

Loading…
Cancel
Save