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
d3cdbc26
Commit
d3cdbc26
authored
Apr 02, 2021
by
孙昱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sunyu::fix bug
parent
10cbf1d4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
24 deletions
+4
-24
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
+2
-0
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/calculation/CalculationServiceImpl.java
+1
-0
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/calculation/CouponDiscountCalculation.java
+1
-24
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
View file @
d3cdbc26
...
...
@@ -495,6 +495,7 @@ public class ShoppingCartMCoffeeServiceImpl {
for
(
CartGoods
cartGoods
:
cartGoodsList
)
{
if
(
StringUtils
.
equals
(
cartGoods
.
getCouponCode
(),
requestVo
.
getRedundancyCouponCode
())){
cartGoods
.
setCouponCode
(
null
);
cartGoods
.
setIsMonthCardGoods
(
0
);
}
/**
...
...
@@ -2343,6 +2344,7 @@ public class ShoppingCartMCoffeeServiceImpl {
for
(
CartGoods
cartGood
:
cartGoods
)
{
if
(
StringUtils
.
equals
(
cartGood
.
getCouponCode
(),
couponCode
)){
cartGood
.
setCouponCode
(
null
);
cartGood
.
setIsMonthCardGoods
(
0
);
}
}
return
cartGoods
.
stream
().
filter
(
t
->
!
StringUtils
.
equals
(
"9999"
,
t
.
getSkuId
())).
collect
(
Collectors
.
toList
());
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/calculation/CalculationServiceImpl.java
View file @
d3cdbc26
...
...
@@ -20,6 +20,7 @@ import cn.freemud.service.CommonService;
import
cn.freemud.service.impl.ItemServiceImpl
;
import
cn.freemud.service.thirdparty.ActivityClient
;
import
cn.freemud.utils.PropertyConvertUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.freemud.application.sdk.api.log.ErrorLog
;
import
com.freemud.application.sdk.api.log.LogThreadLocal
;
import
com.freemud.application.sdk.api.membercenter.request.QueryReceiveAddressRequest
;
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/calculation/CouponDiscountCalculation.java
View file @
d3cdbc26
...
...
@@ -453,7 +453,7 @@ public class CouponDiscountCalculation {
List
<
CouponProductVo
>
calculAmountProductList
=
new
ArrayList
<>();
if
(
CollectionUtils
.
isNotEmpty
(
cartGoods
))
{
cartGoods
.
forEach
(
cartGood
->
{
if
(
StringUtils
.
isNotEmpty
(
cartGood
.
getCouponCode
()))
{
if
(
!
StringUtils
.
equals
(
cartGood
.
getSkuId
(),
"9999"
)
&&
StringUtils
.
isNotEmpty
(
cartGood
.
getCouponCode
()))
{
CouponProductVo
couponProductVo
=
new
CouponProductVo
();
couponProductVo
.
setAmount
(
cartGood
.
getAmount
().
intValue
());
couponProductVo
.
setKeyProductCode
(
cartGood
.
getCustomerCode
());
...
...
@@ -463,29 +463,6 @@ public class CouponDiscountCalculation {
couponProductVo
.
setCategoryCode
(
null
);
calculAmountProductList
.
add
(
couponProductVo
);
}
// if (CollectionUtils.isNotEmpty(cartGood.getProductComboList())) {
// cartGood.getProductComboList().forEach(comboxGoods -> {
// CouponProductVo couponProductVo = new CouponProductVo();
// couponProductVo.setAmount(Integer.valueOf(comboxGoods.getAmount().toString()));
// couponProductVo.setKeyProductCode(comboxGoods.getCustomerCode());
// couponProductVo.setQuantity(comboxGoods.getQty());
// couponProductVo.setProductId(comboxGoods.getGoodsId());
// couponProductVo.setCategoryCode(null);
// productList.add(couponProductVo);
// });
// }
// if (CollectionUtils.isNotEmpty(cartGood.getProductGroupList())) {
// cartGood.getProductGroupList().forEach(comboxGoods -> {
// CouponProductVo couponProductVo = new CouponProductVo();
// couponProductVo.setAmount(Integer.valueOf(comboxGoods.getAmount().toString()));
// couponProductVo.setKeyProductCode(comboxGoods.getCustomerCode());
// couponProductVo.setQuantity(comboxGoods.getQty());
// couponProductVo.setProductId(comboxGoods.getGoodsId());
// couponProductVo.setCategoryCode(null);
// productList.add(couponProductVo);
// });
// }
});
res
.
setProductList
(
cartGoods
);
Long
totalAmount
=
createProductRequest
(
cartGoods
,
calculAmountProductList
);
...
...
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