diff --git a/zc-business/src/main/java/com/zc/business/domain/DcEvent.java b/zc-business/src/main/java/com/zc/business/domain/DcEvent.java index 0847569b..292ed873 100644 --- a/zc-business/src/main/java/com/zc/business/domain/DcEvent.java +++ b/zc-business/src/main/java/com/zc/business/domain/DcEvent.java @@ -1,6 +1,7 @@ package com.zc.business.domain; import java.util.Date; +import java.util.List; import com.baomidou.mybatisplus.annotation.TableField; import com.fasterxml.jackson.annotation.JsonFormat; @@ -204,6 +205,11 @@ public class DcEvent extends BaseEntity { @ApiModelProperty("机构") @TableField(exist = false) private String organizationName; + @ApiModelProperty("事件流程") + @TableField(exist = false) + private List processConfigList; +@ApiModelProperty("事件标题") + private String eventTitle; /** * diff --git a/zc-business/src/main/java/com/zc/business/domain/DcEventTrafficCongestion.java b/zc-business/src/main/java/com/zc/business/domain/DcEventTrafficCongestion.java index f36a1f74..f667ebe2 100644 --- a/zc-business/src/main/java/com/zc/business/domain/DcEventTrafficCongestion.java +++ b/zc-business/src/main/java/com/zc/business/domain/DcEventTrafficCongestion.java @@ -32,7 +32,12 @@ public class DcEventTrafficCongestion extends BaseEntity /** 拥堵里程(公里) */ @ApiModelProperty("拥堵里程(公里)") - private Long congestionMileage; + private Float congestionMileage; + + /** 最大拥堵里程(公里) */ + @ApiModelProperty("最大拥堵里程(公里)") + private Float maxCongestionMileage; + /** 拥堵原因: 1-车流量大 @@ -70,11 +75,14 @@ public class DcEventTrafficCongestion extends BaseEntity @ApiModelProperty("地点(收费站):1-入口 2-出口 3-入口内广场 4--出口内广场5-外广场6-入口车道7-出口车道8-入口匝道9-出口匝道 ") private Long location; + @ApiModelProperty("事件信息实体") //事件信息表 @TableField(exist = false) private DcEvent dcEvent; + + @ApiModelProperty("路网设施实体") //事件信息表 @TableField(exist = false) diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java index 2928a529..2ccd91e5 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java @@ -46,6 +46,8 @@ private DcEventAbnormalWeatherMapper dcEventAbnormalWeatherMapper; @Autowired private DcEventTrafficControlMapper dcEventTrafficControlMapper; + @Autowired + private DcProcessConfigMapper dcProcessConfigMapper; @@ -59,6 +61,9 @@ private DcEventAbnormalWeatherMapper dcEventAbnormalWeatherMapper; public DcEvent selectDcEventById( String id) { DcEvent dcEvent = dcEventMapper.selectDcEventById(id); + + List processConfigList = dcProcessConfigMapper.selectDcProcessConfigByEventType(Math.toIntExact(dcEvent.getEventType())); + dcEvent.setProcessConfigList(processConfigList); return dcEvent; } diff --git a/zc-business/src/main/resources/mapper/business/DcEventMapper.xml b/zc-business/src/main/resources/mapper/business/DcEventMapper.xml index 7180adbe..425ef99a 100644 --- a/zc-business/src/main/resources/mapper/business/DcEventMapper.xml +++ b/zc-business/src/main/resources/mapper/business/DcEventMapper.xml @@ -28,6 +28,7 @@ + @@ -54,6 +55,7 @@ + @@ -64,6 +66,7 @@ + + –> @@ -118,6 +121,7 @@ +--> @@ -33,6 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" dc_event_traffic_congestion.id as id, dc_event_traffic_congestion.location as location, dc_event_traffic_congestion.ramp_id as ramp_id, + dc_event_traffic_congestion.max_congestion_mileage as max_congestion_mileage, dc_facility.other_config as other_config, dc_facility.remark as remark, @@ -69,6 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" facility_id, ramp_id, location, + max_congestion_mileage, #{id}, @@ -77,6 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{facilityId}, #{rampId}, #{location}, + #{maxCongestionMileage}, @@ -88,6 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" facility_id = #{facilityId}, ramp_id = #{rampId}, location = #{location}, + max_congestion_mileage = #{maxCongestionMileage}, where id = #{id} diff --git a/zc-business/src/main/resources/mapper/business/DcProcessConfigMapper.xml b/zc-business/src/main/resources/mapper/business/DcProcessConfigMapper.xml index 9b949a05..85d34f15 100644 --- a/zc-business/src/main/resources/mapper/business/DcProcessConfigMapper.xml +++ b/zc-business/src/main/resources/mapper/business/DcProcessConfigMapper.xml @@ -83,4 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" delete from dc_process_config where event_type = #{eventType} + + + \ No newline at end of file