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
9c4e5029
Commit
9c4e5029
authored
Apr 28, 2021
by
徐康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
6271a64d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
14 deletions
+1
-14
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
+1
-14
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
View file @
9c4e5029
...
@@ -155,13 +155,6 @@ public class ShoppingCartMCoffeeServiceImpl {
...
@@ -155,13 +155,6 @@ public class ShoppingCartMCoffeeServiceImpl {
String
spuId2
=
spuId
;
String
spuId2
=
spuId
;
MCoffeeProductIdsVo
vo
=
new
MCoffeeProductIdsVo
();
MCoffeeProductIdsVo
vo
=
new
MCoffeeProductIdsVo
();
List
<
Long
>
productIds
=
new
ArrayList
<>();
List
<
Long
>
productIds
=
new
ArrayList
<>();
//商品券校验
if
(
spuId
.
startsWith
(
CommonsConstant
.
COUPON_PREFIX
))
{
couponCode
=
spuId
.
substring
(
CommonsConstant
.
COUPON_PREFIX
.
length
());
vo
=
validCoupon
(
partnerId
,
storeId
,
spuId
,
productIds
,
BusinessTypeEnum
.
getByType
(
addShoppingCartGoodsRequestVo
.
getMenuType
()).
getCode
());
spuId2
=
vo
.
getSkuId
();
goodsId
=
vo
.
getSkuId
();
}
productIds
.
add
(
Long
.
parseLong
(
goodsId
));
productIds
.
add
(
Long
.
parseLong
(
goodsId
));
List
<
ProductBeanDTO
>
productBeanListSpuClass
=
null
;
List
<
ProductBeanDTO
>
productBeanListSpuClass
=
null
;
...
@@ -2330,15 +2323,9 @@ public class ShoppingCartMCoffeeServiceImpl {
...
@@ -2330,15 +2323,9 @@ public class ShoppingCartMCoffeeServiceImpl {
*/
*/
private
void
seedCouponGoodsValidate
(
MCoffeeAddGoodsRequestVo
addShoppingCartGoodsRequestVo
,
List
<
CartGoods
>
oldCartGoodsList
){
private
void
seedCouponGoodsValidate
(
MCoffeeAddGoodsRequestVo
addShoppingCartGoodsRequestVo
,
List
<
CartGoods
>
oldCartGoodsList
){
//若加购种子券商品,则券号不可为空
//若加购种子券商品,则券号不可为空
if
(
null
==
addShoppingCartGoodsRequestVo
.
getMonthCardInfo
()){
if
(
null
==
addShoppingCartGoodsRequestVo
.
getMonthCardInfo
()
||
StringUtils
.
isBlank
(
addShoppingCartGoodsRequestVo
.
getMonthCardInfo
().
getCardCode
())
){
throw
new
ServiceException
(
ResponseResult
.
SHOPPING_CART_ADD_ERROR
);
throw
new
ServiceException
(
ResponseResult
.
SHOPPING_CART_ADD_ERROR
);
}
}
for
(
CartGoods
cartGoods
:
oldCartGoodsList
)
{
//1.种子券商品券信息与月卡信息一致
if
(
null
!=
cartGoods
.
getMonthCardInfo
()
&&
!
addShoppingCartGoodsRequestVo
.
getCouponCode
().
equals
(
cartGoods
.
getMonthCardInfo
().
getCardCode
()))
{
throw
new
ServiceException
(
ResponseResult
.
SHOPPING_CART_COUPON_NOT_EXIST
);
}
}
}
}
/**
/**
...
...
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