lau572
9 months ago
1 changed files with 657 additions and 0 deletions
@ -0,0 +1,657 @@ |
|||
package com.zc.business.domain; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.ruoyi.common.utils.StringUtils; |
|||
import org.apache.commons.lang3.builder.ToStringBuilder; |
|||
import org.apache.commons.lang3.builder.ToStringStyle; |
|||
import com.ruoyi.common.annotation.Excel; |
|||
import com.ruoyi.common.core.domain.BaseEntity; |
|||
|
|||
/** |
|||
* 交通事件对象 event |
|||
* |
|||
* @author ruoyi |
|||
* @date 2024-02-21 |
|||
*/ |
|||
public class MdEvent |
|||
{ |
|||
|
|||
/** 主键 */ |
|||
private Long id; |
|||
|
|||
/** 原事件表的id */ |
|||
@Excel(name = "原事件表的id") |
|||
private String fusionId; |
|||
|
|||
/** 交通事件名称 */ |
|||
@Excel(name = "交通事件名称") |
|||
private String eventName; |
|||
|
|||
/** 交通事件类型 */ |
|||
@Excel(name = "交通事件类型") |
|||
private String eventTypeCode; |
|||
|
|||
/** 交通事件详情 */ |
|||
@Excel(name = "交通事件详情") |
|||
private String eventDesc; |
|||
|
|||
/** 发生时间 */ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@Excel(name = "发生时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
|||
private Date occurTime; |
|||
|
|||
/** 发生路段 */ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@Excel(name = "发生路段", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
|||
private Date endTime; |
|||
|
|||
/** 发生路段位置桩号 */ |
|||
@Excel(name = "发生路段位置桩号") |
|||
private String stakeNumber; |
|||
|
|||
/** 经度 */ |
|||
@Excel(name = "经度") |
|||
private String longitude; |
|||
|
|||
/** 纬度 */ |
|||
@Excel(name = "纬度") |
|||
private String latitude; |
|||
|
|||
/** 影响车道0=应急车道,1=1车道,2=2车道,3=3车道,4=4车道 */ |
|||
@Excel(name = "影响车道0=应急车道,1=1车道,2=2车道,3=3车道,4=4车道") |
|||
private String lane; |
|||
|
|||
/** 方向:1-上 2-中 3-下 */ |
|||
@Excel(name = "方向:1-上 2-中 3-下") |
|||
private String direction; |
|||
|
|||
/** 位置信息 */ |
|||
@Excel(name = "位置信息") |
|||
private String location; |
|||
|
|||
/** 事件来源编码 */ |
|||
@Excel(name = "事件来源编码") |
|||
private Long eventSourceCode; |
|||
|
|||
/** 事件来源名称 */ |
|||
@Excel(name = "事件来源名称") |
|||
private String eventSource; |
|||
|
|||
/** 事件状态: |
|||
0-待确认 |
|||
1-处理中 |
|||
2-已完成 |
|||
*/ |
|||
@Excel(name = "事件状态:0-待确认 1-处理中 2-已完成") |
|||
private Long eventStatus; |
|||
|
|||
/** 事件等级 */ |
|||
@Excel(name = "事件等级") |
|||
private Long eventLevel; |
|||
|
|||
/** 所属路段 */ |
|||
@Excel(name = "所属路段") |
|||
private String sectionId; |
|||
|
|||
/** 交通事件类型子类 */ |
|||
@Excel(name = "交通事件类型子类") |
|||
private String eventTypeCode2; |
|||
|
|||
/** 交通事件原因 */ |
|||
@Excel(name = "交通事件原因") |
|||
private String eventCause; |
|||
|
|||
/** 事故天气情况 */ |
|||
@Excel(name = "事故天气情况") |
|||
private Long accidentWeather; |
|||
|
|||
/** 事故压车(公里) */ |
|||
@Excel(name = "事故压车(公里)") |
|||
private BigDecimal accidentQueue; |
|||
|
|||
/** 拥堵里程 */ |
|||
@Excel(name = "拥堵里程") |
|||
private Long congestionPile; |
|||
|
|||
/** 拥堵原因 */ |
|||
@Excel(name = "拥堵原因") |
|||
private Long congestionReason; |
|||
|
|||
/** 管制分类 */ |
|||
@Excel(name = "管制分类") |
|||
private Long controlCategory; |
|||
|
|||
/** 管制原因 */ |
|||
@Excel(name = "管制原因") |
|||
private Long controlReason; |
|||
|
|||
/** 管制原因类型 */ |
|||
@Excel(name = "管制原因类型") |
|||
private String controlReasonType; |
|||
|
|||
/** 管制出入口 */ |
|||
@Excel(name = "管制出入口") |
|||
private Long controlStation; |
|||
|
|||
/** 管制高速公里 */ |
|||
@Excel(name = "管制高速公里") |
|||
private Long controlPile; |
|||
|
|||
/** 管制措施 */ |
|||
@Excel(name = "管制措施") |
|||
private Long controlStrategy; |
|||
|
|||
/** 管制限制类型 */ |
|||
@Excel(name = "管制限制类型") |
|||
private Long controlType; |
|||
|
|||
/** 管制车辆类型 */ |
|||
@Excel(name = "管制车辆类型") |
|||
private Long controlVehicleType; |
|||
|
|||
/** 创建时间 */ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
|||
private Date creationTime; |
|||
|
|||
/** 创建人 */ |
|||
@Excel(name = "创建人") |
|||
private Long creatorUserId; |
|||
|
|||
/** 最后修改时间 */ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@Excel(name = "最后修改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
|||
private Date lastModificationTime; |
|||
|
|||
/** 最后修改人 */ |
|||
@Excel(name = "最后修改人") |
|||
private Long lastModifierUserId; |
|||
|
|||
/** 是否删除 */ |
|||
@Excel(name = "是否删除") |
|||
private Integer isDeleted; |
|||
|
|||
/** 删除人 */ |
|||
@Excel(name = "删除人") |
|||
private Long deleterUserId; |
|||
|
|||
/** 删除时间 */ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
|||
private Date deletionTime; |
|||
|
|||
public void setId(Long id) |
|||
{ |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getId() |
|||
{ |
|||
return id; |
|||
} |
|||
public void setFusionId(String fusionId) |
|||
{ |
|||
this.fusionId = fusionId; |
|||
} |
|||
|
|||
public String getFusionId() |
|||
{ |
|||
return fusionId; |
|||
} |
|||
public void setEventName(String eventName) |
|||
{ |
|||
this.eventName = eventName; |
|||
} |
|||
|
|||
public String getEventName() |
|||
{ |
|||
return eventName; |
|||
} |
|||
public void setEventTypeCode(String eventTypeCode) |
|||
{ |
|||
this.eventTypeCode = eventTypeCode; |
|||
} |
|||
|
|||
public String getEventTypeCode() |
|||
{ |
|||
return eventTypeCode; |
|||
} |
|||
public void setEventDesc(String eventDesc) |
|||
{ |
|||
this.eventDesc = eventDesc; |
|||
} |
|||
|
|||
public String getEventDesc() |
|||
{ |
|||
return eventDesc; |
|||
} |
|||
public void setOccurTime(Date occurTime) |
|||
{ |
|||
this.occurTime = occurTime; |
|||
} |
|||
|
|||
public Date getOccurTime() |
|||
{ |
|||
return occurTime; |
|||
} |
|||
public void setEndTime(Date endTime) |
|||
{ |
|||
this.endTime = endTime; |
|||
} |
|||
|
|||
public Date getEndTime() |
|||
{ |
|||
return endTime; |
|||
} |
|||
public void setStakeNumber(String stakeNumber) |
|||
{ |
|||
this.stakeNumber = stakeNumber; |
|||
} |
|||
|
|||
public String getStakeNumber() |
|||
{ |
|||
return stakeNumber; |
|||
} |
|||
public void setLongitude(String longitude) |
|||
{ |
|||
this.longitude = longitude; |
|||
} |
|||
|
|||
public String getLongitude() |
|||
{ |
|||
return longitude; |
|||
} |
|||
public void setLatitude(String latitude) |
|||
{ |
|||
this.latitude = latitude; |
|||
} |
|||
|
|||
public String getLatitude() |
|||
{ |
|||
return latitude; |
|||
} |
|||
public void setLane(String lane) |
|||
{ |
|||
this.lane = lane; |
|||
} |
|||
|
|||
public String getLane() |
|||
{ |
|||
return lane; |
|||
} |
|||
public void setDirection(String direction) |
|||
{ |
|||
this.direction = direction; |
|||
} |
|||
|
|||
public String getDirection() |
|||
{ |
|||
return direction; |
|||
} |
|||
public void setLocation(String location) |
|||
{ |
|||
this.location = location; |
|||
} |
|||
|
|||
public String getLocation() |
|||
{ |
|||
return location; |
|||
} |
|||
public void setEventSourceCode(Long eventSourceCode) |
|||
{ |
|||
this.eventSourceCode = eventSourceCode; |
|||
} |
|||
|
|||
public Long getEventSourceCode() |
|||
{ |
|||
return eventSourceCode; |
|||
} |
|||
public void setEventSource(String eventSource) |
|||
{ |
|||
this.eventSource = eventSource; |
|||
} |
|||
|
|||
public String getEventSource() |
|||
{ |
|||
return eventSource; |
|||
} |
|||
public void setEventStatus(Long eventStatus) |
|||
{ |
|||
this.eventStatus = eventStatus; |
|||
} |
|||
|
|||
public Long getEventStatus() |
|||
{ |
|||
return eventStatus; |
|||
} |
|||
public void setEventLevel(Long eventLevel) |
|||
{ |
|||
this.eventLevel = eventLevel; |
|||
} |
|||
|
|||
public Long getEventLevel() |
|||
{ |
|||
return eventLevel; |
|||
} |
|||
public void setSectionId(String sectionId) |
|||
{ |
|||
this.sectionId = sectionId; |
|||
} |
|||
|
|||
public String getSectionId() |
|||
{ |
|||
return sectionId; |
|||
} |
|||
public void setEventTypeCode2(String eventTypeCode2) |
|||
{ |
|||
this.eventTypeCode2 = eventTypeCode2; |
|||
} |
|||
|
|||
public String getEventTypeCode2() |
|||
{ |
|||
return eventTypeCode2; |
|||
} |
|||
public void setEventCause(String eventCause) |
|||
{ |
|||
this.eventCause = eventCause; |
|||
} |
|||
|
|||
public String getEventCause() |
|||
{ |
|||
return eventCause; |
|||
} |
|||
public void setAccidentWeather(Long accidentWeather) |
|||
{ |
|||
this.accidentWeather = accidentWeather; |
|||
} |
|||
|
|||
public Long getAccidentWeather() |
|||
{ |
|||
return accidentWeather; |
|||
} |
|||
public void setAccidentQueue(BigDecimal accidentQueue) |
|||
{ |
|||
this.accidentQueue = accidentQueue; |
|||
} |
|||
|
|||
public BigDecimal getAccidentQueue() |
|||
{ |
|||
return accidentQueue; |
|||
} |
|||
public void setCongestionPile(Long congestionPile) |
|||
{ |
|||
this.congestionPile = congestionPile; |
|||
} |
|||
|
|||
public Long getCongestionPile() |
|||
{ |
|||
return congestionPile; |
|||
} |
|||
public void setCongestionReason(Long congestionReason) |
|||
{ |
|||
this.congestionReason = congestionReason; |
|||
} |
|||
|
|||
public Long getCongestionReason() |
|||
{ |
|||
return congestionReason; |
|||
} |
|||
public void setControlCategory(Long controlCategory) |
|||
{ |
|||
this.controlCategory = controlCategory; |
|||
} |
|||
|
|||
public Long getControlCategory() |
|||
{ |
|||
return controlCategory; |
|||
} |
|||
public void setControlReason(Long controlReason) |
|||
{ |
|||
this.controlReason = controlReason; |
|||
} |
|||
|
|||
public Long getControlReason() |
|||
{ |
|||
return controlReason; |
|||
} |
|||
public void setControlReasonType(String controlReasonType) |
|||
{ |
|||
this.controlReasonType = controlReasonType; |
|||
} |
|||
|
|||
public String getControlReasonType() |
|||
{ |
|||
return controlReasonType; |
|||
} |
|||
public void setControlStation(Long controlStation) |
|||
{ |
|||
this.controlStation = controlStation; |
|||
} |
|||
|
|||
public Long getControlStation() |
|||
{ |
|||
return controlStation; |
|||
} |
|||
public void setControlPile(Long controlPile) |
|||
{ |
|||
this.controlPile = controlPile; |
|||
} |
|||
|
|||
public Long getControlPile() |
|||
{ |
|||
return controlPile; |
|||
} |
|||
public void setControlStrategy(Long controlStrategy) |
|||
{ |
|||
this.controlStrategy = controlStrategy; |
|||
} |
|||
|
|||
public Long getControlStrategy() |
|||
{ |
|||
return controlStrategy; |
|||
} |
|||
public void setControlType(Long controlType) |
|||
{ |
|||
this.controlType = controlType; |
|||
} |
|||
|
|||
public Long getControlType() |
|||
{ |
|||
return controlType; |
|||
} |
|||
public void setControlVehicleType(Long controlVehicleType) |
|||
{ |
|||
this.controlVehicleType = controlVehicleType; |
|||
} |
|||
|
|||
public Long getControlVehicleType() |
|||
{ |
|||
return controlVehicleType; |
|||
} |
|||
public void setCreationTime(Date creationTime) |
|||
{ |
|||
this.creationTime = creationTime; |
|||
} |
|||
|
|||
public Date getCreationTime() |
|||
{ |
|||
return creationTime; |
|||
} |
|||
public void setCreatorUserId(Long creatorUserId) |
|||
{ |
|||
this.creatorUserId = creatorUserId; |
|||
} |
|||
|
|||
public Long getCreatorUserId() |
|||
{ |
|||
return creatorUserId; |
|||
} |
|||
public void setLastModificationTime(Date lastModificationTime) |
|||
{ |
|||
this.lastModificationTime = lastModificationTime; |
|||
} |
|||
|
|||
public Date getLastModificationTime() |
|||
{ |
|||
return lastModificationTime; |
|||
} |
|||
public void setLastModifierUserId(Long lastModifierUserId) |
|||
{ |
|||
this.lastModifierUserId = lastModifierUserId; |
|||
} |
|||
|
|||
public Long getLastModifierUserId() |
|||
{ |
|||
return lastModifierUserId; |
|||
} |
|||
public void setIsDeleted(Integer isDeleted) |
|||
{ |
|||
this.isDeleted = isDeleted; |
|||
} |
|||
|
|||
public Integer getIsDeleted() |
|||
{ |
|||
return isDeleted; |
|||
} |
|||
public void setDeleterUserId(Long deleterUserId) |
|||
{ |
|||
this.deleterUserId = deleterUserId; |
|||
} |
|||
|
|||
public Long getDeleterUserId() |
|||
{ |
|||
return deleterUserId; |
|||
} |
|||
public void setDeletionTime(Date deletionTime) |
|||
{ |
|||
this.deletionTime = deletionTime; |
|||
} |
|||
|
|||
public Date getDeletionTime() |
|||
{ |
|||
return deletionTime; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|||
.append("id", getId()) |
|||
.append("fusionId", getFusionId()) |
|||
.append("eventName", getEventName()) |
|||
.append("eventTypeCode", getEventTypeCode()) |
|||
.append("eventDesc", getEventDesc()) |
|||
.append("occurTime", getOccurTime()) |
|||
.append("endTime", getEndTime()) |
|||
.append("stakeNumber", getStakeNumber()) |
|||
.append("longitude", getLongitude()) |
|||
.append("latitude", getLatitude()) |
|||
.append("lane", getLane()) |
|||
.append("direction", getDirection()) |
|||
.append("location", getLocation()) |
|||
.append("eventSourceCode", getEventSourceCode()) |
|||
.append("eventSource", getEventSource()) |
|||
.append("eventStatus", getEventStatus()) |
|||
.append("eventLevel", getEventLevel()) |
|||
.append("sectionId", getSectionId()) |
|||
.append("eventTypeCode2", getEventTypeCode2()) |
|||
.append("eventCause", getEventCause()) |
|||
.append("accidentWeather", getAccidentWeather()) |
|||
.append("accidentQueue", getAccidentQueue()) |
|||
.append("congestionPile", getCongestionPile()) |
|||
.append("congestionReason", getCongestionReason()) |
|||
.append("controlCategory", getControlCategory()) |
|||
.append("controlReason", getControlReason()) |
|||
.append("controlReasonType", getControlReasonType()) |
|||
.append("controlStation", getControlStation()) |
|||
.append("controlPile", getControlPile()) |
|||
.append("controlStrategy", getControlStrategy()) |
|||
.append("controlType", getControlType()) |
|||
.append("controlVehicleType", getControlVehicleType()) |
|||
.append("creationTime", getCreationTime()) |
|||
.append("creatorUserId", getCreatorUserId()) |
|||
.append("lastModificationTime", getLastModificationTime()) |
|||
.append("lastModifierUserId", getLastModifierUserId()) |
|||
.append("isDeleted", getIsDeleted()) |
|||
.append("deleterUserId", getDeleterUserId()) |
|||
.append("deletionTime", getDeletionTime()) |
|||
.toString(); |
|||
} |
|||
|
|||
public MdEvent(){} |
|||
|
|||
public MdEvent(DcEvent dcEvent){ |
|||
|
|||
//事件id
|
|||
this.fusionId = dcEvent.getId(); |
|||
//交通事件名称
|
|||
this.eventName = dcEvent.getEventTitle(); |
|||
//交通事件类型
|
|||
this.eventTypeCode = dcEvent.getEventType().toString(); |
|||
//交通事件详情
|
|||
this.eventDesc = dcEvent.getDescription(); |
|||
//发生时间
|
|||
this.occurTime = dcEvent.getStartTime(); |
|||
//发生时间
|
|||
this.endTime = dcEvent.getEndTime(); |
|||
//发生路段位置桩号
|
|||
this.stakeNumber = dcEvent.getStakeMark(); |
|||
//影响车道
|
|||
this.lane = dcEvent.getLang(); |
|||
//方向:1-上 2-中 3-下
|
|||
this.direction = dcEvent.getDirection(); |
|||
//事件来源编码
|
|||
this.eventSourceCode = dcEvent.getEventSource(); |
|||
//事件来源编码 1-96659,2-交警转接,3-道路巡查,4-视频巡查,5-视频AI,6-一键救援,7-其他
|
|||
if (dcEvent.getEventSource() > 0){ |
|||
if (dcEvent.getEventSource() == 1){ |
|||
this.eventSource = "96659"; |
|||
} else if (dcEvent.getEventSource() == 2){ |
|||
this.eventSource = "交警转接"; |
|||
} else if (dcEvent.getEventSource() == 3){ |
|||
this.eventSource = "道路巡查"; |
|||
} else if (dcEvent.getEventSource() == 4){ |
|||
this.eventSource = "视频巡查"; |
|||
} else if (dcEvent.getEventSource() == 5){ |
|||
this.eventSource = "视频AI"; |
|||
} else if (dcEvent.getEventSource() == 6){ |
|||
this.eventSource = "一键救援"; |
|||
} else if (dcEvent.getEventSource() == 7){ |
|||
this.eventSource = "其他"; |
|||
} |
|||
} |
|||
//事件状态:0-待确认,1-处理中,2-已完成
|
|||
this.eventStatus = dcEvent.getEventState(); |
|||
//事件等级
|
|||
this.eventLevel = dcEvent.getEventLevel(); |
|||
//所属路段
|
|||
if (dcEvent.getRoadId() > 0){ |
|||
this.sectionId = dcEvent.getRoadId().toString(); |
|||
} |
|||
//交通事件类型子类
|
|||
this.eventTypeCode2 = dcEvent.getEventSubclass(); |
|||
//事件原因
|
|||
this.eventCause = dcEvent.getEventCause(); |
|||
|
|||
//事件主类:
|
|||
// 1-交通事故
|
|||
// 2-车辆故障
|
|||
// 3-交通管制
|
|||
// 4-交通拥堵
|
|||
// 5-非法上路
|
|||
// 6-路障清除
|
|||
// 7-施工建设
|
|||
// 8-服务区异常
|
|||
// 9-设施设备隐患
|
|||
// 10-异常天气
|
|||
// 11-其他事件
|
|||
String eventType = dcEvent.getEventType().toString(); |
|||
/*if ("1".equals(eventType)){ |
|||
DcEventAccident dcEventAccident = dcEvent.getDcEventAccident(); |
|||
this.accidentWeather = dcEventAccident.getWeatherCondition(); |
|||
this.accidentQueue = dcEventAccident.getTrafficJam(); |
|||
}*/ |
|||
|
|||
} |
|||
} |
Loading…
Reference in new issue