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
fc76bb6d
Commit
fc76bb6d
authored
Nov 17, 2023
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增消费记录
parent
38018771
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
SConsumptionRecords.java
...rc/main/java/share/system/domain/SConsumptionRecords.java
+4
-2
SOrderServiceImpl.java
...ain/java/share/system/service/impl/SOrderServiceImpl.java
+11
-0
No files found.
share-system/src/main/java/share/system/domain/SConsumptionRecords.java
View file @
fc76bb6d
...
...
@@ -22,14 +22,16 @@ public class SConsumptionRecords extends BaseEntity
/** 会员用户ID */
private
Long
consumerId
;
/** 会员用户ID */
/**
* 订单ID
*/
private
Long
orderId
;
/** 名称 */
private
String
name
;
/** 满减最小可使用金额 */
@Excel
(
name
=
"
满减最小可使用
金额"
)
@Excel
(
name
=
"
实付
金额"
)
private
BigDecimal
price
;
public
void
setId
(
Long
id
)
...
...
share-system/src/main/java/share/system/service/impl/SOrderServiceImpl.java
View file @
fc76bb6d
...
...
@@ -78,11 +78,16 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
@Autowired
private
DeviceOpService
deviceOpService
;
@Autowired
private
QPService
qpService
;
@Autowired
private
RedisUtil
redisUtils
;
@Autowired
private
ISConsumptionRecordsService
sConsumptionRecordsService
;
/**
* 查询订单
*
...
...
@@ -496,6 +501,12 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
consumerCouponService
.
updateById
(
consumerCoupon
);
}
}
SConsumptionRecords
sConsumptionRecords
=
new
SConsumptionRecords
();
sConsumptionRecords
.
setConsumerId
(
sOrder
.
getConsumerId
());
sConsumptionRecords
.
setOrderId
(
sOrder
.
getId
());
sConsumptionRecords
.
setName
(
sOrder
.
getPackName
());
sConsumptionRecords
.
setPrice
(
sOrder
.
getPayPrice
());
sConsumptionRecordsService
.
insertSConsumptionRecords
(
sConsumptionRecords
);
}
@Override
...
...
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