Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wj-datacenter-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
jinan
wj-datacenter-platform
Commits
d31db0d5
Commit
d31db0d5
authored
Jul 08, 2024
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 绿波数据优化-添加绿波路口星期类型
parent
8b8f1620
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
CrossGreenWaveInfoCache.java
...a/net/wanji/datacenter/cache/CrossGreenWaveInfoCache.java
+3
-5
No files found.
wj-datacenter-service/src/main/java/net/wanji/datacenter/cache/CrossGreenWaveInfoCache.java
View file @
d31db0d5
...
...
@@ -11,10 +11,7 @@ import org.springframework.util.CollectionUtils;
import
javax.annotation.Resource
;
import
java.time.LocalTime
;
import
java.util.Comparator
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.*
;
import
java.util.stream.Collectors
;
/**
...
...
@@ -51,7 +48,8 @@ public class CrossGreenWaveInfoCache implements InitializingBean {
List
<
GreenwaveCrossPO
>
greenWaveCrossPOS
=
greenwaveCrossMapper
.
selectByGreenwaveId
(
greenWaveId
);
if
(!
CollectionUtils
.
isEmpty
(
greenWaveCrossPOS
))
{
List
<
GreenwaveCrossPO
>
greenWaveCrossIds
=
greenWaveCrossPOS
.
stream
()
.
filter
(
po
->
LocalTime
.
parse
(
po
.
getStartTime
()).
isBefore
(
now
)
&&
LocalTime
.
parse
(
po
.
getEndTime
()).
isAfter
(
now
))
.
filter
(
po
->
LocalTime
.
parse
(
po
.
getStartTime
()).
isBefore
(
now
)
&&
LocalTime
.
parse
(
po
.
getEndTime
()).
isAfter
(
now
)
&&
Objects
.
equals
(
0
,
po
.
getWeek
()))
.
sorted
(
Comparator
.
comparingInt
(
GreenwaveCrossPO:
:
getSort
))
.
collect
(
Collectors
.
toList
());
greenWaveInfoMap
.
put
(
greenWaveId
,
greenWaveCrossIds
);
...
...
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