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
738d4efc
Commit
738d4efc
authored
Nov 15, 2023
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
房间增加保洁订单ID
parent
c7165d9d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
11 deletions
+21
-11
SRoom.java
share-system/src/main/java/share/system/domain/SRoom.java
+6
-0
SStoreServiceImpl.java
...ain/java/share/system/service/impl/SStoreServiceImpl.java
+15
-11
No files found.
share-system/src/main/java/share/system/domain/SRoom.java
View file @
738d4efc
...
...
@@ -101,6 +101,12 @@ public class SRoom extends BaseEntity
@TableField
(
exist
=
false
)
private
Integer
recordsStatus
;
/**
* 保洁订单ID
*/
@TableField
(
exist
=
false
)
private
Long
recordsId
;
}
share-system/src/main/java/share/system/service/impl/SStoreServiceImpl.java
View file @
738d4efc
...
...
@@ -281,17 +281,21 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
storeList
.
add
(
sStoreMapper
.
selectById
(
item
));
});
storeList
.
forEach
(
item
->
{
item
.
setRoolList
(
sRoomService
.
selectSroomListByStroeId
(
item
.
getId
()));
item
.
getRoolList
().
forEach
(
room
->
{
LambdaQueryWrapper
<
SCleanRecords
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
queryWrapper
.
eq
(
SCleanRecords:
:
getRoomId
,
room
.
getId
());
queryWrapper
.
eq
(
SCleanRecords:
:
getStoreId
,
item
.
getId
());
queryWrapper
.
ne
(
SCleanRecords:
:
getStatus
,
2
);
SCleanRecords
sCleanRecords
=
sCleanRecordsMapper
.
selectOne
(
queryWrapper
);
if
(
ObjectUtils
.
isNotEmpty
(
sCleanRecords
))
{
room
.
setRecordsStatus
(
sCleanRecords
.
getStatus
());
}
});
List
<
SRoom
>
sRooms
=
sRoomService
.
selectSroomListByStroeId
(
item
.
getId
());
if
(
CollectionUtils
.
isNotEmpty
(
sRooms
))
{
item
.
setRoolList
(
sRoomService
.
selectSroomListByStroeId
(
item
.
getId
()));
item
.
getRoolList
().
forEach
(
room
->
{
LambdaQueryWrapper
<
SCleanRecords
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
queryWrapper
.
eq
(
SCleanRecords:
:
getRoomId
,
room
.
getId
());
queryWrapper
.
eq
(
SCleanRecords:
:
getStoreId
,
item
.
getId
());
queryWrapper
.
ne
(
SCleanRecords:
:
getStatus
,
2
);
SCleanRecords
sCleanRecords
=
sCleanRecordsMapper
.
selectOne
(
queryWrapper
);
if
(
ObjectUtils
.
isNotEmpty
(
sCleanRecords
))
{
room
.
setRecordsStatus
(
sCleanRecords
.
getStatus
());
room
.
setRecordsId
(
sCleanRecords
.
getId
());
}
});
}
});
return
storeList
;
}
...
...
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