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
f7135dbd
Commit
f7135dbd
authored
Dec 28, 2023
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退款更改房间状态
parent
feb38f65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
OrderRefundServiceImpl.java
...ava/share/system/service/impl/OrderRefundServiceImpl.java
+8
-0
No files found.
share-system/src/main/java/share/system/service/impl/OrderRefundServiceImpl.java
View file @
f7135dbd
...
...
@@ -17,6 +17,7 @@ import share.common.utils.DateUtil;
import
share.common.utils.http.RestTemplateUtil
;
import
share.system.domain.SConsumptionRecords
;
import
share.system.domain.SOrder
;
import
share.system.domain.SRoom
;
import
share.system.domain.WechatPayInfo
;
import
share.system.domain.vo.SaobeiRefundVo
;
import
share.system.domain.vo.WxRefundVo
;
...
...
@@ -50,6 +51,8 @@ public class OrderRefundServiceImpl extends ServiceImpl<SOrderMapper, SOrder> im
private
ISOrderService
sOrderService
;
@Autowired
private
ISConsumptionRecordsService
sConsumptionRecordsService
;
@Autowired
private
ISRoomService
roomService
;
/**
* 退款 需要优化
...
...
@@ -121,6 +124,11 @@ public class OrderRefundServiceImpl extends ServiceImpl<SOrderMapper, SOrder> im
order
.
setRefundPrice
(
request
.
getAmount
());
order
.
setRefundReason
(
request
.
getRefundReason
());
boolean
update
=
sOrderService
.
updateById
(
order
);
//更改房间状态
SRoom
sRoom
=
new
SRoom
();
sRoom
.
setId
(
order
.
getRoomId
());
sRoom
.
setStatus
(
RoomStatusEnum
.
FREE
.
getValue
());
roomService
.
updateById
(
sRoom
);
SConsumptionRecords
sConsumptionRecords
=
new
SConsumptionRecords
();
sConsumptionRecords
.
setConsumerId
(
order
.
getConsumerId
());
...
...
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