Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄嘉阳
/
iot-platform-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b619997f
authored
Oct 17, 2023
by
lzy
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
设备列表
parent
6c046059
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
server-service/src/main/java/com/makeit/service/platform/space/impl/PlatRoomBedDeviceServiceImpl.java
server-service/src/main/java/com/makeit/service/platform/space/impl/PlatRoomBedDeviceServiceImpl.java
View file @
b619997f
...
...
@@ -101,15 +101,12 @@ public class PlatRoomBedDeviceServiceImpl extends ServiceImpl<PlatRoomBedDeviceM
List
<
PlatRoomBedDevice
>
list
=
list
(
queryWrapper1
);
List
<
PlatRoomBedDevice
>
list1
=
new
ArrayList
<>();
if
(
CommonEnum
.
NO
.
getValue
().
equals
(
dto
.
getIsRoom
()))
{
list
.
forEach
(
item
->{
if
(!
item
.
getRoomId
().
equals
(
dto
.
getRoomId
())
||
(
item
.
getRoomId
().
equals
(
dto
.
getRoomId
())
&&
StringUtil
.
isNotEmpty
(
item
.
getBedId
()))){
list1
.
add
(
item
);
}
});
}
list
.
forEach
(
item
->{
if
(!
item
.
getRoomId
().
equals
(
dto
.
getRoomId
())
||
(
item
.
getRoomId
().
equals
(
dto
.
getRoomId
())
&&
StringUtil
.
isNotEmpty
(
item
.
getBedId
()))){
list1
.
add
(
item
);
}
});
List
<
String
>
listEquipmentIds
=
list1
.
stream
().
map
(
item
->
item
.
getDeviceId
()).
collect
(
Collectors
.
toList
());
...
...
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