Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-new-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
device-new-platform
Commits
2d6a2df5
Commit
2d6a2df5
authored
Sep 19, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加站点
parent
f82f7626
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
device-manager/src/main/java/com/mortals/xhx/module/sitestat/service/impl/SitestatServiceImpl.java
...xhx/module/sitestat/service/impl/SitestatServiceImpl.java
+2
-2
No files found.
device-manager/src/main/java/com/mortals/xhx/module/sitestat/service/impl/SitestatServiceImpl.java
View file @
2d6a2df5
...
@@ -85,7 +85,7 @@ public class SitestatServiceImpl extends AbstractCRUDServiceImpl<SitestatDao, Si
...
@@ -85,7 +85,7 @@ public class SitestatServiceImpl extends AbstractCRUDServiceImpl<SitestatDao, Si
if
(
ObjectUtils
.
isEmpty
(
entity
.
getSiteId
()))
return
null
;
if
(
ObjectUtils
.
isEmpty
(
entity
.
getSiteId
()))
return
null
;
if
(
platFormType
.
equalsIgnoreCase
(
PlatformTypeEnum
.
STANDALONE
.
getValue
()))
{
if
(
platFormType
.
equalsIgnoreCase
(
PlatformTypeEnum
.
STANDALONE
.
getValue
()))
{
//根据返回的id 筛选列表
//根据返回的id 筛选列表
Map
<
Long
,
SitestatEntity
>
collectMap
=
this
.
find
ToMap
(
new
SitestatEntity
(),
context
);
Map
<
Long
,
SitestatEntity
>
collectMap
=
this
.
find
(
new
SitestatEntity
(),
context
).
stream
().
collect
(
Collectors
.
toMap
(
x
->
x
.
getSiteId
(),
y
->
y
,(
o
,
n
)->
n
)
);
List
<
SitestatEntity
>
list
=
this
.
siteService
.
find
(
new
SiteQuery
().
id
(
entity
.
getSiteId
())).
stream
().
filter
(
f
->
collectMap
.
containsKey
(
f
.
getId
())).
map
(
m
->
collectMap
.
get
(
m
.
getId
())).
collect
(
Collectors
.
toList
());
List
<
SitestatEntity
>
list
=
this
.
siteService
.
find
(
new
SiteQuery
().
id
(
entity
.
getSiteId
())).
stream
().
filter
(
f
->
collectMap
.
containsKey
(
f
.
getId
())).
map
(
m
->
collectMap
.
get
(
m
.
getId
())).
collect
(
Collectors
.
toList
());
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getSiteName
()))
{
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getSiteName
()))
{
list
=
MemoryPagination
.
search
(
entity
.
getSiteName
(),
list
);
list
=
MemoryPagination
.
search
(
entity
.
getSiteName
(),
list
);
...
@@ -101,7 +101,7 @@ public class SitestatServiceImpl extends AbstractCRUDServiceImpl<SitestatDao, Si
...
@@ -101,7 +101,7 @@ public class SitestatServiceImpl extends AbstractCRUDServiceImpl<SitestatDao, Si
log
.
info
(
"siteList:{}"
,
JSON
.
toJSONString
(
result
));
log
.
info
(
"siteList:{}"
,
JSON
.
toJSONString
(
result
));
if
(
result
.
getCode
()
==
YesNoEnum
.
YES
.
getValue
())
{
if
(
result
.
getCode
()
==
YesNoEnum
.
YES
.
getValue
())
{
//根据返回的id 筛选列表
//根据返回的id 筛选列表
Map
<
Long
,
SitestatEntity
>
collectMap
=
this
.
find
ToMap
(
new
SitestatEntity
(),
context
);
Map
<
Long
,
SitestatEntity
>
collectMap
=
this
.
find
(
new
SitestatEntity
(),
context
).
stream
().
collect
(
Collectors
.
toMap
(
x
->
x
.
getSiteId
(),
y
->
y
,(
o
,
n
)->
n
)
);
List
<
SitestatEntity
>
list
=
result
.
getData
().
stream
().
filter
(
f
->
collectMap
.
containsKey
(
f
.
getId
())).
map
(
m
->
collectMap
.
get
(
m
.
getId
())).
collect
(
Collectors
.
toList
());
List
<
SitestatEntity
>
list
=
result
.
getData
().
stream
().
filter
(
f
->
collectMap
.
containsKey
(
f
.
getId
())).
map
(
m
->
collectMap
.
get
(
m
.
getId
())).
collect
(
Collectors
.
toList
());
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getSiteName
()))
{
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getSiteName
()))
{
list
=
MemoryPagination
.
search
(
entity
.
getSiteName
(),
list
);
list
=
MemoryPagination
.
search
(
entity
.
getSiteName
(),
list
);
...
...
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