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
11a3b673
authored
Sep 15, 2023
by
朱淼
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
整理代码
parent
983ba2cd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
server-service/src/main/java/com/makeit/service/platform/space/impl/PlatRoomDynamicServiceImpl.java
server-service/src/main/java/com/makeit/service/platform/space/impl/PlatRoomDynamicServiceImpl.java
View file @
11a3b673
...
@@ -60,7 +60,7 @@ public class PlatRoomDynamicServiceImpl implements PlatRoomDynamicService {
...
@@ -60,7 +60,7 @@ public class PlatRoomDynamicServiceImpl implements PlatRoomDynamicService {
Map
<
String
,
List
<
PlatRoom
>>
spaceRoomMap
=
rooms
.
stream
().
collect
(
Collectors
.
groupingBy
(
PlatRoom:
:
getSpaceId
));
Map
<
String
,
List
<
PlatRoom
>>
spaceRoomMap
=
rooms
.
stream
().
collect
(
Collectors
.
groupingBy
(
PlatRoom:
:
getSpaceId
));
List
<
String
>
roomIds
=
rooms
.
stream
().
map
(
PlatRoom:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
String
>
roomIds
=
rooms
.
stream
().
map
(
PlatRoom:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
PlatBed
>
beds
=
platBedService
.
list
(
new
QueryWrapper
<
PlatBed
>().
lambda
()
List
<
PlatBed
>
beds
=
platBedService
.
list
(
new
QueryWrapper
<
PlatBed
>().
lambda
()
.
eq
(
PlatBed:
:
getStatus
,
PlatBedStatusEnum
.
BedStatusEnum
.
CHECKED_IN
)
.
eq
(
PlatBed:
:
getStatus
,
PlatBedStatusEnum
.
BedStatusEnum
.
CHECKED_IN
.
getValue
()
)
.
in
(
PlatBed:
:
getRoomId
,
roomIds
));
.
in
(
PlatBed:
:
getRoomId
,
roomIds
));
Map
<
String
,
List
<
PlatBed
>>
bedMap
=
beds
.
stream
().
collect
(
Collectors
.
groupingBy
(
PlatBed:
:
getRoomId
));
Map
<
String
,
List
<
PlatBed
>>
bedMap
=
beds
.
stream
().
collect
(
Collectors
.
groupingBy
(
PlatBed:
:
getRoomId
));
for
(
PlatSpace
space
:
spaces
){
for
(
PlatSpace
space
:
spaces
){
...
...
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