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
5d4152ec
Commit
5d4152ec
authored
Nov 03, 2021
by
周晓航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除 不需要的逻辑
Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent
e699b3ad
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
order-application-service/src/main/java/cn/freemud/service/impl/SellCouponOrderServiceImpl.java
+9
-8
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/SellCouponOrderServiceImpl.java
View file @
5d4152ec
...
...
@@ -474,14 +474,15 @@ public class SellCouponOrderServiceImpl implements OrderFactoryService {
if
(
CollectionUtils
.
isEmpty
(
productBindingCoupons
))
{
return
ResponseUtil
.
error
(
ResponseResult
.
STORE_ITEM_CHECK_INVAILD
);
}
List
<
GetMenuCategoryInfoResponse
.
RootNodeBean
.
ChildrenBeanFirst
.
ChildrenBeanSecond
.
ProductBean
>
products
=
productInfosByIds
.
getData
().
getProducts
();
for
(
GetMenuCategoryInfoResponse
.
RootNodeBean
.
ChildrenBeanFirst
.
ChildrenBeanSecond
.
ProductBean
product
:
products
)
{
Integer
status
=
product
.
getStatus
();
if
(!
Objects
.
equals
(
status
,
IntegralProductStatusEnum
.
STATUS_2
.
getCode
()))
{
return
ResponseUtil
.
error
(
ResponseResult
.
COUPON_INVAILD
.
getCode
(),
"您需要购买的券包,包含的优惠券券编号"
+
skuId
+
"包含的商品已失效,请联系门店尽快处理"
);
}
}
// 产品确认 暂时不需要改逻辑
// List<GetMenuCategoryInfoResponse.RootNodeBean.ChildrenBeanFirst.ChildrenBeanSecond.ProductBean> products = productInfosByIds.getData().getProducts();
//
// for (GetMenuCategoryInfoResponse.RootNodeBean.ChildrenBeanFirst.ChildrenBeanSecond.ProductBean product : products) {
// Integer status = product.getStatus();
// if (!Objects.equals(status, IntegralProductStatusEnum.STATUS_2.getCode())) {
// return ResponseUtil.error(ResponseResult.COUPON_INVAILD.getCode(),"您需要购买的券包,包含的优惠券券编号"+skuId+"包含的商品已失效,请联系门店尽快处理");
// }
// }
List
<
String
>
activityCodes
=
new
ArrayList
<>();
for
(
GetMenuCategoryInfoResponse
.
RootNodeBean
.
ChildrenBeanFirst
.
ChildrenBeanSecond
.
ProductBean
.
ProductBindingCouponType
productBindingCouponType
:
productBindingCoupons
)
{
activityCodes
.
add
(
productBindingCouponType
.
getActivityCode
());
...
...
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