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
5272e0c5
Commit
5272e0c5
authored
Sep 23, 2020
by
徐康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复子商品数量不正确
parent
049cb242
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
order-application-service/src/main/java/cn/freemud/adapter/DeliveryAdapter.java
+1
-1
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
+10
-10
No files found.
order-application-service/src/main/java/cn/freemud/adapter/DeliveryAdapter.java
View file @
5272e0c5
...
...
@@ -195,7 +195,7 @@ public class DeliveryAdapter {
ProductInfo
deliveryComboProductInfo
=
new
ProductInfo
();
deliveryComboProductInfo
.
setProductCode
(
comboProduct
.
getProductId
());
deliveryComboProductInfo
.
setProductName
(
comboProduct
.
getProductName
());
deliveryComboProductInfo
.
setProductNumber
(
comboProduct
.
getNumber
());
deliveryComboProductInfo
.
setProductNumber
(
comboProduct
.
getNumber
()
/
productList
.
getNumber
()
);
deliveryComboProductInfo
.
setProductPrice
(
comboProduct
.
getPrice
().
intValue
());
//餐道使用
deliveryComboProductInfo
.
setCumulatedTotal
(
comboProduct
.
getNumber
()
*
comboProduct
.
getPrice
().
intValue
());
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
View file @
5272e0c5
...
...
@@ -298,16 +298,16 @@ public class ShoppingCartMCoffeeServiceImpl {
String
receiveId
=
shoppingCartInfoRequestVo
.
getReceiveId
();
/**
* 如果couponCode为空,则从缓存里尝试获取
* 如果couponCode不为空,则设置到缓存里
*/
if
(
StringUtils
.
isEmpty
(
couponCode
))
{
couponCode
=
assortmentSdkService
.
getShoppingCartCoupon
(
partnerId
,
storeId
,
userId
,
shoppingCartBaseService
);
//TODO 校验券是否可用,不可用要删除
}
else
{
assortmentSdkService
.
setShoppingCartCouponCode
(
partnerId
,
storeId
,
userId
,
couponCode
,
shoppingCartBaseService
);
}
//
/**
//
* 如果couponCode为空,则从缓存里尝试获取
//
* 如果couponCode不为空,则设置到缓存里
//
*/
//
if(StringUtils.isEmpty(couponCode)) {
//
couponCode = assortmentSdkService.getShoppingCartCoupon(partnerId, storeId, userId, shoppingCartBaseService);
//
//TODO 校验券是否可用,不可用要删除
//
} else {
//
assortmentSdkService.setShoppingCartCouponCode(partnerId, storeId, userId, couponCode, shoppingCartBaseService);
//
}
// 获取购物车商品
List
<
CartGoods
>
cartGoodsList
=
assortmentSdkService
.
getShoppingCart
(
partnerId
,
storeId
,
userId
,
sessionId
,
""
,
shoppingCartBaseService
);
...
...
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