Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
traffic-signal-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
signal
traffic-signal-platform
Commits
26c3bc7f
Commit
26c3bc7f
authored
Mar 06, 2023
by
hanbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 诊断优化,返回相邻路口名称
parent
8e3f252c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
DiagnoServiceImpl.java
...in/java/net/wanji/opt/service/impl/DiagnoServiceImpl.java
+2
-1
CrossIdAndLocationVO.java
.../src/main/java/net/wanji/opt/vo/CrossIdAndLocationVO.java
+4
-1
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/service/impl/DiagnoServiceImpl.java
View file @
26c3bc7f
...
@@ -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
.
set
Cross
Id
(
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
);
...
...
signal-optimize-service/src/main/java/net/wanji/opt/vo/CrossIdAndLocationVO.java
View file @
26c3bc7f
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment