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
c2e6e6dc
Commit
c2e6e6dc
authored
Mar 11, 2021
by
chongfu.liang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品券多次添加fix
parent
b72946f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
shopping-cart-application-service/src/main/java/cn/freemud/service/ShoppingCartNewService.java
+2
-2
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartMealServiceImpl.java
+1
-1
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/ShoppingCartNewService.java
View file @
c2e6e6dc
...
...
@@ -127,7 +127,7 @@ public interface ShoppingCartNewService {
if
(
checkSpqInfoResponseDto
==
null
)
{
throw
new
ServiceException
(
ResponseResult
.
SHOPPING_CART_COUPON_NOT_EXIST
);
}
if
(!
checkSpqInfoResponseDto
.
getIsMultiCoupon
()
&&
couponQty
>
1
)
{
if
(!
checkSpqInfoResponseDto
.
getIsMultiCoupon
()
&&
couponQty
!=
null
&&
couponQty
>
1
)
{
throw
new
ServiceException
(
ResponseResult
.
SHOPPING_CART_GOODS_COUPON_CAN_NOT_USE
);
}
if
(
couponProductDto
!=
null
)
{
...
...
@@ -164,7 +164,7 @@ public interface ShoppingCartNewService {
if
(
checkSpqInfoResponseDto
==
null
)
{
throw
new
ServiceException
(
ResponseResult
.
SHOPPING_CART_COUPON_MIX_NOT_EXIST
);
}
if
(!
checkSpqInfoResponseDto
.
getIsMultiCoupon
()
&&
couponQty
>
1
)
{
if
(!
checkSpqInfoResponseDto
.
getIsMultiCoupon
()
&&
couponQty
!=
null
&&
couponQty
>
1
)
{
throw
new
ServiceException
(
ResponseResult
.
SHOPPING_CART_GOODS_COUPON_CAN_NOT_USE
);
}
productIds
.
add
(
Long
.
parseLong
(
checkSpqInfoResponseDto
.
getSkuId
()));
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartMealServiceImpl.java
View file @
c2e6e6dc
...
...
@@ -121,7 +121,7 @@ public class ShoppingCartMealServiceImpl implements ShoppingCartNewService {
productIds
.
add
(
Long
.
parseLong
(
goodsId
));
}
else
{
//校验券是否有效
spuId2
=
validCoupon
(
partnerId
,
storeId
,
spuId
,
productIds
,
BusinessTypeEnum
.
getByType
(
requestVo
.
getMenuType
()).
getCode
(),
null
);
spuId2
=
validCoupon
(
partnerId
,
storeId
,
spuId
,
productIds
,
BusinessTypeEnum
.
getByType
(
requestVo
.
getMenuType
()).
getCode
(),
null
,
null
);
}
// 获取商品信息
List
<
ProductBeanDTO
>
productBeanListSpuClass
=
...
...
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