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
c3a6699e
Commit
c3a6699e
authored
Sep 06, 2021
by
胡敬轩
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'remotes/origin/feature/20210828-华莱士新算价互斥同享改版' into qa
parents
f1b05622
7a5624dc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
shopping-cart-application-service/src/main/java/cn/freemud/adapter/ActivityAdapter.java
+2
-0
shopping-cart-application-service/src/main/java/cn/freemud/entities/dto/calculate/ActivityCalculationDiscountResponseDto.java
+3
-0
shopping-cart-application-service/src/main/java/cn/freemud/entities/vo/coupon/CartProduct.java
+4
-0
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/adapter/ActivityAdapter.java
View file @
c3a6699e
...
@@ -258,6 +258,7 @@ public class ActivityAdapter {
...
@@ -258,6 +258,7 @@ public class ActivityAdapter {
CartProduct
cartProduct
=
new
CartProduct
();
CartProduct
cartProduct
=
new
CartProduct
();
cartProduct
.
setProductId
(
discountGood
.
getGoodsId
());
cartProduct
.
setProductId
(
discountGood
.
getGoodsId
());
cartProduct
.
setQuantity
(
discountGood
.
getGoodsQuantity
());
cartProduct
.
setQuantity
(
discountGood
.
getGoodsQuantity
());
cartProduct
.
setOriginalPrice
(
discountGood
.
getOriginalPrice
());
Long
mealDiscountAmount
=
0L
;
//套餐优惠不算在内
Long
mealDiscountAmount
=
0L
;
//套餐优惠不算在内
if
(
CollectionUtils
.
isNotEmpty
(
discountGood
.
getDiscounts
())){
if
(
CollectionUtils
.
isNotEmpty
(
discountGood
.
getDiscounts
())){
...
@@ -408,6 +409,7 @@ public class ActivityAdapter {
...
@@ -408,6 +409,7 @@ public class ActivityAdapter {
}
}
CartProduct
.
Discount
cartProductDiscount
=
new
CartProduct
.
Discount
();
CartProduct
.
Discount
cartProductDiscount
=
new
CartProduct
.
Discount
();
BeanUtils
.
copyProperties
(
discount
,
cartProductDiscount
);
BeanUtils
.
copyProperties
(
discount
,
cartProductDiscount
);
cartProductDiscount
.
setActualGoodsNumber
(
discount
.
getAddOnQuantity
());
//是否与代金券互斥
//是否与代金券互斥
boolean
cashExclusive
=
Objects
.
equals
(
cashExclusiveMap
.
get
(
discount
.
getType
()),
YesOrNoEnum
.
NO
.
getCode
());
boolean
cashExclusive
=
Objects
.
equals
(
cashExclusiveMap
.
get
(
discount
.
getType
()),
YesOrNoEnum
.
NO
.
getCode
());
...
...
shopping-cart-application-service/src/main/java/cn/freemud/entities/dto/calculate/ActivityCalculationDiscountResponseDto.java
View file @
c3a6699e
...
@@ -362,6 +362,9 @@ public class ActivityCalculationDiscountResponseDto {
...
@@ -362,6 +362,9 @@ public class ActivityCalculationDiscountResponseDto {
* 优惠现单价
* 优惠现单价
*/
*/
private
Long
signleDiscount
;
private
Long
signleDiscount
;
//活动覆盖商品数量,比如第二件实际优惠一件,但是两件商品都算活动叠加数量
private
Integer
addOnQuantity
=
0
;
}
}
/**
/**
...
...
shopping-cart-application-service/src/main/java/cn/freemud/entities/vo/coupon/CartProduct.java
View file @
c3a6699e
...
@@ -21,6 +21,10 @@ public class CartProduct {
...
@@ -21,6 +21,10 @@ public class CartProduct {
*/
*/
private
String
productId
;
private
String
productId
;
/**
/**
* 商品原价(分)
*/
private
Long
originalPrice
;
/**
* 总原价金额(包括主商品+可选搭配+加料商品)
* 总原价金额(包括主商品+可选搭配+加料商品)
*/
*/
private
Long
originalTotalAmount
;
private
Long
originalTotalAmount
;
...
...
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