Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
operation-control-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
王锦盛
operation-control-platform
Commits
82324ce7
Commit
82324ce7
authored
Mar 30, 2022
by
zhaochengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
省测--查询
parent
f6ec7efc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
src/main/java/com/pms/ocp/service/impl/OcpTenantIocnServiceImpl.java
...va/com/pms/ocp/service/impl/OcpTenantIocnServiceImpl.java
+18
-3
No files found.
src/main/java/com/pms/ocp/service/impl/OcpTenantIocnServiceImpl.java
View file @
82324ce7
...
...
@@ -15,7 +15,10 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.Comparator
;
import
java.util.List
;
import
java.util.TreeSet
;
import
java.util.stream.Collectors
;
import
java.util.stream.Stream
;
/**
...
...
@@ -74,10 +77,17 @@ public class OcpTenantIocnServiceImpl extends ServiceImpl<OcpTenantIocnMapper, O
}
}*/
List
<
OcpTenantGroupIocnDto
>
lists
=
new
ArrayList
<>();
List
<
OcpTenantGroupIocnDto
>
groupIocnDtos
=
ocpTenantBaseMapper
.
selectAlls
();
for
(
OcpTenantGroupIocnDto
groupIocnDto
:
groupIocnDtos
)
{
Short
isDelete
=
groupIocnDto
.
getIsDelete
();
if
(
isDelete
==
0
){
lists
.
add
(
groupIocnDto
);
}
}
return
groupIocnDto
s
;
return
list
s
;
}
...
...
@@ -96,6 +106,11 @@ public class OcpTenantIocnServiceImpl extends ServiceImpl<OcpTenantIocnMapper, O
list
.
add
(
iocn
);
}
//去重
// msgs = msgs.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(Msg :: getMsgId))), ArrayList::new));
for
(
byte
[]
bytes
:
list
)
{
if
(!(
list
.
contains
(
bytes
))){
list
.
add
(
bytes
);
...
...
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