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
5d12a19d
Commit
5d12a19d
authored
Nov 29, 2023
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
语音提醒更改接口
parent
8877557e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
20 deletions
+3
-20
RedisTask.java
share-quartz/src/main/java/share/quartz/task/RedisTask.java
+3
-20
No files found.
share-quartz/src/main/java/share/quartz/task/RedisTask.java
View file @
5d12a19d
...
...
@@ -46,10 +46,7 @@ public class RedisTask {
private
ISRoomService
roomService
;
@Autowired
private
MqttxService
mqttxService
;
@Autowired
private
DeviceService
deviceService
;
private
DeviceOpService
deviceOpService
;
public
void
AuToReceiptCode
()
{
...
...
@@ -153,14 +150,7 @@ public class RedisTask {
if
(
b
)
{
//删除redis中的值
redisUtil
.
delete
(
o
);
Device
device
=
new
Device
();
device
.
setRoomId
(
sOrder
.
getRoomId
());
device
.
setDevType
(
DeviceType
.
DEVICE_0001
.
getCode
());
Device
device1
=
deviceService
.
selectDeviceList
(
device
).
get
(
0
);
if
(
ObjectUtils
.
isEmpty
(
device1
))
{
throw
new
BaseException
(
"设备不存在!"
);
}
mqttxService
.
actionExecute
(
device
.
getDevId
(),
sOrder
.
getConsumerPhone
(),
VoiceEnum
.
SEND_CUSTOMER
.
getValue
(),
deviceOpService
.
actionExecute
(
sOrder
.
getRoomId
(),
sOrder
.
getConsumerPhone
(),
VoiceEnum
.
SEND_CUSTOMER
.
getValue
(),
DateUtil
.
format
(
new
Date
(),
DatePattern
.
NORM_DATETIME_PATTERN
),
DateUtil
.
format
(
DateUtil
.
offsetMinute
(
new
Date
(),
1
),
DatePattern
.
NORM_DATETIME_PATTERN
),
"1"
);
...
...
@@ -178,13 +168,6 @@ public class RedisTask {
redisUtil
.
delete
(
o
);
throw
new
BaseException
(
"订单不存在!"
);
}
Device
device
=
new
Device
();
device
.
setRoomId
(
sOrder
.
getRoomId
());
device
.
setDevType
(
DeviceType
.
DEVICE_0001
.
getCode
());
Device
device1
=
deviceService
.
selectDeviceList
(
device
).
get
(
0
);
if
(
ObjectUtils
.
isEmpty
(
device1
))
{
throw
new
BaseException
(
"设备不存在!"
);
}
SOrder
order
=
new
SOrder
();
order
.
setStoreId
(
sOrder
.
getStoreId
());
order
.
setRoomId
(
sOrder
.
getRoomId
());
...
...
@@ -201,7 +184,7 @@ public class RedisTask {
isOrderService
.
updateById
(
sOrder
);
return
;
}
mqttxService
.
actionExecute
(
device
.
getDev
Id
(),
sOrder
.
getConsumerPhone
(),
value
,
deviceOpService
.
actionExecute
(
sOrder
.
getRoom
Id
(),
sOrder
.
getConsumerPhone
(),
value
,
DateUtil
.
format
(
new
Date
(),
DatePattern
.
NORM_DATETIME_PATTERN
),
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