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
ec9e3771
Commit
ec9e3771
authored
Jan 19, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into test
parents
043fa3bf
b3488624
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
Constants.java
...common/src/main/java/share/common/constant/Constants.java
+2
-0
OrderTask.java
share-quartz/src/main/java/share/quartz/task/OrderTask.java
+3
-4
SOrderServiceImpl.java
...ain/java/share/system/service/impl/SOrderServiceImpl.java
+0
-0
No files found.
share-common/src/main/java/share/common/constant/Constants.java
View file @
ec9e3771
...
...
@@ -24,6 +24,8 @@ public class Constants
public
static
final
String
CONFIG_KEY_API_URL
=
"https://www.coujio.com"
;
//admin接口地址
// 订单取消Key
public
static
final
String
ORDER_AUTO_CANCEL_KEY
=
"order_auto_cancel_key"
;
// 订单锁定Key
public
static
final
String
ORDER_LOCK_KEY
=
"order_lock_key"
;
//测试环境,经测试需要,手机验证码测试环境可以不需要就能登录,value为1,则不验证验证码
public
static
final
String
PHONE_TEST_KEY
=
"phone_test_key"
;
//通过uuid缓存的key 查找对应的 token数据 WX_TOKEN_USER:TOKEN
...
...
share-quartz/src/main/java/share/quartz/task/OrderTask.java
View file @
ec9e3771
...
...
@@ -127,12 +127,10 @@ public class OrderTask {
String
cancelStr
;
DateTime
cancelTime
;
cancelStr
=
sysConfigService
.
selectConfigByKey
(
"order_cancel_time"
);
if
(
StrUtil
.
isBlank
(
cancelStr
))
{
cancelStr
=
"
1
"
;
cancelStr
=
"
5
"
;
}
cancelTime
=
cn
.
hutool
.
core
.
date
.
DateUtil
.
offset
(
sOrder
.
getCreateTime
(),
DateField
.
HOUR_OF_DAY
,
Integer
.
parseInt
(
cancelStr
));
cancelTime
=
cn
.
hutool
.
core
.
date
.
DateUtil
.
offset
(
sOrder
.
getCreateTime
(),
DateField
.
MINUTE
,
Integer
.
parseInt
(
cancelStr
));
long
between
=
cn
.
hutool
.
core
.
date
.
DateUtil
.
between
(
cancelTime
,
cn
.
hutool
.
core
.
date
.
DateUtil
.
date
(),
DateUnit
.
SECOND
,
false
);
if
(
between
<
0
)
{
// 未到过期时间继续循环
return
Boolean
.
FALSE
;
...
...
@@ -147,6 +145,7 @@ public class OrderTask {
couponUser
.
setUseStatus
(
CouponStatusEnum
.
NORMAL
.
getValue
());
consumerCouponService
.
updateById
(
couponUser
);
}
logger
.
info
(
String
.
format
(
"删除订单,订单号【%s】"
,
sOrder
.
getOrderNo
()));
return
Boolean
.
TRUE
;
});
return
execute
;
...
...
share-system/src/main/java/share/system/service/impl/SOrderServiceImpl.java
View file @
ec9e3771
This diff is collapsed.
Click to expand it.
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