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
5046dd48
Commit
5046dd48
authored
Nov 12, 2020
by
xiaoer.li@freemud.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合并冲突
parent
ce1125e6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
9 deletions
+11
-9
assortment-shoppingcart-sdk/src/main/java/com/freemud/sdk/api/assortment/shoppingcart/service/ShoppingCartBaseService.java
+9
-1
shopping-cart-application-service/src/main/java/cn/freemud/entities/vo/ShoppingCartInfoRequestVo.java
+1
-0
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
+0
-0
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/calculation/CouponDiscountCalculation.java
+1
-8
No files found.
assortment-shoppingcart-sdk/src/main/java/com/freemud/sdk/api/assortment/shoppingcart/service/ShoppingCartBaseService.java
View file @
5046dd48
...
...
@@ -127,7 +127,15 @@ public interface ShoppingCartBaseService {
default
BaseResponse
<
List
<
CouponTypeVo
>>
getTypeCartCouponCode
(
CartParamDto
cartParamDto
,
String
trackingNo
)
{
return
null
;
}
/**
* 获取购物车商品代金券
*
* @param cartParamDto
* @return
*/
default
BaseResponse
<
String
>
getCartCouponCode
(
CartParamDto
cartParamDto
,
String
trackingNo
)
{
return
null
;
}
/**
* 清除麦咖啡购物车商品行信息
*
...
...
shopping-cart-application-service/src/main/java/cn/freemud/entities/vo/ShoppingCartInfoRequestVo.java
View file @
5046dd48
...
...
@@ -126,6 +126,7 @@ public class ShoppingCartInfoRequestVo extends BaseRequestVo {
*/
@NotNull
private
Integer
qty
;
private
String
activityCode
;
}
@Data
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
View file @
5046dd48
This diff is collapsed.
Click to expand it.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/calculation/CouponDiscountCalculation.java
View file @
5046dd48
...
...
@@ -62,7 +62,7 @@ public class CouponDiscountCalculation {
private
CouponClient
mCoffeeCouponClient
;
@Autowired
private
CouponAdapter
couponAdapter
;
// @Autowired
// @Autowired
// private RedisCache redisCache;
// @Autowired
// private CardBinClient cardBinClient;
...
...
@@ -182,11 +182,6 @@ public class CouponDiscountCalculation {
continue
;
}
//商品券商品
if
(
StringUtils
.
isNotEmpty
(
cartGoods
.
getCouponCode
())
||
discount
!=
null
)
{
if
(
goodsMap
.
get
(
cartGoods
.
getCartGoodsUid
())
==
null
)
{
continue
;
}
if
(
StringUtils
.
isNotEmpty
(
cartGoods
.
getCouponCode
())
)
{
List
<
ActivityDiscountsDto
>
productActivityDiscountsDtos
=
new
ArrayList
<>();
if
(
CollectionUtils
.
isNotEmpty
(
discounts
))
{
...
...
@@ -207,8 +202,6 @@ public class CouponDiscountCalculation {
}
}
}
cartGoods
.
setCustomerCode
(
goodsMap
.
get
(
cartGoods
.
getCartGoodsUid
()).
getArtNo
());
}
cartGoods
.
setCustomerCode
(
goodsMap
.
get
(
cartGoods
.
getCartGoodsUid
()).
getArtNo
());
List
<
ActivityCalculationDiscountResponseDto
.
CalculationDiscountResult
.
Goods
.
GoodsDiscount
>
list
=
goodsMap
.
get
(
cartGoods
.
getCartGoodsUid
()).
getDiscounts
();
...
...
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