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
47d9bac8
Commit
47d9bac8
authored
Apr 22, 2021
by
chongfu.liang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix空指针
parent
492d3737
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/CouponPromotionService.java
+3
-3
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/CalculationSharingCartService.java
+1
-1
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/promotion/CouponSharingService.java
+4
-4
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/CouponPromotionService.java
View file @
47d9bac8
...
...
@@ -135,9 +135,9 @@ public class CouponPromotionService implements IPromotionService {
}
else
{
couponPromotionVO
=
new
CouponPromotionVO
();
couponPromotionVO
.
setUserId
(
userLoginInfoDto
.
getMemberId
());
couponPromotionVO
.
setStoreId
(
shoppingCartInfoRequestVo
.
getShop
Id
());
couponPromotionVO
.
setPartnerId
(
shoppingCartInfoRequestV
o
.
getPartnerId
());
couponPromotionVO
.
setOrderType
(
shoppingCartInfoRequestV
o
.
getOrderType
());
couponPromotionVO
.
setStoreId
(
activityQueryDto
.
getStore
Id
());
couponPromotionVO
.
setPartnerId
(
activityQueryDt
o
.
getPartnerId
());
couponPromotionVO
.
setOrderType
(
activityQueryDt
o
.
getOrderType
());
}
couponService
.
checkValidCoupon
(
couponPromotionVO
,
validCouponCodeLis
,
spqIdToCartUuid
,
couponCode
,
cartGoodsList
);
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/CalculationSharingCartService.java
View file @
47d9bac8
...
...
@@ -81,7 +81,7 @@ public class CalculationSharingCartService {
/**
* 可用券及券折扣
*/
promotionSharingService
.
updateShoppingCartGoodsDiscount
(
discountResult
,
cartGoodsList
,
shoppingCartGoodsResponseVo
,
couponPromotionVO
,
shoppingCartInfoRequestVo
,
userId
,
partnerId
,
storeId
);
promotionSharingService
.
updateShoppingCartGoodsDiscount
(
discountResult
,
cartGoodsList
,
shoppingCartGoodsResponseVo
,
couponPromotionVO
,
shoppingCartInfoRequestVo
,
userId
,
partnerId
,
storeId
,
activityQueryDto
.
getOrderType
()
);
/**
* 满减处理
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/promotion/CouponSharingService.java
View file @
47d9bac8
...
...
@@ -56,7 +56,7 @@ public class CouponSharingService {
,
List
<
CartGoods
>
cartGoodsList
,
ShoppingCartGoodsResponseVo
shoppingCartGoodsResponseVo
,
CouponPromotionVO
couponPromotionVO
,
ShoppingCartInfoRequestVo
shoppingCartInfoRequestVo
,
String
userId
,
String
partnerId
,
String
storeId
)
{
,
ShoppingCartInfoRequestVo
shoppingCartInfoRequestVo
,
String
userId
,
String
partnerId
,
String
storeId
,
Integer
orderType
)
{
// 用户选择了查询优惠券信息
if
(
couponPromotionVO
!=
null
&&
ObjectUtils
.
equals
(
CouponFlag
.
YES
.
getCode
(),
couponPromotionVO
.
getFlg
()))
{
List
<
CartGoods
>
tmpCartGoods
=
cartGoodsList
.
parallelStream
().
filter
(
k
->
(
StringUtils
.
isNotBlank
(
k
.
getCouponCode
())
||
k
.
getCartGoodsUid
()
...
...
@@ -138,9 +138,9 @@ public class CouponSharingService {
}
else
{
couponPromotionVO
=
new
CouponPromotionVO
();
couponPromotionVO
.
setUserId
(
userId
);
couponPromotionVO
.
setStoreId
(
s
hoppingCartInfoRequestVo
.
getShopId
()
);
couponPromotionVO
.
setPartnerId
(
shoppingCartInfoRequestVo
.
getPartnerId
()
);
couponPromotionVO
.
setOrderType
(
shoppingCartInfoRequestVo
.
getOrderType
()
);
couponPromotionVO
.
setStoreId
(
s
toreId
);
couponPromotionVO
.
setPartnerId
(
partnerId
);
couponPromotionVO
.
setOrderType
(
orderType
);
}
couponService
.
checkValidCoupon
(
couponPromotionVO
,
validCouponCodeLis
,
spqIdToCartUuid
,
couponCode
,
cartGoodsList
);
...
...
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