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
8877557e
Commit
8877557e
authored
Nov 28, 2023
by
YG8999
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/main'
parents
f44e14a4
330143dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
RedisTask.java
share-quartz/src/main/java/share/quartz/task/RedisTask.java
+16
-0
No files found.
share-quartz/src/main/java/share/quartz/task/RedisTask.java
View file @
8877557e
...
@@ -185,6 +185,22 @@ public class RedisTask {
...
@@ -185,6 +185,22 @@ public class RedisTask {
if
(
ObjectUtils
.
isEmpty
(
device1
))
{
if
(
ObjectUtils
.
isEmpty
(
device1
))
{
throw
new
BaseException
(
"设备不存在!"
);
throw
new
BaseException
(
"设备不存在!"
);
}
}
SOrder
order
=
new
SOrder
();
order
.
setStoreId
(
sOrder
.
getStoreId
());
order
.
setRoomId
(
sOrder
.
getRoomId
());
order
.
setConsumerId
(
sOrder
.
getConsumerId
());
order
.
setOrderType
(
OrderTypeEnum
.
RENEW
.
getCode
());
order
.
setStatus
(
OrderStatusEnum
.
UNUSED
.
getCode
());
//查询当前订单下是否存在未使用的续费订单
List
<
SOrder
>
sOrders
=
isOrderService
.
selectSOrderList
(
order
);
if
(!
CollectionUtils
.
isEmpty
(
sOrders
))
{
//删除当前的订单
redisUtil
.
delete
(
o
);
//更改订单状态
sOrder
.
setStatus
(
OrderStatusEnum
.
USED
.
getCode
());
isOrderService
.
updateById
(
sOrder
);
return
;
}
mqttxService
.
actionExecute
(
device
.
getDevId
(),
sOrder
.
getConsumerPhone
(),
value
,
mqttxService
.
actionExecute
(
device
.
getDevId
(),
sOrder
.
getConsumerPhone
(),
value
,
DateUtil
.
format
(
new
Date
(),
DatePattern
.
NORM_DATETIME_PATTERN
),
DateUtil
.
format
(
new
Date
(),
DatePattern
.
NORM_DATETIME_PATTERN
),
DateUtil
.
format
(
DateUtil
.
offsetMinute
(
new
Date
(),
1
),
DatePattern
.
NORM_DATETIME_PATTERN
),
"1"
);
DateUtil
.
format
(
DateUtil
.
offsetMinute
(
new
Date
(),
1
),
DatePattern
.
NORM_DATETIME_PATTERN
),
"1"
);
...
...
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