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
da43ca7d
Commit
da43ca7d
authored
Oct 26, 2023
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
order status opt;
parent
397361d5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
3 deletions
+12
-3
OrderStatusEnum.java
...mon/src/main/java/share/common/enums/OrderStatusEnum.java
+5
-1
OrderTask.java
share-quartz/src/main/java/share/quartz/task/OrderTask.java
+2
-0
SOrder.java
share-system/src/main/java/share/system/domain/SOrder.java
+2
-2
CallbackServiceImpl.java
...n/java/share/system/service/impl/CallbackServiceImpl.java
+2
-0
SOrderServiceImpl.java
...ain/java/share/system/service/impl/SOrderServiceImpl.java
+1
-0
No files found.
share-common/src/main/java/share/common/enums/OrderStatusEnum.java
View file @
da43ca7d
...
@@ -7,7 +7,11 @@ package share.common.enums;
...
@@ -7,7 +7,11 @@ package share.common.enums;
public
enum
OrderStatusEnum
{
public
enum
OrderStatusEnum
{
UNUSED
(
0
,
"待使用/已预约"
),
UNUSED
(
0
,
"待使用/已预约"
),
INUSE
(
1
,
"使用中"
),
INUSE
(
1
,
"使用中"
),
USED
(
2
,
"已使用"
);
USED
(
2
,
"已使用"
),
CANCEL
(
3
,
"已取消"
),
AUDIT
(
4
,
"审核中"
),
REFUNDED
(
5
,
"已退款"
);
private
Integer
code
;
private
Integer
code
;
private
String
name
;
private
String
name
;
...
...
share-quartz/src/main/java/share/quartz/task/OrderTask.java
View file @
da43ca7d
...
@@ -13,6 +13,7 @@ import org.springframework.transaction.support.TransactionTemplate;
...
@@ -13,6 +13,7 @@ import org.springframework.transaction.support.TransactionTemplate;
import
share.common.constant.Constants
;
import
share.common.constant.Constants
;
import
share.common.core.redis.RedisUtil
;
import
share.common.core.redis.RedisUtil
;
import
share.common.enums.CouponStatusEnum
;
import
share.common.enums.CouponStatusEnum
;
import
share.common.enums.OrderStatusEnum
;
import
share.common.enums.RefundStatusEnum
;
import
share.common.enums.RefundStatusEnum
;
import
share.common.enums.YesNoEnum
;
import
share.common.enums.YesNoEnum
;
import
share.common.exception.base.BaseException
;
import
share.common.exception.base.BaseException
;
...
@@ -171,6 +172,7 @@ public class OrderTask {
...
@@ -171,6 +172,7 @@ public class OrderTask {
SOrder
tempOrder
=
new
SOrder
();
SOrder
tempOrder
=
new
SOrder
();
tempOrder
.
setId
(
sOrder
.
getId
());
tempOrder
.
setId
(
sOrder
.
getId
());
tempOrder
.
setStatus
(
OrderStatusEnum
.
REFUNDED
.
getCode
());
tempOrder
.
setRefundStatus
(
RefundStatusEnum
.
REFUNDED
.
getCode
());
tempOrder
.
setRefundStatus
(
RefundStatusEnum
.
REFUNDED
.
getCode
());
Boolean
execute
=
Boolean
.
FALSE
;
Boolean
execute
=
Boolean
.
FALSE
;
...
...
share-system/src/main/java/share/system/domain/SOrder.java
View file @
da43ca7d
...
@@ -109,8 +109,8 @@ public class SOrder extends BaseEntity
...
@@ -109,8 +109,8 @@ public class SOrder extends BaseEntity
@Excel
(
name
=
"结束时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd HH:mm"
)
@Excel
(
name
=
"结束时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd HH:mm"
)
private
Date
endDate
;
private
Date
endDate
;
/** 订单状态(0:待使用/已预约,1:使用中,2:已使用) */
/** 订单状态(0:待使用/已预约,1:使用中,2:已使用
,3:已取消预约/退款中,4:审核中,5:已退费
) */
@Excel
(
name
=
"订单状态(0:待使用/已预约,1:使用中,2:已使用)"
)
@Excel
(
name
=
"订单状态(0:待使用/已预约,1:使用中,2:已使用
,3:已取消预约/退款中,4:审核中,5:已退费
)"
)
private
Integer
status
;
private
Integer
status
;
@ApiModelProperty
(
value
=
"0 未退款 1 申请中 2 退款中 3 已退款 4 拒绝退款"
)
@ApiModelProperty
(
value
=
"0 未退款 1 申请中 2 退款中 3 已退款 4 拒绝退款"
)
...
...
share-system/src/main/java/share/system/service/impl/CallbackServiceImpl.java
View file @
da43ca7d
...
@@ -13,6 +13,7 @@ import org.springframework.stereotype.Service;
...
@@ -13,6 +13,7 @@ import org.springframework.stereotype.Service;
import
share.common.config.WeChatConfig
;
import
share.common.config.WeChatConfig
;
import
share.common.constant.Constants
;
import
share.common.constant.Constants
;
import
share.common.core.redis.RedisUtil
;
import
share.common.core.redis.RedisUtil
;
import
share.common.enums.OrderStatusEnum
;
import
share.common.enums.OrderTypeEnum
;
import
share.common.enums.OrderTypeEnum
;
import
share.common.enums.RefundStatusEnum
;
import
share.common.enums.RefundStatusEnum
;
import
share.common.enums.YesNoEnum
;
import
share.common.enums.YesNoEnum
;
...
@@ -234,6 +235,7 @@ public class CallbackServiceImpl implements CallbackService {
...
@@ -234,6 +235,7 @@ public class CallbackServiceImpl implements CallbackService {
logger
.
warn
(
"微信退款订单已确认成功==>"
+
refundRecord
.
getColumns
()
+
", rawData==>"
+
xmlInfo
+
", data==>"
+
notifyRecord
);
logger
.
warn
(
"微信退款订单已确认成功==>"
+
refundRecord
.
getColumns
()
+
", rawData==>"
+
xmlInfo
+
", data==>"
+
notifyRecord
);
return
refundRecord
.
getStr
(
"returnXml"
);
return
refundRecord
.
getStr
(
"returnXml"
);
}
}
sOrder
.
setStatus
(
OrderStatusEnum
.
AUDIT
.
getCode
());
sOrder
.
setRefundStatus
(
RefundStatusEnum
.
INREFUND
.
getCode
());
sOrder
.
setRefundStatus
(
RefundStatusEnum
.
INREFUND
.
getCode
());
boolean
update
=
sOrderService
.
updateById
(
sOrder
);
boolean
update
=
sOrderService
.
updateById
(
sOrder
);
if
(
update
)
{
if
(
update
)
{
...
...
share-system/src/main/java/share/system/service/impl/SOrderServiceImpl.java
View file @
da43ca7d
...
@@ -312,6 +312,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper,SOrder> implemen
...
@@ -312,6 +312,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper,SOrder> implemen
}
}
}
}
//修改订单退款状态,为退款中
//修改订单退款状态,为退款中
sOrder
.
setStatus
(
OrderStatusEnum
.
AUDIT
.
getCode
());
sOrder
.
setRefundStatus
(
RefundStatusEnum
.
INREFUND
.
getCode
());
sOrder
.
setRefundStatus
(
RefundStatusEnum
.
INREFUND
.
getCode
());
sOrder
.
setRefundPrice
(
request
.
getAmount
());
sOrder
.
setRefundPrice
(
request
.
getAmount
());
break
;
break
;
...
...
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