Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
pseer
gxpt_ht
Commits
a6b30a3d
Commit
a6b30a3d
authored
Feb 18, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改前台页面展示的未保洁 保洁管理显示空闲
parent
2ea0069a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
SCleanRecordsServiceImpl.java
...a/share/system/service/impl/SCleanRecordsServiceImpl.java
+8
-0
No files found.
share-system/src/main/java/share/system/service/impl/SCleanRecordsServiceImpl.java
View file @
a6b30a3d
...
...
@@ -329,12 +329,17 @@ public class SCleanRecordsServiceImpl extends ServiceImpl<SCleanRecordsMapper,SC
List
<
Long
>
orderRoomIds
=
Optional
.
ofNullable
(
orderList
).
orElse
(
new
ArrayList
<>()).
parallelStream
().
map
(
SOrder:
:
getRoomId
).
collect
(
Collectors
.
toList
());
List
<
SCleanRecords
>
hasOrderlist
=
list
.
stream
().
filter
(
item
->
orderRoomIds
.
contains
(
item
.
getRoomId
())).
collect
(
Collectors
.
toList
());
List
<
SCleanRecords
>
nonOrderlist
=
list
.
stream
().
filter
(
item
->
!
orderRoomIds
.
contains
(
item
.
getRoomId
())).
collect
(
Collectors
.
toList
());
List
<
SRoom
>
rooms
=
new
ArrayList
<>();
if
(
CollectionUtils
.
isNotEmpty
(
hasOrderlist
))
{
hasOrderlist
.
forEach
(
item
->
{
item
.
setStatus
(
2
);
item
.
setStartDate
(
now
);
item
.
setEndDate
(
now
);
item
.
setUpdateTime
(
now
);
rooms
.
add
(
new
SRoom
()
{{
setId
(
item
.
getRoomId
());
setIsDirtyRoom
(
YesNoEnum
.
no
.
getIndex
());
}});
});
}
List
<
SRoom
>
dirtyRoomList
=
new
ArrayList
<>();
...
...
@@ -378,6 +383,9 @@ public class SCleanRecordsServiceImpl extends ServiceImpl<SCleanRecordsMapper,SC
if
(
CollectionUtils
.
isNotEmpty
(
dirtyRoomList
))
{
roomService
.
updateBatchById
(
dirtyRoomList
);
}
if
(
CollectionUtils
.
isNotEmpty
(
rooms
))
{
roomService
.
updateBatchById
(
rooms
);
}
return
true
;
}
...
...
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