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
6dbcc0a2
Commit
6dbcc0a2
authored
Jun 08, 2021
by
王世昌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
91b6c184
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/CouponServiceImpl.java
+4
-4
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/CouponServiceImpl.java
View file @
6dbcc0a2
...
@@ -943,14 +943,14 @@ public class CouponServiceImpl implements CouponService {
...
@@ -943,14 +943,14 @@ public class CouponServiceImpl implements CouponService {
return
null
;
return
null
;
}
}
//TODO 判断该券是否在这个门店下(一个券可以在多个门店下使用)
//TODO 判断该券是否在这个门店下(一个券可以在多个门店下使用)
List
<
String
>
cou
Pons
toreIds
=
Lists
.
newArrayList
();
List
<
String
>
cou
ponS
toreIds
=
Lists
.
newArrayList
();
for
(
GetCouponDetailResponseDto
.
Details
detail
:
couponDetailResponseDto
.
getDetails
())
{
for
(
GetCouponDetailResponseDto
.
Details
detail
:
couponDetailResponseDto
.
getDetails
())
{
if
(!
CouponStatus
.
STATUS_0
.
getCode
().
equals
(
detail
.
getStatus
()))
continue
;
if
(!
CouponStatus
.
STATUS_0
.
getCode
().
equals
(
detail
.
getStatus
())
&&
!
CouponStatus
.
STATUS_2
.
getCode
().
equals
(
detail
.
getStatus
())
)
continue
;
for
(
GetCouponDetailResponseDto
.
ActiveRestrictionVOS
activeRestrictionVO
:
detail
.
getActiveRestrictionVOS
())
{
for
(
GetCouponDetailResponseDto
.
ActiveRestrictionVOS
activeRestrictionVO
:
detail
.
getActiveRestrictionVOS
())
{
cou
Pons
toreIds
.
add
(
activeRestrictionVO
.
getStoreIdPartner
());
cou
ponS
toreIds
.
add
(
activeRestrictionVO
.
getStoreIdPartner
());
}
}
}
}
if
(
CollectionUtils
.
isNotEmpty
(
cou
PonstoreIds
)
&&
!
couPons
toreIds
.
contains
(
storeId
))
{
if
(
CollectionUtils
.
isNotEmpty
(
cou
ponStoreIds
)
&&
!
couponS
toreIds
.
contains
(
storeId
))
{
return
null
;
return
null
;
}
}
...
...
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