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
641db52c
Commit
641db52c
authored
Mar 13, 2021
by
chongfu.liang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除问题fix
parent
69dfcfbb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
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/ShoppingCartNewServiceImpl.java
+1
-1
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/CalculationSharingDiscountService.java
+2
-2
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/BuyAndGiftsPromotionService.java
View file @
641db52c
...
@@ -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
Get
(
null
);
CartGoods
fatherGoods
=
cartGoodsList
.
stream
().
filter
(
p
->
p
.
getCartGoodsUid
().
equals
(
sendGoods
.
getOriginalGoodsUid
())).
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/ShoppingCartNewServiceImpl.java
View file @
641db52c
...
@@ -1259,7 +1259,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
...
@@ -1259,7 +1259,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
if
(
MapUtils
.
isNotEmpty
(
qtyMap
)){
if
(
MapUtils
.
isNotEmpty
(
qtyMap
)){
for
(
String
key
:
qtyMap
.
keySet
()){
for
(
String
key
:
qtyMap
.
keySet
()){
CartGoods
cartGoods
=
cartGoodsList
.
stream
().
filter
(
p
->
p
.
getCartGoodsUid
().
equals
(
key
)).
findFirst
().
orElse
Get
(
null
);
CartGoods
cartGoods
=
cartGoodsList
.
stream
().
filter
(
p
->
p
.
getCartGoodsUid
().
equals
(
key
)).
findFirst
().
orElse
(
null
);
if
(
cartGoods
!=
null
){
if
(
cartGoods
!=
null
){
cartGoods
.
setActivityType
(
ActivityTypeEnum
.
TYPE_104
.
getCode
());
cartGoods
.
setActivityType
(
ActivityTypeEnum
.
TYPE_104
.
getCode
());
cartGoods
.
setActualQty
(
cartGoods
.
getQty
());
cartGoods
.
setActualQty
(
cartGoods
.
getQty
());
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/CalculationSharingDiscountService.java
View file @
641db52c
...
@@ -212,13 +212,13 @@ public class CalculationSharingDiscountService {
...
@@ -212,13 +212,13 @@ public class CalculationSharingDiscountService {
Map
<
String
,
Integer
>
qtyMap
=
giftSharingService
.
xPiecesYFoldAdapter
(
sharingDiscountResponseDto
);
Map
<
String
,
Integer
>
qtyMap
=
giftSharingService
.
xPiecesYFoldAdapter
(
sharingDiscountResponseDto
);
if
(
MapUtils
.
isNotEmpty
(
qtyMap
)){
if
(
MapUtils
.
isNotEmpty
(
qtyMap
)){
for
(
String
key
:
qtyMap
.
keySet
()){
for
(
String
key
:
qtyMap
.
keySet
()){
CartGoods
cartGoods
=
cartGoodsList
.
stream
().
filter
(
p
->
p
.
getCartGoodsUid
().
equals
(
key
)).
findFirst
().
orElse
Get
(
null
);
CartGoods
cartGoods
=
cartGoodsList
.
stream
().
filter
(
p
->
p
.
getCartGoodsUid
().
equals
(
key
)).
findFirst
().
orElse
(
null
);
if
(
cartGoods
!=
null
){
if
(
cartGoods
!=
null
){
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
(),
1
)){
CartGoods
sendGoods
=
cartGoodsList
.
stream
().
filter
(
p
->
cartGoods
.
getCartGoodsUid
().
equals
(
p
.
getOriginalGoodsUid
())).
findFirst
().
orElse
Get
(
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