Commit e6d0eb2a authored by duanruiming's avatar duanruiming

[update] 拥堵查询添加批次事件和拥堵指数

parent 998f4989
......@@ -50,4 +50,13 @@ public class AbnormalCrossListVO {
private Integer isSpillover;
@ApiModelProperty(value = "是否拥堵:0否;1是")
private Integer isCongestion;
@ApiModelProperty(value = "拥堵指数")
private Double congestionIndex;
@ApiModelProperty(value = "同比", notes = "同比增长率= (本期数 - 同期数) / 同期数 × 100%;同比:取上一周同一时段数据")
private Double lastWeekIndex;
@ApiModelProperty(value = "环比", notes = "增长率= (本期数 - 上期数) / 上期数 × 100%;环比:取上一时段数据")
private Double lastPeriodIndex;
private Integer batchTime;
@ApiModelProperty(value = " 0-偶发性 1-常发性", notes = "一个月内超过三次")
private int frequent;
}
......@@ -73,7 +73,8 @@
<select id="selectAbnormalCross" resultType="net.wanji.databus.vo.AbnormalCrossListVO">
select
t2.id, t2.name, t2.is_signal, t1.unbalance_dirs, t1.congestion_dirs, t1.spillover_dirs, t1.status as realtimeStatus,
t1.start_time, t1.duration, t2.location as locationStr, t1.is_unbalance, t1.is_spillover, t1.is_congestion
t1.start_time, t1.duration, t2.location as locationStr, t1.is_unbalance, t1.is_spillover, t1.is_congestion,
t1.congestion_index, t1.batch_time
from t_cross_data_realtime t1 JOIN t_base_cross_info t2
on t1.cross_id = t2.id
<where>
......
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