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
1148ac34
Commit
1148ac34
authored
Jun 12, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
取消支付修改为30秒
parent
83cf0049
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Constants.java
...common/src/main/java/share/common/constant/Constants.java
+1
-1
SOrderServiceImpl.java
...ain/java/share/system/service/impl/SOrderServiceImpl.java
+3
-3
No files found.
share-common/src/main/java/share/common/constant/Constants.java
View file @
1148ac34
...
@@ -27,7 +27,7 @@ public class Constants
...
@@ -27,7 +27,7 @@ public class Constants
// 订单锁定Key
// 订单锁定Key
public
static
final
String
ORDER_LOCK_KEY
=
"order_lock_key"
;
public
static
final
String
ORDER_LOCK_KEY
=
"order_lock_key"
;
//订单锁定
//订单锁定
public
static
final
String
ORDER_LOCK_KEY_PREFIX
=
"order_lock_key_prefix
:
"
;
public
static
final
String
ORDER_LOCK_KEY_PREFIX
=
"order_lock_key_prefix
.
"
;
//测试环境,经测试需要,手机验证码测试环境可以不需要就能登录,value为1,则不验证验证码
//测试环境,经测试需要,手机验证码测试环境可以不需要就能登录,value为1,则不验证验证码
public
static
final
String
PHONE_TEST_KEY
=
"phone_test_key"
;
public
static
final
String
PHONE_TEST_KEY
=
"phone_test_key"
;
//通过uuid缓存的key 查找对应的 token数据 WX_TOKEN_USER:TOKEN
//通过uuid缓存的key 查找对应的 token数据 WX_TOKEN_USER:TOKEN
...
...
share-system/src/main/java/share/system/service/impl/SOrderServiceImpl.java
View file @
1148ac34
...
@@ -780,7 +780,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
...
@@ -780,7 +780,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
if
(
CollectionUtils
.
isNotEmpty
(
roomIds
))
{
if
(
CollectionUtils
.
isNotEmpty
(
roomIds
))
{
queryWrapper
.
in
(
SOrder:
:
getRoomId
,
roomIds
);
queryWrapper
.
in
(
SOrder:
:
getRoomId
,
roomIds
);
}
}
queryWrapper
.
eq
(
SOrder:
:
getPayStatus
,
YesNoEnum
.
yes
.
getIndex
());
//
queryWrapper.eq(SOrder::getPayStatus, YesNoEnum.yes.getIndex());
queryWrapper
.
notIn
(
SOrder:
:
getRefundStatus
,
RefundStatusEnum
.
getRefundedStatus
());
queryWrapper
.
notIn
(
SOrder:
:
getRefundStatus
,
RefundStatusEnum
.
getRefundedStatus
());
queryWrapper
.
in
(
SOrder:
:
getStatus
,
OrderStatusEnum
.
getValidOrderStatus
());
queryWrapper
.
in
(
SOrder:
:
getStatus
,
OrderStatusEnum
.
getValidOrderStatus
());
queryWrapper
.
eq
(
SOrder:
:
getIsDelete
,
YesNoEnum
.
no
.
getIndex
());
queryWrapper
.
eq
(
SOrder:
:
getIsDelete
,
YesNoEnum
.
no
.
getIndex
());
...
@@ -1047,7 +1047,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
...
@@ -1047,7 +1047,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
LambdaQueryWrapper
<
SOrder
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
SOrder
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
queryWrapper
.
notIn
(
SOrder:
:
getRefundStatus
,
RefundStatusEnum
.
getRefundedStatus
());
queryWrapper
.
notIn
(
SOrder:
:
getRefundStatus
,
RefundStatusEnum
.
getRefundedStatus
());
queryWrapper
.
in
(
SOrder:
:
getStatus
,
OrderStatusEnum
.
getValidOrderStatus
());
queryWrapper
.
in
(
SOrder:
:
getStatus
,
OrderStatusEnum
.
getValidOrderStatus
());
queryWrapper
.
eq
(
SOrder:
:
getPayStatus
,
YesNoEnum
.
yes
.
getIndex
());
//
queryWrapper.eq(SOrder::getPayStatus, YesNoEnum.yes.getIndex());
queryWrapper
.
eq
(
SOrder:
:
getIsDelete
,
YesNoEnum
.
no
.
getIndex
());
queryWrapper
.
eq
(
SOrder:
:
getIsDelete
,
YesNoEnum
.
no
.
getIndex
());
queryWrapper
.
eq
(
SOrder:
:
getStoreId
,
request
.
getStoreId
());
queryWrapper
.
eq
(
SOrder:
:
getStoreId
,
request
.
getStoreId
());
queryWrapper
.
eq
(
SOrder:
:
getRoomId
,
request
.
getRoomId
());
queryWrapper
.
eq
(
SOrder:
:
getRoomId
,
request
.
getRoomId
());
...
@@ -1341,7 +1341,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
...
@@ -1341,7 +1341,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
public
boolean
cancelPay
(
String
orderNo
)
{
public
boolean
cancelPay
(
String
orderNo
)
{
Map
<
String
,
String
>
map
=
new
HashMap
<>();
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"orderNo"
,
orderNo
);
map
.
put
(
"orderNo"
,
orderNo
);
Date
date
=
DateUtils
.
add
Minutes
(
new
Date
(),
5
);
Date
date
=
DateUtils
.
add
Seconds
(
new
Date
(),
30
);
map
.
put
(
"expirationTime"
,
date
.
toString
());
map
.
put
(
"expirationTime"
,
date
.
toString
());
JSONObject
jsonObject
=
new
JSONObject
(
map
);
JSONObject
jsonObject
=
new
JSONObject
(
map
);
redisUtil
.
set
(
ReceiptRdeisEnum
.
ORDER_CANCEL_PAY
.
getValue
()
+
orderNo
,
jsonObject
.
toString
());
redisUtil
.
set
(
ReceiptRdeisEnum
.
ORDER_CANCEL_PAY
.
getValue
()
+
orderNo
,
jsonObject
.
toString
());
...
...
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