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
7acdac39
Commit
7acdac39
authored
Mar 06, 2023
by
hanbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 诊断优化,返回周边路口状态
parent
a654e96b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
DiagnoServiceImpl.java
...in/java/net/wanji/opt/service/impl/DiagnoServiceImpl.java
+5
-0
CrossIdAndLocationVO.java
.../src/main/java/net/wanji/opt/vo/CrossIdAndLocationVO.java
+2
-2
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/service/impl/DiagnoServiceImpl.java
View file @
7acdac39
...
@@ -137,6 +137,11 @@ public class DiagnoServiceImpl implements DiagnoService {
...
@@ -137,6 +137,11 @@ public class DiagnoServiceImpl implements DiagnoService {
startLocation
.
add
(
startLonLat
[
1
]);
startLocation
.
add
(
startLonLat
[
1
]);
crossIdAndLocationVO
.
setLocation
(
startLocation
);
crossIdAndLocationVO
.
setLocation
(
startLocation
);
}
}
CrossDataRealtimePO
crossDataRealtimePO
=
crossDataRealtimeMapper
.
selectByCrossId
(
startCrossId
);
if
(
crossDataRealtimePO
==
null
)
{
throw
new
RuntimeException
(
"没有该路口实时数据"
);
}
crossIdAndLocationVO
.
setRealtimeStatus
(
crossDataRealtimePO
.
getStatus
());
}
}
crossIdAndLocationVOList
.
add
(
crossIdAndLocationVO
);
crossIdAndLocationVOList
.
add
(
crossIdAndLocationVO
);
}
}
...
...
signal-optimize-service/src/main/java/net/wanji/opt/vo/CrossIdAndLocationVO.java
View file @
7acdac39
...
@@ -17,10 +17,10 @@ import java.util.List;
...
@@ -17,10 +17,10 @@ import java.util.List;
public
class
CrossIdAndLocationVO
{
public
class
CrossIdAndLocationVO
{
@ApiModelProperty
(
value
=
"路口ID"
)
@ApiModelProperty
(
value
=
"路口ID"
)
String
id
;
String
id
;
@ApiModelProperty
(
value
=
"路口名称"
)
@ApiModelProperty
(
value
=
"路口名称"
)
String
name
;
String
name
;
@ApiModelProperty
(
value
=
"路口坐标"
)
@ApiModelProperty
(
value
=
"路口坐标"
)
List
<
Double
>
location
;
List
<
Double
>
location
;
@ApiModelProperty
(
value
=
"路口状态:0正常;1失衡;2拥堵;3溢出"
)
Integer
realtimeStatus
;
}
}
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