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
17c989b3
Commit
17c989b3
authored
Nov 15, 2023
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保洁负责的门店增加保洁状态
parent
c87b0c38
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
5 deletions
+24
-5
OrderStatusEnum.java
...mon/src/main/java/share/common/enums/OrderStatusEnum.java
+4
-1
SRoom.java
share-system/src/main/java/share/system/domain/SRoom.java
+6
-0
SOrderServiceImpl.java
...ain/java/share/system/service/impl/SOrderServiceImpl.java
+0
-0
SStoreServiceImpl.java
...ain/java/share/system/service/impl/SStoreServiceImpl.java
+14
-4
No files found.
share-common/src/main/java/share/common/enums/OrderStatusEnum.java
View file @
17c989b3
...
...
@@ -5,10 +5,13 @@ package share.common.enums;
* @Date 2023/10/20 10:57
*/
public
enum
OrderStatusEnum
{
//(0:待使用/已预约,1:使用中,2:已使用,3:已取消预约/申请退款,4:退款中,5:已退费)
UNUSED
(
0
,
"待使用/已预约"
),
INUSE
(
1
,
"使用中"
),
USED
(
2
,
"已使用"
),
CANCEL
(
3
,
"已取消"
);
CANCEL
(
3
,
"已取消"
),
REFUNDING
(
4
,
"退款中"
),
REFUNDED
(
5
,
"已退款"
);
private
Integer
code
;
...
...
share-system/src/main/java/share/system/domain/SRoom.java
View file @
17c989b3
...
...
@@ -95,6 +95,12 @@ public class SRoom extends BaseEntity
@TableField
(
exist
=
false
)
private
String
openShopUuid
;
/**
* 保洁状态
*/
@TableField
(
exist
=
false
)
private
Integer
recordsStatus
;
}
share-system/src/main/java/share/system/service/impl/SOrderServiceImpl.java
View file @
17c989b3
This diff is collapsed.
Click to expand it.
share-system/src/main/java/share/system/service/impl/SStoreServiceImpl.java
View file @
17c989b3
...
...
@@ -3,6 +3,7 @@ package share.system.service.impl;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.dianping.openapi.sdk.api.customerauth.session.entity.CustomerKeyShopScopeResponseEntity
;
import
lombok.var
;
...
...
@@ -23,10 +24,7 @@ import share.system.domain.*;
import
share.system.domain.vo.FrontTokenComponent
;
import
share.system.domain.vo.SRoomVo
;
import
share.system.domain.vo.SStoreVo
;
import
share.system.mapper.RoomPackMapper
;
import
share.system.mapper.SRoomMapper
;
import
share.system.mapper.SStoreConsumerMapper
;
import
share.system.mapper.SStoreMapper
;
import
share.system.mapper.*
;
import
share.system.request.SStoreRequest
;
import
share.system.service.IPackService
;
import
share.system.service.ISRoomService
;
...
...
@@ -53,6 +51,8 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
private
IPackService
packService
;
@Autowired
private
QPService
qpService
;
@Autowired
private
SCleanRecordsMapper
sCleanRecordsMapper
;
/**
* 查询门店
...
...
@@ -281,7 +281,17 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
});
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
);
room
.
setRecordsStatus
(
sCleanRecords
.
getStatus
());
});
});
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