Commit 26c3bc7f authored by hanbing's avatar hanbing

[update] 诊断优化,返回相邻路口名称

parent 8e3f252c
...@@ -126,8 +126,9 @@ public class DiagnoServiceImpl implements DiagnoService { ...@@ -126,8 +126,9 @@ public class DiagnoServiceImpl implements DiagnoService {
if (ridInfo != null) { if (ridInfo != null) {
// 关联路口坐标 // 关联路口坐标
String startCrossId = ridInfo.getStartCrossId(); String startCrossId = ridInfo.getStartCrossId();
crossIdAndLocationVO.setCrossId(startCrossId); crossIdAndLocationVO.setId(startCrossId);
CrossInfoPO crossInfoPO = crossInfoMapper.selectById(startCrossId); CrossInfoPO crossInfoPO = crossInfoMapper.selectById(startCrossId);
crossIdAndLocationVO.setName(crossInfoPO.getName());
if (crossInfoPO != null) { if (crossInfoPO != null) {
String startLocationStr = crossInfoPO.getLocation(); String startLocationStr = crossInfoPO.getLocation();
double[] startLonLat = CrossUtil.getLonLat(startLocationStr); double[] startLonLat = CrossUtil.getLonLat(startLocationStr);
......
...@@ -16,7 +16,10 @@ import java.util.List; ...@@ -16,7 +16,10 @@ import java.util.List;
@ApiModel(value = "CrossIdAndLocationVO") @ApiModel(value = "CrossIdAndLocationVO")
public class CrossIdAndLocationVO { public class CrossIdAndLocationVO {
@ApiModelProperty(value = "路口ID") @ApiModelProperty(value = "路口ID")
String crossId; String id;
@ApiModelProperty(value = "路口名称")
String name;
@ApiModelProperty(value = "路口坐标") @ApiModelProperty(value = "路口坐标")
List<Double> location; List<Double> location;
......
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