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
2a456244
Commit
2a456244
authored
Mar 13, 2021
by
chongfu.liang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除问题fix
parent
641db52c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/BuyAndGiftsPromotionService.java
+1
-1
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/CalculationSharingDiscountService.java
+1
-1
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/BuyAndGiftsPromotionService.java
View file @
2a456244
...
@@ -97,7 +97,7 @@ public class BuyAndGiftsPromotionService implements IPromotionService {
...
@@ -97,7 +97,7 @@ public class BuyAndGiftsPromotionService implements IPromotionService {
cartGoods
.
setOriginalGoodsUid
(
sendGoods
.
getOriginalGoodsUid
());
cartGoods
.
setOriginalGoodsUid
(
sendGoods
.
getOriginalGoodsUid
());
this
.
setGiftExtra
(
cartGoods
,
product
,
cartGoodsList
);
this
.
setGiftExtra
(
cartGoods
,
product
,
cartGoodsList
);
CartGoods
fatherGoods
=
cartGoodsList
.
stream
().
filter
(
p
->
p
.
getCartGoodsUid
().
equals
(
sendGoods
.
getOriginalGoodsUid
())).
findFirst
().
orElse
(
null
);
CartGoods
fatherGoods
=
cartGoodsList
.
stream
().
filter
(
p
->
p
.
getCartGoodsUid
().
equals
(
sendGoods
.
getOriginalGoodsUid
())
&&
ObjectUtils
.
equals
(
p
.
getQty
(),
1
)
).
findFirst
().
orElse
(
null
);
if
(
fatherGoods
!=
null
){
if
(
fatherGoods
!=
null
){
cartGoods
.
setCartGoodsUid
(
fatherGoods
.
getCartGoodsUid
());
cartGoods
.
setCartGoodsUid
(
fatherGoods
.
getCartGoodsUid
());
}
}
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/CalculationSharingDiscountService.java
View file @
2a456244
...
@@ -217,7 +217,7 @@ public class CalculationSharingDiscountService {
...
@@ -217,7 +217,7 @@ public class CalculationSharingDiscountService {
cartGoods
.
setActivityType
(
ActivityTypeEnum
.
TYPE_104
.
getCode
());
cartGoods
.
setActivityType
(
ActivityTypeEnum
.
TYPE_104
.
getCode
());
cartGoods
.
setActualQty
(
cartGoods
.
getQty
());
cartGoods
.
setActualQty
(
cartGoods
.
getQty
());
cartGoods
.
setQty
(
qtyMap
.
get
(
key
));
cartGoods
.
setQty
(
qtyMap
.
get
(
key
));
if
(
ObjectUtils
.
equals
(
cartGoods
.
getQty
(),
1
)){
if
(
ObjectUtils
.
equals
(
cartGoods
.
getQty
(),
0
)){
CartGoods
sendGoods
=
cartGoodsList
.
stream
().
filter
(
p
->
cartGoods
.
getCartGoodsUid
().
equals
(
p
.
getOriginalGoodsUid
())).
findFirst
().
orElse
(
null
);
CartGoods
sendGoods
=
cartGoodsList
.
stream
().
filter
(
p
->
cartGoods
.
getCartGoodsUid
().
equals
(
p
.
getOriginalGoodsUid
())).
findFirst
().
orElse
(
null
);
if
(
cartGoods
!=
null
){
if
(
cartGoods
!=
null
){
sendGoods
.
setCartGoodsUid
(
cartGoods
.
getCartGoodsUid
());
sendGoods
.
setCartGoodsUid
(
cartGoods
.
getCartGoodsUid
());
...
...
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