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
88073db4
Commit
88073db4
authored
Nov 11, 2021
by
徐康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品券白名单
parent
8380af56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/CouponServiceImpl.java
+13
-3
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/CouponServiceImpl.java
View file @
88073db4
...
@@ -922,14 +922,24 @@ public class CouponServiceImpl implements CouponService {
...
@@ -922,14 +922,24 @@ public class CouponServiceImpl implements CouponService {
if
(
couponDetailResponseDto
==
null
||
!
couponDetailResponseDto
.
getResult
().
equals
(
ResponseCodeConstant
.
RESPONSE_SUCCESS_1
)
||
CollectionUtils
.
isEmpty
(
couponDetailResponseDto
.
getDetails
()))
{
if
(
couponDetailResponseDto
==
null
||
!
couponDetailResponseDto
.
getResult
().
equals
(
ResponseCodeConstant
.
RESPONSE_SUCCESS_1
)
||
CollectionUtils
.
isEmpty
(
couponDetailResponseDto
.
getDetails
()))
{
return
null
;
return
null
;
}
}
if
(
CollectionUtils
.
isEmpty
(
couponDetailResponseDto
.
getDetails
()))
{
if
(
CollectionUtils
.
isEmpty
(
couponDetailResponseDto
.
getDetails
()))
{
return
null
;
return
null
;
}
}
Integer
couponType
=
0
;
//券返回的商品id
//券返回的商品id
String
skuId
;
List
<
String
>
skuIds
=
Lists
.
newArrayList
();
List
<
String
>
skuIds
=
Lists
.
newArrayList
();
String
skuId
=
goodsId
;
if
(
StringUtils
.
isEmpty
(
goodsId
))
{
if
(
CouponTypeEnum
.
TYPE_0
.
getCode
().
equals
(
couponDetailResponseDto
.
getDetails
().
get
(
0
).
getType
())
&&
Integer
.
valueOf
(
1
).
equals
(
couponDetailResponseDto
.
getDetails
().
get
(
0
).
getSubType
()))
{
throw
new
ServiceException
(
ResponseResult
.
SHOPPING_CART_PRODUCT_CAN_NOT_USE
,
"老版本不支持商品券黑名单商品,请升级小程序。"
);
}
//券返回的商品id
skuId
=
couponDetailResponseDto
.
getDetails
().
get
(
0
).
getActiveProduct
().
get
(
0
).
getProductIdPartner
();
skuIds
.
add
(
String
.
valueOf
(
skuId
));
}
else
{
skuId
=
goodsId
;
}
skuIds
.
add
(
skuId
);
skuIds
.
add
(
skuId
);
//TODO 通过skuid查询spuid
//TODO 通过skuid查询spuid
Map
<
String
,
GetProductsVo
>
productsVoMap
=
itemService
.
getProducts
(
skuIds
,
partnerId
,
storeId
,
requestDto
.
getMenuType
());
Map
<
String
,
GetProductsVo
>
productsVoMap
=
itemService
.
getProducts
(
skuIds
,
partnerId
,
storeId
,
requestDto
.
getMenuType
());
...
...
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