Commit c5b78da3 authored by duanruiming's avatar duanruiming

[add] 绿波绿信比流量优化

parent 9ebadf1a
...@@ -336,12 +336,12 @@ public class TrendServiceImpl implements TrendService { ...@@ -336,12 +336,12 @@ public class TrendServiceImpl implements TrendService {
double roundedTrafficIndex = Math.round(abnormalCrossListVO.getCongestionIndex() * 100.0) / 100.0; double roundedTrafficIndex = Math.round(abnormalCrossListVO.getCongestionIndex() * 100.0) / 100.0;
abnormalCrossListVO.setCongestionIndex(roundedTrafficIndex); abnormalCrossListVO.setCongestionIndex(roundedTrafficIndex);
// todo
Double congestionIndex = abnormalCrossListVO.getCongestionIndex(); //Double congestionIndex = abnormalCrossListVO.getCongestionIndex();
double lastWeekIndex = getIndex(congestionIndex, crossId, batchTime - 604800); //double lastWeekIndex = getIndex(congestionIndex, crossId, batchTime - 604800);
double lastPeriodIndex = getIndex(congestionIndex, crossId, batchTime - 300); //double lastPeriodIndex = getIndex(congestionIndex, crossId, batchTime - 300);
abnormalCrossListVO.setLastWeekIndex(Math.floor(lastWeekIndex)); //abnormalCrossListVO.setLastWeekIndex(Math.floor(lastWeekIndex));
abnormalCrossListVO.setLastPeriodIndex(Math.floor(lastPeriodIndex)); //abnormalCrossListVO.setLastPeriodIndex(Math.floor(lastPeriodIndex));
// 常发性偶发性 一个月内超过三次 // 常发性偶发性 一个月内超过三次
int frequent = getFrequent(crossId, batchTime); int frequent = getFrequent(crossId, batchTime);
......
...@@ -17,6 +17,8 @@ import java.util.List; ...@@ -17,6 +17,8 @@ import java.util.List;
public class GreenBeltCrossDetailVO { public class GreenBeltCrossDetailVO {
@ApiModelProperty("干线名称") @ApiModelProperty("干线名称")
private String greenName; private String greenName;
@ApiModelProperty("路口数量")
private Integer crossNum;
@JsonSerialize(using = Double2TwoDecimalPlacesSerializer.class) @JsonSerialize(using = Double2TwoDecimalPlacesSerializer.class)
@ApiModelProperty("干线指数") @ApiModelProperty("干线指数")
private Double greenIndex; private Double greenIndex;
......
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