Commit b1f567d3 authored by hanbing's avatar hanbing

[add] 干线评价-绿波实时数据和历史数据DAO层添加字段

parent a4a16c05
package net.wanji.databus.dao.entity;
import lombok.Data;
/**
* @author Kent HAN
* @date 2023/10/7 14:34
*/
@Data
public class GreenwaveHistPO extends GreenwaveRealtimePO{
}
......@@ -40,6 +40,13 @@ public class GreenwaveRealtimePO {
/** 不停车通过率 */
@ApiModelProperty(name = "不停车通过率",notes = "")
private Double noparkPassRate ;
@ApiModelProperty(name = "协调方案可靠性",notes = "")
private Double cordReliability ;
@ApiModelProperty(name = "协调路段排队空间占比",notes = "")
private Double cordQueueRatio ;
/** 非协调相位二次排队 */
@ApiModelProperty(name = "非协调相位二次排队",notes = "")
private Double uncoordinatePhaseQueue ;
......
......@@ -2,10 +2,13 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="net.wanji.databus.dao.mapper.GreenwaveRealtimeMapper">
<sql id="baseColumnList">
id,status,type,traffic_index,speed,trval_time,stop_times,queue_length,cong_rate,delay_time,nopark_pass_rate,
cord_reliability, cord_queue_ratio, uncoordinate_phase_queue,gmt_create,gmt_modified
</sql>
<select id="selectById" resultType="net.wanji.databus.dao.entity.GreenwaveRealtimePO">
select
id,status,type,traffic_index,speed,trval_time,stop_times,queue_length,cong_rate,delay_time,nopark_pass_rate,uncoordinate_phase_queue,gmt_create,gmt_modified
select <include refid="baseColumnList"/>
from t_greenwave_realtime
where id = #{id}
</select>
......
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