Commit b79ae0f7 authored by duanruiming's avatar duanruiming

[update] 路口控制列表添加经纬度

parent 5fa2b8b5
......@@ -657,6 +657,9 @@ public class SituationDetectionServiceImpl implements SituationDetectionService
for (SignalOperationModeVO signalOperationModeVO : signalOperationModeVOS) {
for (TBaseCrossInfo tBaseCrossInfo : tBaseCrossInfos) {
if (StringUtils.equals(signalOperationModeVO.getCrossId(), tBaseCrossInfo.getId())) {
// 转换经纬度格式
String location = tBaseCrossInfo.getLocation().replace("POINT", "").replace("(", "").replace(")", "").replace(" ", ",");
signalOperationModeVO.setLocation(location);
signalOperationModeVO.setCrossName(tBaseCrossInfo.getName());
signalOperationModeVO.setOperationTime(signalOperationModeVO.getStartTime().toString().substring(11, 19));
}
......
......@@ -25,4 +25,7 @@ public class SignalOperationModeVO {
private Integer type;
@ApiModelProperty(name = "开始日期", notes = "")
private Date startTime;
@ApiModelProperty(name = "经纬度", notes = "")
private String 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