Commit 14d3d7b0 authored by duanruiming's avatar duanruiming

[update] 车道快照请求体单独处理提交

parent 0061fe1f
...@@ -298,8 +298,8 @@ public class TrendController { ...@@ -298,8 +298,8 @@ public class TrendController {
@ApiResponses({ @ApiResponses({
@ApiResponse(code = 200, message = "OK", response = TableQueryVO.RealTimeDataElement.class), @ApiResponse(code = 200, message = "OK", response = TableQueryVO.RealTimeDataElement.class),
}) })
public JsonViewObject laneSnapshotIndex(@RequestBody CommonCrossIdDateTimeVO crossIdDateTimeVO) throws Exception { public JsonViewObject laneSnapshotIndex(@RequestBody LaneSnapshotIndexVO laneSnapshotIndexVO) throws Exception {
List<TableQueryVO.RealTimeDataElement> result = trendService.laneSnapshotIndex(crossIdDateTimeVO); List<TableQueryVO.RealTimeDataElement> result = trendService.laneSnapshotIndex(laneSnapshotIndexVO);
return JsonViewObject.newInstance().success(result); return JsonViewObject.newInstance().success(result);
} }
......
...@@ -61,7 +61,7 @@ public interface TrendService { ...@@ -61,7 +61,7 @@ public interface TrendService {
List<TableQueryVO.CycleDataElement> laneTrafficIndex(CommonCrossIdDateTimeVO crossIdDateTimeVO) throws Exception; 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<AnalysisRidTurnIndicators> lanePeriodTurnData(LanePeriodTurnVO lanePeriodTurnVO) throws Exception;
......
...@@ -1977,12 +1977,12 @@ public class TrendServiceImpl implements TrendService { ...@@ -1977,12 +1977,12 @@ public class TrendServiceImpl implements TrendService {
} }
@Override @Override
public List<TableQueryVO.RealTimeDataElement> laneSnapshotIndex(CommonCrossIdDateTimeVO crossIdDateTimeVO) throws Exception { public List<TableQueryVO.RealTimeDataElement> laneSnapshotIndex(LaneSnapshotIndexVO laneSnapshotIndexVO) throws Exception {
String crossId = crossIdDateTimeVO.getCrossId(); String crossId = laneSnapshotIndexVO.getCrossId();
int start = (int) (crossIdDateTimeVO.getStart().getTime() / 1000); int start = (int) (laneSnapshotIndexVO.getStart().getTime() / 1000);
int end = (int) (crossIdDateTimeVO.getEnd().getTime() / 1000); int end = (int) (laneSnapshotIndexVO.getEnd().getTime() / 1000);
int pageNum = crossIdDateTimeVO.getPageNum(); int pageNum = laneSnapshotIndexVO.getPageNum();
String laneId = crossIdDateTimeVO.getLaneId(); String laneId = laneSnapshotIndexVO.getLaneId();
// 查询秒级数据 // 查询秒级数据
List<CrossLaneSnapshotDataDTO> dtoList = List<CrossLaneSnapshotDataDTO> dtoList =
laneSnapshotDataQueryService.queryByCrossIdAndTimeSpan(crossId, start, end, pageNum, laneId); laneSnapshotDataQueryService.queryByCrossIdAndTimeSpan(crossId, start, end, pageNum, laneId);
......
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