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
47c1c8b2
Commit
47c1c8b2
authored
Jan 30, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0元退款删除redis
parent
8e66d7e4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
SOrderController.java
...in/java/share/web/controller/system/SOrderController.java
+0
-2
OrderTask.java
share-quartz/src/main/java/share/quartz/task/OrderTask.java
+5
-0
SOrderServiceImpl.java
...ain/java/share/system/service/impl/SOrderServiceImpl.java
+2
-0
No files found.
share-front/src/main/java/share/web/controller/system/SOrderController.java
View file @
47c1c8b2
...
...
@@ -51,8 +51,6 @@ public class SOrderController extends BaseController
public
TableDataInfo
list
(
SOrder
sOrder
)
{
startPage
();
SConsumer
user
=
FrontTokenComponent
.
getWxSConsumerEntry
();
sOrder
.
setConsumerId
(
user
.
getId
());
List
<
SOrderVo
>
list
=
sOrderService
.
selectPayedSOrderVoList
(
sOrder
);
return
getDataTable
(
list
);
}
...
...
share-quartz/src/main/java/share/quartz/task/OrderTask.java
View file @
47c1c8b2
...
...
@@ -248,6 +248,11 @@ public class OrderTask {
logger
.
info
(
"订单号为:"
+
jsonObject
.
getStr
(
"orderNo"
)
+
"的订单不存在"
);
return
;
}
if
(
OrderStatusEnum
.
CANCEL
.
getCode
().
equals
(
byOrderNo
.
getStatus
()))
{
redisUtil
.
delete
(
o
);
logger
.
info
(
"订单号为:"
+
jsonObject
.
getStr
(
"orderNo"
)
+
"的订单已取消"
);
return
;
}
//时间到期前30分钟到29分
long
expire
=
(
expirationTime
.
getTime
()
-
new
Date
().
getTime
())
/
1000
;
if
(
expire
<
TEN_MINUTES
&&
expire
>
NINE_MINUTES
)
{
...
...
share-system/src/main/java/share/system/service/impl/SOrderServiceImpl.java
View file @
47c1c8b2
...
...
@@ -886,6 +886,8 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
throw
new
BaseException
(
"微信申请退款失败!"
);
}
}
else
{
// 删除redis 缓存信息,防止退款订单自动开始及给用户发送提示短信
redisUtil
.
delete
(
ReceiptRdeisEnum
.
ORDER_NO
.
getValue
()
+
sOrder
.
getOrderNo
());
//修改订单退款状态,退款成功
sOrder
.
setStatus
(
OrderStatusEnum
.
CANCEL
.
getCode
());
sOrder
.
setRefundStatus
(
RefundStatusEnum
.
REFUNDED
.
getCode
());
...
...
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