Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
8f402ca8
Commit
8f402ca8
authored
Aug 05, 2021
by
ping.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
算价接口增加spuId字段,促销需要
parent
049338ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
order-application-service/src/main/java/cn/freemud/entities/dto/promotion/CalculationDiscountGoodsDto.java
+3
-0
order-application-service/src/main/java/cn/freemud/service/impl/SellCouponOrderServiceImpl.java
+1
-0
No files found.
order-application-service/src/main/java/cn/freemud/entities/dto/promotion/CalculationDiscountGoodsDto.java
View file @
8f402ca8
...
@@ -15,6 +15,9 @@ public class CalculationDiscountGoodsDto {
...
@@ -15,6 +15,9 @@ public class CalculationDiscountGoodsDto {
@NotNull
(
message
=
"不可为空"
)
@NotNull
(
message
=
"不可为空"
)
private
String
goodsId
;
private
String
goodsId
;
private
String
spuId
;
/**
/**
* 商品数量
* 商品数量
*/
*/
...
...
order-application-service/src/main/java/cn/freemud/service/impl/SellCouponOrderServiceImpl.java
View file @
8f402ca8
...
@@ -870,6 +870,7 @@ public class SellCouponOrderServiceImpl {
...
@@ -870,6 +870,7 @@ public class SellCouponOrderServiceImpl {
List
<
CalculationDiscountGoodsDto
>
discountGoodsDtoList
=
new
ArrayList
<>();
List
<
CalculationDiscountGoodsDto
>
discountGoodsDtoList
=
new
ArrayList
<>();
CalculationDiscountGoodsDto
discountGoodsDto
=
new
CalculationDiscountGoodsDto
();
CalculationDiscountGoodsDto
discountGoodsDto
=
new
CalculationDiscountGoodsDto
();
discountGoodsDto
.
setGoodsId
(
products
.
getPid
());
discountGoodsDto
.
setGoodsId
(
products
.
getPid
());
discountGoodsDto
.
setSpuId
(
products
.
getPid
());
discountGoodsDto
.
setGoodsQuantity
(
1
);
discountGoodsDto
.
setGoodsQuantity
(
1
);
discountGoodsDto
.
setOriginalPrice
(
products
.
getFinalPrice
().
intValue
());
discountGoodsDto
.
setOriginalPrice
(
products
.
getFinalPrice
().
intValue
());
discountGoodsDtoList
.
add
(
discountGoodsDto
);
discountGoodsDtoList
.
add
(
discountGoodsDto
);
...
...
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