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
e04a074a
Commit
e04a074a
authored
Nov 28, 2024
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 绿波实时数据优化
parent
0fbdb081
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
GreenBeltInfoServiceImpl.java
...nji/datacenter/service/impl/GreenBeltInfoServiceImpl.java
+8
-0
No files found.
wj-datacenter-service/src/main/java/net/wanji/datacenter/service/impl/GreenBeltInfoServiceImpl.java
View file @
e04a074a
...
...
@@ -340,6 +340,14 @@ public class GreenBeltInfoServiceImpl implements GreenBeltInfoService {
ObjectMapper
instance
=
JacksonUtils
.
getInstance
();
GreenWavePeriodDTO
greenWavePeriodDTO
=
instance
.
readValue
(
message
,
GreenWavePeriodDTO
.
class
);
List
<
GreenwaveRealtimePO
>
greenwaveRealtimePOS
=
greenWavePeriodDTO
.
getEventList
();
greenwaveRealtimePOS
.
forEach
(
item
->
{
Integer
batchTime
=
item
.
getBatchTime
();
item
.
setBatchTime
(
batchTime
);
item
.
setGmtCreate
(
new
Date
());
item
.
setGmtModified
(
new
Date
());
item
.
setStartTime
(
new
Date
(
batchTime
*
1000L
));
}
);
if
(!
CollectionUtils
.
isEmpty
(
greenwaveRealtimePOS
))
{
List
<
Integer
>
collect
=
greenwaveRealtimePOS
.
stream
().
map
(
GreenwaveRealtimePO:
:
getGreenId
).
collect
(
Collectors
.
toList
());
greenwaveRealtimeMapper
.
deleteBatch
(
collect
);
...
...
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