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
afdf76d5
Commit
afdf76d5
authored
Oct 21, 2020
by
徐康
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/qa' into qa
parents
a1850a05
1a2a447e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
assortment-shoppingcart-sdk/src/main/java/com/freemud/sdk/api/assortment/shoppingcart/constant/CommonsConstant.java
+2
-0
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
+5
-2
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/entity/MCoffeeAddGoodsRequestVo.java
+5
-0
No files found.
assortment-shoppingcart-sdk/src/main/java/com/freemud/sdk/api/assortment/shoppingcart/constant/CommonsConstant.java
View file @
afdf76d5
...
...
@@ -18,4 +18,6 @@ public class CommonsConstant {
public
final
static
Integer
WEIGHT_PRODUCT
=
1
;
public
final
static
Integer
COUPON_TYPE
=
0
;
}
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
View file @
afdf76d5
...
...
@@ -867,9 +867,10 @@ public class ShoppingCartMCoffeeServiceImpl {
comboxGoods
.
setName
(
StringUtils
.
isNotEmpty
(
orderItemResp
.
getProductName
())
?
orderItemResp
.
getProductName
()
:
""
);
comboxGoods
.
setSpuName
(
StringUtils
.
isNotEmpty
(
orderItemResp
.
getProductName
())
?
orderItemResp
.
getProductName
()
:
""
);
comboxGoods
.
setSkuName
(
StringUtils
.
isNotEmpty
(
orderItemResp
.
getProduct
Name
())
?
orderItemResp
.
getProduct
Name
()
:
""
);
comboxGoods
.
setSkuName
(
StringUtils
.
isNotEmpty
(
orderItemResp
.
getProduct
SpecName
())
?
orderItemResp
.
getProductSpec
Name
()
:
""
);
comboxGoods
.
setSubName
(
StringUtils
.
isNotEmpty
(
orderItemResp
.
getProductSpecName
())
?
orderItemResp
.
getProductSpecName
()
:
""
);
comboxGoods
.
setPic
(
StringUtils
.
isNotEmpty
(
orderItemResp
.
getProductPicUrl
())
?
orderItemResp
.
getProductPicUrl
()
:
""
);
comboxGoods
.
setPic
(
StringUtils
.
isNotEmpty
(
orderItemResp
.
getProductPicUrl
())
?
orderItemResp
.
getProductPicUrl
()
:
""
);
if
(!
""
.
equals
(
orderItemResp
.
getProductProperty
()))
{
List
<
CartGoods
.
CartGoodsExtra
>
extra
=
new
ArrayList
<>();
String
[]
split
=
orderItemResp
.
getProductProperty
().
split
(
"/"
);
...
...
@@ -1149,6 +1150,8 @@ public class ShoppingCartMCoffeeServiceImpl {
// cartGoods.setCartGoodsUid(spuId);
}
else
if
(
CollectionUtils
.
isNotEmpty
(
addShoppingCartGoodsRequestVo
.
getProductComboList
())
||
CollectionUtils
.
isNotEmpty
(
addShoppingCartGoodsRequestVo
.
getProductGroupList
()))
{
goodsType
=
GoodsTypeEnum
.
SET_MEAL_GOODS
.
getGoodsType
();
}
else
if
(
CommonsConstant
.
COUPON_TYPE
==
addShoppingCartGoodsRequestVo
.
getCouponType
()){
goodsType
=
GoodsTypeEnum
.
COUPON_GOODS
.
getGoodsType
();
}
if
(
addShoppingCartGoodsRequestVo
.
getOperationType
()
!=
null
&&
addShoppingCartGoodsRequestVo
.
getOperationType
()
==
2
)
{
goodsType
=
GoodsTypeEnum
.
REDUCE_PRICE_GOODS
.
getGoodsType
();
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/entity/MCoffeeAddGoodsRequestVo.java
View file @
afdf76d5
...
...
@@ -119,6 +119,11 @@ public class MCoffeeAddGoodsRequestVo {
private
Integer
operationType
;
/**
* 券类型 0:商品券
*/
private
Integer
couponType
;
/**
* 优惠券号
*/
private
String
couponCode
;
...
...
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