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
644ab3c1
Commit
644ab3c1
authored
May 26, 2021
by
chongfu.liang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
满赠问题fix
parent
86698c7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
shopping-cart-application-service/src/main/java/cn/freemud/demo/service/impl/DistributeServiceImpl.java
+3
-1
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/demo/service/impl/DistributeServiceImpl.java
View file @
644ab3c1
...
@@ -51,6 +51,7 @@ public class DistributeServiceImpl implements DistributeService {
...
@@ -51,6 +51,7 @@ public class DistributeServiceImpl implements DistributeService {
long
totalOriginalAmount
=
0L
,
totalAmount
=
0L
,
totalPackageAmount
=
0L
;
long
totalOriginalAmount
=
0L
,
totalAmount
=
0L
,
totalPackageAmount
=
0L
;
long
originalAmount
=
0L
,
amount
=
0L
,
packageAmount
=
0L
;
long
originalAmount
=
0L
,
amount
=
0L
,
packageAmount
=
0L
;
for
(
CartGoods
cartGoods
:
cartGoodsList
)
{
for
(
CartGoods
cartGoods
:
cartGoodsList
)
{
originalAmount
=
0L
;
amount
=
0L
;
packageAmount
=
0L
;
originalAmount
=
0L
;
amount
=
0L
;
packageAmount
=
0L
;
if
(
CommonUtils
.
isProductCoupon
(
cartGoods
.
getCouponCode
(),
cartGoods
.
getCartGoodsUid
())){
if
(
CommonUtils
.
isProductCoupon
(
cartGoods
.
getCouponCode
(),
cartGoods
.
getCartGoodsUid
())){
Map
<
String
,
CheckSpqInfoResponseDto
>
validCouponMap
=
discountResult
.
getValidCouponMap
();
Map
<
String
,
CheckSpqInfoResponseDto
>
validCouponMap
=
discountResult
.
getValidCouponMap
();
...
@@ -384,7 +385,8 @@ public class DistributeServiceImpl implements DistributeService {
...
@@ -384,7 +385,8 @@ public class DistributeServiceImpl implements DistributeService {
CalculationDiscountBO
.
CalculationDiscountResult
.
Goods
goods
=
discountForGift
.
get
(
k
);
CalculationDiscountBO
.
CalculationDiscountResult
.
Goods
goods
=
discountForGift
.
get
(
k
);
CalculationDiscountBO
.
CalculationDiscountResult
.
Goods
.
GoodsDiscount
discount
=
goods
.
getDiscounts
()
CalculationDiscountBO
.
CalculationDiscountResult
.
Goods
.
GoodsDiscount
discount
=
goods
.
getDiscounts
()
.
stream
()
.
stream
()
.
filter
(
g
->
ActivityTypeEnum
.
TYPE_63
.
getCode
().
equals
(
g
.
getType
())
||
ActivityTypeEnum
.
TYPE_62
.
getCode
().
equals
(
g
.
getType
())
||
ActivityTypeEnum
.
TYPE_61
.
getCode
().
equals
(
g
.
getType
()))
.
filter
(
g
->
ActivityTypeEnum
.
TYPE_63
.
getCode
().
equals
(
g
.
getType
())
||
ActivityTypeEnum
.
TYPE_62
.
getCode
().
equals
(
g
.
getType
())
||
ActivityTypeEnum
.
TYPE_61
.
getCode
().
equals
(
g
.
getType
())
||
ActivityTypeEnum
.
TYPE_230
.
getCode
().
equals
(
g
.
getType
()))
.
findFirst
()
.
findFirst
()
.
get
();
.
get
();
CartGoods
cartGood
=
new
CartGoods
();
CartGoods
cartGood
=
new
CartGoods
();
...
...
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