Commit 1798bd04 authored by duanruiming's avatar duanruiming

[add] 绿波实时数据优化

parent e27b76ae
...@@ -2,12 +2,16 @@ package net.wanji.databus.dao.entity; ...@@ -2,12 +2,16 @@ package net.wanji.databus.dao.entity;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.util.Date; import java.util.Date;
@Data @Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class GreenwaveRealtimePO { public class GreenwaveRealtimePO {
/** 绿波ID */ /** 绿波ID */
@ApiModelProperty(name = "id",notes = "") @ApiModelProperty(name = "id",notes = "")
...@@ -57,6 +61,7 @@ public class GreenwaveRealtimePO { ...@@ -57,6 +61,7 @@ public class GreenwaveRealtimePO {
private Double uncoordinatePhaseQueue ; private Double uncoordinatePhaseQueue ;
/** 创建时间 */ /** 创建时间 */
@ApiModelProperty(name = "数据时间",notes = "") @ApiModelProperty(name = "数据时间",notes = "")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date startTime ; private Date startTime ;
/** 创建时间 */ /** 创建时间 */
@ApiModelProperty(name = "创建时间",notes = "") @ApiModelProperty(name = "创建时间",notes = "")
...@@ -82,10 +87,12 @@ public class GreenwaveRealtimePO { ...@@ -82,10 +87,12 @@ public class GreenwaveRealtimePO {
@ApiModelProperty(value = "方推荐速度上限 km/h", notes = "") @ApiModelProperty(value = "方推荐速度上限 km/h", notes = "")
private Integer speedHigh; private Integer speedHigh;
@ApiModelProperty(value = "推荐速度下限 km/h", notes = "") @ApiModelProperty(value = "推荐速度下限 km/h", notes = "")
@JsonProperty("speedLow")
private Integer speedDown; private Integer speedDown;
@ApiModelProperty(value = "推荐速度下限 km/h", notes = "") @ApiModelProperty(value = "推荐速度下限 km/h", notes = "")
private String roadDirection; private String roadDirection;
@ApiModelProperty(value = "饱和度", notes = "") @ApiModelProperty(value = "饱和度", notes = "")
private Integer sturation; private Integer sturation;
@ApiModelProperty(name = "采集时间(10位时间戳)",notes = "")
public Integer batchTime ;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment