Commit 8fafabbc authored by hanbing's avatar hanbing

Merge remote-tracking branch 'origin/master'

parents 900b7da2 b1499500
......@@ -298,8 +298,8 @@ public class TrendController {
@ApiResponses({
@ApiResponse(code = 200, message = "OK", response = TableQueryVO.RealTimeDataElement.class),
})
public JsonViewObject laneSnapshotIndex(@RequestBody CommonCrossIdDateTimeVO crossIdDateTimeVO) throws Exception {
List<TableQueryVO.RealTimeDataElement> result = trendService.laneSnapshotIndex(crossIdDateTimeVO);
public JsonViewObject laneSnapshotIndex(@RequestBody LaneSnapshotIndexVO laneSnapshotIndexVO) throws Exception {
List<TableQueryVO.RealTimeDataElement> result = trendService.laneSnapshotIndex(laneSnapshotIndexVO);
return JsonViewObject.newInstance().success(result);
}
......@@ -322,8 +322,20 @@ public class TrendController {
@ApiResponses({
@ApiResponse(code = 200, message = "OK", response = HoloEventInfoPO.class),
})
public JsonViewObject holoEvenList(@RequestBody CommonCrossIdDateTimeVO crossIdDateTimeVO) throws Exception {
List<HoloEventInfoPO> result = trendService.holoEvenList(crossIdDateTimeVO);
public JsonViewObject holoEvenList(@RequestBody HoloEventVO holoEventVO) throws Exception {
List<HoloEventInfoPO> result = trendService.holoEvenList(holoEventVO);
return JsonViewObject.newInstance().success(result);
}
@ApiOperation(value = "车道查询列表", notes = "车道查询列表", response = JsonViewObject.class,
produces = MediaType.APPLICATION_JSON, consumes = MediaType.APPLICATION_JSON)
@PostMapping(value = "/laneIdList",
produces = MediaType.APPLICATION_JSON, consumes = MediaType.APPLICATION_JSON)
@ApiResponses({
@ApiResponse(code = 200, message = "OK", response = LaneIdAliasNameVO.class),
})
public JsonViewObject laneIdList(@RequestBody CommonCrossIdVO commonCrossIdVO) throws Exception {
List<LaneIdAliasNameVO> result = trendService.laneIdList(commonCrossIdVO);
return JsonViewObject.newInstance().success(result);
}
}
\ No newline at end of file
......@@ -16,7 +16,7 @@ import java.util.Date;
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_analysis_rid_turn_indicators")
@ApiModel(value = "AnalysisRidTurnIndicators", description = "")
@ApiModel(value = "AnalysisRidTurnIndicators", description = "通过航向角计算方向转向流量排队数据")
public class AnalysisRidTurnIndicators implements Serializable {
private static final long serialVersionUID = 1L;
......
......@@ -61,9 +61,11 @@ public interface TrendService {
List<TableQueryVO.CycleDataElement> laneTrafficIndex(CommonCrossIdDateTimeVO crossIdDateTimeVO) throws Exception;
List<TableQueryVO.RealTimeDataElement> laneSnapshotIndex(CommonCrossIdDateTimeVO crossIdDateTimeVO) throws Exception;
List<TableQueryVO.RealTimeDataElement> laneSnapshotIndex(LaneSnapshotIndexVO laneSnapshotIndexVO) throws Exception;
List<AnalysisRidTurnIndicators> lanePeriodTurnData(LanePeriodTurnVO lanePeriodTurnVO) throws Exception;
List<HoloEventInfoPO> holoEvenList(CommonCrossIdDateTimeVO crossIdDateTimeVO) throws Exception;
List<HoloEventInfoPO> holoEvenList(HoloEventVO holoEventVO) throws Exception;
List<LaneIdAliasNameVO> laneIdList(CommonCrossIdVO commonCrossIdVO) throws Exception;
}
......@@ -63,7 +63,7 @@ public class LaneSnapshotDataQueryService implements LaneSnapshotService {
searchSourceBuilder
.query(boolQuery)
.from(pageNum)
.from(pageNum * 500)
.size((pageNum + 1) * 500);
searchRequest.source(searchSourceBuilder);
......
......@@ -17,7 +17,7 @@ import java.util.Date;
@Data
@NoArgsConstructor
@ApiModel(value = "CommonCrossIdDateTimeVO")
public class CommonCrossIdDateTimeVO extends PageNumVO{
public class CommonCrossIdDateTimeVO {
@ApiModelProperty(value = "路口ID")
@NotBlank(message = "路口编号不能为空")
private String crossId;
......
package net.wanji.opt.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @author duanruiming
* @date 2024/05/24 8:57
*/
@Data
@ApiModel(value = "HoloEventVO", description = "全息事件查询实体")
public class HoloEventVO extends CommonCrossIdDateTimeVO{
@ApiModelProperty(value = "事件类型")
private String types;
}
package net.wanji.opt.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @author duanruiming
* @date 2024/05/23 9:28
*/
@Data
@ApiModel(value = "LaneIdAliasNameVO", description = "车道名称实体")
public class LaneIdAliasNameVO {
@ApiModelProperty(value = "车道编号")
private String laneId;
@ApiModelProperty(value = "车道别名")
private String aliasName;
}
package net.wanji.opt.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
/**
* @author duanruiming
* @date 2024/05/23 10:17
*/
@Data
@ApiModel(value = "LaneSnapshotIndexVO", description = "车道快照请求体")
public class LaneSnapshotIndexVO extends PageNumVO {
@ApiModelProperty(value = "路口ID")
@NotBlank(message = "路口编号不能为空")
private String crossId;
@ApiModelProperty(value = "开始时间")
@NotNull(message = "开始日期不能为空")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date start;
@ApiModelProperty(value = "结束时间")
@NotNull(message = "结束时间不能为空")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date end;
}
......@@ -72,6 +72,9 @@ public class TableQueryVO {
@ApiModelProperty(value = "队尾距离(米)")
private double teamTailDistance;
@ApiModelProperty(value = "车头间距方差>车道内空间占有率")
private double stdSpaceHeadway;
}
@NoArgsConstructor
......
......@@ -12,10 +12,6 @@ public class CrossLaneDataHistPOExt extends CrossLaneDataRealTimePO{
private Integer dir;
// 车道序号,从左车道开始编号11、12、13...
private Integer sort;
// 时间占有率
private Double timeOccupancy;
// 空间占有率即车辆负荷比
private Double vehicleNumsRatioMean;
// 转向
private Integer turn;
......
package net.wanji.databus.po;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
......@@ -72,6 +73,7 @@ public class CrossLaneDataRealTimePO {
@ApiModelProperty(value = "非机动车流量", notes = "")
private int nonMotorFlow;
@ApiModelProperty(value = "85位速度(km/h)", notes = "")
@TableField(value = "v_85")
private double v85;
@ApiModelProperty(value = "大车流量", notes = "")
private int trafficFlowA;
......
......@@ -103,8 +103,9 @@
</select>
<select id="selectByCrossIdAndTimeSpan" resultType="net.wanji.databus.po.CrossLaneDataHistPOExt">
SELECT t1.id, t2.dir, t2.sort, t1.flow, t1.speed, t1.queue_length, t1.delay_time, t1.stop_times,
t1.vehhead_time, t1.batch_time, t1.time_occupancy, t1.vehicle_nums_ratio_mean, t1.start_time
SELECT t1.id, t2.dir,t2.turn, t2.sort, t1.flow, t1.speed, t1.queue_length, t1.delay_time, t1.stop_times,
t1.vehhead_time, t1.batch_time, t1.time_occupancy, t1.vehicle_nums_ratio_mean, t1.start_time,
t1.traffic_flow_A, t1.traffic_flow_B, t1.traffic_flow_C,t1.v_85, t1.non_motor_flow, t1.time_occupancy
FROM t_lane_data_hist t1 JOIN t_base_lane_info t2 ON t1.id = t2.id
where t1.cross_id = #{crossId}
and batch_time <![CDATA[ >= ]]> #{startTimeStamp}
......
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