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
...
@@ -101,6 +101,12 @@ public class SRoom extends BaseEntity
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
Integer
recordsStatus
;
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
...
@@ -281,17 +281,21 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
storeList
.
add
(
sStoreMapper
.
selectById
(
item
));
storeList
.
add
(
sStoreMapper
.
selectById
(
item
));
});
});
storeList
.
forEach
(
item
->
{
storeList
.
forEach
(
item
->
{
item
.
setRoolList
(
sRoomService
.
selectSroomListByStroeId
(
item
.
getId
()));
List
<
SRoom
>
sRooms
=
sRoomService
.
selectSroomListByStroeId
(
item
.
getId
());
item
.
getRoolList
().
forEach
(
room
->
{
if
(
CollectionUtils
.
isNotEmpty
(
sRooms
))
{
LambdaQueryWrapper
<
SCleanRecords
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
item
.
setRoolList
(
sRoomService
.
selectSroomListByStroeId
(
item
.
getId
()));
queryWrapper
.
eq
(
SCleanRecords:
:
getRoomId
,
room
.
getId
());
item
.
getRoolList
().
forEach
(
room
->
{
queryWrapper
.
eq
(
SCleanRecords:
:
getStoreId
,
item
.
getId
());
LambdaQueryWrapper
<
SCleanRecords
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
queryWrapper
.
ne
(
SCleanRecords:
:
getStatus
,
2
);
queryWrapper
.
eq
(
SCleanRecords:
:
getRoomId
,
room
.
getId
());
SCleanRecords
sCleanRecords
=
sCleanRecordsMapper
.
selectOne
(
queryWrapper
);
queryWrapper
.
eq
(
SCleanRecords:
:
getStoreId
,
item
.
getId
());
if
(
ObjectUtils
.
isNotEmpty
(
sCleanRecords
))
{
queryWrapper
.
ne
(
SCleanRecords:
:
getStatus
,
2
);
room
.
setRecordsStatus
(
sCleanRecords
.
getStatus
());
SCleanRecords
sCleanRecords
=
sCleanRecordsMapper
.
selectOne
(
queryWrapper
);
}
if
(
ObjectUtils
.
isNotEmpty
(
sCleanRecords
))
{
});
room
.
setRecordsStatus
(
sCleanRecords
.
getStatus
());
room
.
setRecordsId
(
sCleanRecords
.
getId
());
}
});
}
});
});
return
storeList
;
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