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
c713844a
Commit
c713844a
authored
May 13, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改房间状态接口
parent
2e0d18b5
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
SRoomController.java
...ain/java/share/web/controller/system/SRoomController.java
+2
-2
RedisTask.java
share-quartz/src/main/java/share/quartz/task/RedisTask.java
+1
-1
RoomStatusService.java
...src/main/java/share/system/service/RoomStatusService.java
+2
-2
RoomStatusServiceImpl.java
...java/share/system/service/impl/RoomStatusServiceImpl.java
+5
-1
No files found.
share-front/src/main/java/share/web/controller/system/SRoomController.java
View file @
c713844a
...
@@ -66,8 +66,8 @@ public class SRoomController extends BaseController {
...
@@ -66,8 +66,8 @@ public class SRoomController extends BaseController {
,
@ApiParam
(
name
=
"roomId"
,
value
=
"房间ID"
,
required
=
true
)
@RequestParam
(
"roomId"
)
Long
roomId
,
@ApiParam
(
name
=
"roomId"
,
value
=
"房间ID"
,
required
=
true
)
@RequestParam
(
"roomId"
)
Long
roomId
,
@ApiParam
(
name
=
"day"
,
value
=
"下单选择的日期"
,
required
=
true
)
@RequestParam
(
"day"
)
Date
day
,
@ApiParam
(
name
=
"day"
,
value
=
"下单选择的日期"
,
required
=
true
)
@RequestParam
(
"day"
)
Date
day
,
@ApiParam
(
name
=
"orderType"
,
value
=
"订单类型 1:预约;2:续单,默认:1"
,
defaultValue
=
"1"
)
,
@ApiParam
(
name
=
"orderType"
,
value
=
"订单类型 1:预约;2:续单,默认:1"
,
defaultValue
=
"1"
)
@RequestParam
(
value
=
"orderType"
,
defaultValue
=
"1"
)
Integer
orderType
)
{
@RequestParam
(
value
=
"orderType"
,
defaultValue
=
"1"
)
Integer
orderType
,
Long
orderId
)
{
return
R
.
ok
(
roomStatusService
.
roomStatus
(
storeId
,
roomId
,
day
,
orderType
));
return
R
.
ok
(
roomStatusService
.
roomStatus
(
storeId
,
roomId
,
day
,
orderType
,
orderId
));
}
}
/**
/**
...
...
share-quartz/src/main/java/share/quartz/task/RedisTask.java
View file @
c713844a
...
@@ -352,7 +352,7 @@ public class RedisTask {
...
@@ -352,7 +352,7 @@ public class RedisTask {
//不等于
//不等于
!
item
.
getOrderNo
().
equals
(
sOrder
.
getOrderNo
())
&&
!
item
.
getOrderNo
().
equals
(
sOrder
.
getOrderNo
())
&&
item
.
getRoomId
().
equals
(
sOrder
.
getRoomId
())
&&
item
.
getRoomId
().
equals
(
sOrder
.
getRoomId
())
&&
item
.
getConsumerId
().
equals
(
sOrder
.
getConsumerId
())
&&
//
item.getConsumerId().equals(sOrder.getConsumerId()) &&
item
.
getOrderType
().
equals
(
OrderTypeEnum
.
RENEW
.
getCode
())
&&
item
.
getOrderType
().
equals
(
OrderTypeEnum
.
RENEW
.
getCode
())
&&
item
.
getStatus
().
equals
(
OrderStatusEnum
.
INUSE
.
getCode
())).
collect
(
Collectors
.
toList
());
item
.
getStatus
().
equals
(
OrderStatusEnum
.
INUSE
.
getCode
())).
collect
(
Collectors
.
toList
());
if
(!
CollectionUtils
.
isEmpty
(
sOrders1
))
{
if
(!
CollectionUtils
.
isEmpty
(
sOrders1
))
{
...
...
share-system/src/main/java/share/system/service/RoomStatusService.java
View file @
c713844a
...
@@ -19,13 +19,13 @@ public interface RoomStatusService {
...
@@ -19,13 +19,13 @@ public interface RoomStatusService {
* @param orderType
* @param orderType
* @return List<RoomStatusVo>
* @return List<RoomStatusVo>
*/
*/
List
<
RoomStatusVo
>
roomStatus
(
Long
storeId
,
Long
roomId
,
Date
day
,
Integer
orderType
);
List
<
RoomStatusVo
>
roomStatus
(
Long
storeId
,
Long
roomId
,
Date
day
,
Integer
orderType
,
Long
orderId
);
/**
/**
* 通过门店ID,房间ID,日期查询房间T+1天时段状态
* 通过门店ID,房间ID,日期查询房间T+1天时段状态
* @param storeId
* @param storeId
* @param room
Ids
* @param room
List
* @return List<RoomStatusVo>
* @return List<RoomStatusVo>
*/
*/
List
<
RoomStatusVo
>
listRoomStatus
(
Long
storeId
,
List
<
SRoom
>
roomList
);
List
<
RoomStatusVo
>
listRoomStatus
(
Long
storeId
,
List
<
SRoom
>
roomList
);
...
...
share-system/src/main/java/share/system/service/impl/RoomStatusServiceImpl.java
View file @
c713844a
...
@@ -49,7 +49,7 @@ public class RoomStatusServiceImpl implements RoomStatusService {
...
@@ -49,7 +49,7 @@ public class RoomStatusServiceImpl implements RoomStatusService {
private
RedisUtil
redisUtil
;
private
RedisUtil
redisUtil
;
@Override
@Override
public
List
<
RoomStatusVo
>
roomStatus
(
Long
storeId
,
Long
roomId
,
Date
day
,
Integer
orderType
)
{
public
List
<
RoomStatusVo
>
roomStatus
(
Long
storeId
,
Long
roomId
,
Date
day
,
Integer
orderType
,
Long
orderId
)
{
SConsumer
user
=
consumerService
.
getInfo
();
SConsumer
user
=
consumerService
.
getInfo
();
if
(
user
!=
null
){
if
(
user
!=
null
){
FrontTokenComponent
.
loginSConsumerEntryThreadLocal
.
set
(
user
);
FrontTokenComponent
.
loginSConsumerEntryThreadLocal
.
set
(
user
);
...
@@ -58,6 +58,10 @@ public class RoomStatusServiceImpl implements RoomStatusService {
...
@@ -58,6 +58,10 @@ public class RoomStatusServiceImpl implements RoomStatusService {
SStore
store
=
storeService
.
getById
(
storeId
);
SStore
store
=
storeService
.
getById
(
storeId
);
// 通过门店及房间查询指定日期T+1的订单
// 通过门店及房间查询指定日期T+1的订单
List
<
SOrder
>
orderList
=
orderService
.
listByRoomInfo
(
storeId
,
new
ArrayList
<
Long
>(){{
add
(
roomId
);}},
day
);
List
<
SOrder
>
orderList
=
orderService
.
listByRoomInfo
(
storeId
,
new
ArrayList
<
Long
>(){{
add
(
roomId
);}},
day
);
//去掉ID为orderId的订单
if
(
CollectionUtils
.
isNotEmpty
(
orderList
)
&&
Objects
.
nonNull
(
orderId
))
{
orderList
=
orderList
.
stream
().
filter
(
order
->
order
.
getId
().
compareTo
(
orderId
)
!=
0
).
collect
(
Collectors
.
toList
());
}
SCleanRecords
cleanRecords
=
cleanRecordsService
.
lastCleanByRoomId
(
roomId
);
SCleanRecords
cleanRecords
=
cleanRecordsService
.
lastCleanByRoomId
(
roomId
);
SRoom
room
=
roomService
.
getById
(
roomId
);
SRoom
room
=
roomService
.
getById
(
roomId
);
List
<
RoomStatusVo
>
voList
=
generatorRoomStatusList
(
store
,
room
,
orderList
,
cleanRecords
,
day
,
orderType
,
user
);
List
<
RoomStatusVo
>
voList
=
generatorRoomStatusList
(
store
,
room
,
orderList
,
cleanRecords
,
day
,
orderType
,
user
);
...
...
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