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
a6f06a02
Commit
a6f06a02
authored
Mar 05, 2024
by
YG8999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
使用中订单退款,延时3分钟断电
parent
730b9538
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
SOrderServiceImpl.java
...ain/java/share/system/service/impl/SOrderServiceImpl.java
+8
-0
No files found.
share-system/src/main/java/share/system/service/impl/SOrderServiceImpl.java
View file @
a6f06a02
...
...
@@ -370,6 +370,9 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
// if (request.getAmount().compareTo(BigDecimal.ZERO) <= 0) {
// throw new BaseException("退款金额不能为0,请修改退款金额");
// }
// 当前订单状态
Integer
status
=
sOrder
.
getStatus
();
// 退款记录
OrderRefundArtificial
artificial
=
new
OrderRefundArtificial
();
artificial
.
setIsRefundCoupon
(
request
.
getRefundCoupon
());
artificial
.
setIsClean
(
request
.
getIsClean
());
...
...
@@ -420,6 +423,11 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
sOrder
.
setRefundReason
(
request
.
getRefundReason
());
this
.
updateById
(
sOrder
);
}
if
(
OrderStatusEnum
.
USED
.
getCode
().
equals
(
status
))
{
// 使用中订单断电, 延时3分钟断电
deviceOpService
.
openOrCloseDevice
(
sOrder
.
getRoomId
(),
sOrder
.
getConsumerPhone
(),
OpTypeEnum
.
CUT_ELECTRIC
.
getCode
(),
true
,
180
);
}
// 生成退款人工退款记录
return
orderRefundArtificialService
.
insertOrderRefundArtificial
(
artificial
);
}
...
...
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