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
c9a388ff
Commit
c9a388ff
authored
Feb 06, 2023
by
hanbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
运行计划,修复空指针异
parent
b46d764a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
SchemeConfigServiceImpl.java
...anji/web/service/scheme/impl/SchemeConfigServiceImpl.java
+14
-11
No files found.
signal-control-service/src/main/java/net/wanji/web/service/scheme/impl/SchemeConfigServiceImpl.java
View file @
c9a388ff
package
net
.
wanji
.
web
.
service
.
scheme
.
impl
;
package
net
.
wanji
.
web
.
service
.
scheme
.
impl
;
import
cn.hutool.core.collection.CollectionUtil
;
import
net.wanji.web.common.constant.ControlModeConst
;
import
net.wanji.web.common.constant.ControlModeConst
;
import
net.wanji.web.common.exception.PhaseNoNotUniqueException
;
import
net.wanji.web.common.exception.PhaseNoNotUniqueException
;
import
net.wanji.web.dto.CrossIdDTO
;
import
net.wanji.web.dto.CrossIdDTO
;
...
@@ -391,6 +392,7 @@ public class SchemeConfigServiceImpl implements SchemeConfigService {
...
@@ -391,6 +392,7 @@ public class SchemeConfigServiceImpl implements SchemeConfigService {
List
<
String
>
laneIds
=
crossLaneLightsPOList
.
stream
()
List
<
String
>
laneIds
=
crossLaneLightsPOList
.
stream
()
.
map
(
CrossLaneLightsPO:
:
getLaneId
)
.
map
(
CrossLaneLightsPO:
:
getLaneId
)
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
if
(
CollectionUtil
.
isNotEmpty
(
laneIds
))
{
List
<
LaneInfoPO
>
laneInfoPOList
=
laneInfoMapper
.
selectByLaneIds
(
laneIds
);
List
<
LaneInfoPO
>
laneInfoPOList
=
laneInfoMapper
.
selectByLaneIds
(
laneIds
);
// 根据转向去重
// 根据转向去重
TreeSet
<
LaneInfoPO
>
laneInfoPOTreeSet
=
laneInfoPOList
.
stream
()
TreeSet
<
LaneInfoPO
>
laneInfoPOTreeSet
=
laneInfoPOList
.
stream
()
...
@@ -405,6 +407,7 @@ public class SchemeConfigServiceImpl implements SchemeConfigService {
...
@@ -405,6 +407,7 @@ public class SchemeConfigServiceImpl implements SchemeConfigService {
}
}
}
}
}
}
}
return
laneList
;
return
laneList
;
}
}
...
...
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