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
b79ae0f7
Commit
b79ae0f7
authored
Mar 23, 2023
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 路口控制列表添加经纬度
parent
5fa2b8b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
SituationDetectionServiceImpl.java
...wanji/web/service/impl/SituationDetectionServiceImpl.java
+3
-0
SignalOperationModeVO.java
...anji/web/vo/situationDetection/SignalOperationModeVO.java
+3
-0
No files found.
signal-control-service/src/main/java/net/wanji/web/service/impl/SituationDetectionServiceImpl.java
View file @
b79ae0f7
...
@@ -657,6 +657,9 @@ public class SituationDetectionServiceImpl implements SituationDetectionService
...
@@ -657,6 +657,9 @@ public class SituationDetectionServiceImpl implements SituationDetectionService
for
(
SignalOperationModeVO
signalOperationModeVO
:
signalOperationModeVOS
)
{
for
(
SignalOperationModeVO
signalOperationModeVO
:
signalOperationModeVOS
)
{
for
(
TBaseCrossInfo
tBaseCrossInfo
:
tBaseCrossInfos
)
{
for
(
TBaseCrossInfo
tBaseCrossInfo
:
tBaseCrossInfos
)
{
if
(
StringUtils
.
equals
(
signalOperationModeVO
.
getCrossId
(),
tBaseCrossInfo
.
getId
()))
{
if
(
StringUtils
.
equals
(
signalOperationModeVO
.
getCrossId
(),
tBaseCrossInfo
.
getId
()))
{
// 转换经纬度格式
String
location
=
tBaseCrossInfo
.
getLocation
().
replace
(
"POINT"
,
""
).
replace
(
"("
,
""
).
replace
(
")"
,
""
).
replace
(
" "
,
","
);
signalOperationModeVO
.
setLocation
(
location
);
signalOperationModeVO
.
setCrossName
(
tBaseCrossInfo
.
getName
());
signalOperationModeVO
.
setCrossName
(
tBaseCrossInfo
.
getName
());
signalOperationModeVO
.
setOperationTime
(
signalOperationModeVO
.
getStartTime
().
toString
().
substring
(
11
,
19
));
signalOperationModeVO
.
setOperationTime
(
signalOperationModeVO
.
getStartTime
().
toString
().
substring
(
11
,
19
));
}
}
...
...
signal-control-service/src/main/java/net/wanji/web/vo/situationDetection/SignalOperationModeVO.java
View file @
b79ae0f7
...
@@ -25,4 +25,7 @@ public class SignalOperationModeVO {
...
@@ -25,4 +25,7 @@ public class SignalOperationModeVO {
private
Integer
type
;
private
Integer
type
;
@ApiModelProperty
(
name
=
"开始日期"
,
notes
=
""
)
@ApiModelProperty
(
name
=
"开始日期"
,
notes
=
""
)
private
Date
startTime
;
private
Date
startTime
;
@ApiModelProperty
(
name
=
"经纬度"
,
notes
=
""
)
private
String
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