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
804e367b
Commit
804e367b
authored
Jan 04, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保洁管理显示订单结束页面
parent
3933280e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
SRoomVo.java
...-system/src/main/java/share/system/domain/vo/SRoomVo.java
+11
-0
SStoreServiceImpl.java
...ain/java/share/system/service/impl/SStoreServiceImpl.java
+14
-0
No files found.
share-system/src/main/java/share/system/domain/vo/SRoomVo.java
View file @
804e367b
package
share
.
system
.
domain
.
vo
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -10,6 +11,7 @@ import share.common.core.domain.BaseEntity;
import
share.system.domain.SPack
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.List
;
/**
...
...
@@ -109,6 +111,15 @@ public class SRoomVo extends BaseEntity
*/
private
Long
recordsId
;
/**
* 订单时间
*/
/**
* 结束时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm"
)
private
Date
recordsTime
;
/** 门店名称 */
...
...
share-system/src/main/java/share/system/service/impl/SStoreServiceImpl.java
View file @
804e367b
...
...
@@ -339,6 +339,13 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
List
<
Long
>
roomIdList
=
Optional
.
ofNullable
(
sRoomVoList
).
orElse
(
new
ArrayList
<>()).
stream
().
map
(
SRoomVo:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
SCleanRecords
>
sCleanRecordsList
=
cleanRecordsService
.
unCleanedListByRoomIds
(
roomIdList
);
Map
<
Long
,
List
<
SCleanRecords
>>
recordsMap
=
Optional
.
ofNullable
(
sCleanRecordsList
).
orElse
(
new
ArrayList
<>()).
stream
().
collect
(
Collectors
.
groupingBy
(
SCleanRecords:
:
getRoomId
));
LambdaQueryWrapper
<
SOrder
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
in
(
SOrder:
:
getStoreId
,
storeIdList
);
wrapper
.
in
(
SOrder:
:
getRoomId
,
roomIdList
);
wrapper
.
eq
(
SOrder:
:
getStatus
,
OrderStatusEnum
.
INUSE
.
getCode
());
//正序
wrapper
.
orderByAsc
(
SOrder:
:
getEndDate
);
List
<
SOrder
>
list
=
orderService
.
list
(
wrapper
);
Optional
.
ofNullable
(
storeList
).
orElse
(
new
ArrayList
<>()).
forEach
(
item
->
{
item
.
setRoolList
(
roomMap
.
get
(
item
.
getId
()));
item
.
getRoolList
().
forEach
(
room
->
{
...
...
@@ -350,6 +357,13 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
}
}
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
list
.
forEach
(
order
->
{
if
(
order
.
getRoomId
().
compareTo
(
room
.
getId
())
==
0
)
{
room
.
setRecordsTime
(
order
.
getEndDate
());
}
});
}
});
});
}
...
...
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