Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
usedCarAuction
/
aus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2dcc8f46
authored
May 08, 2026
by
章家宝
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:如果优惠券已经过期,则不再发通知
1 parent
ea4da463
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
aus-core/src/main/java/com/glsx/usedcar/module/coupon/service/CouponAccountService.java
aus-core/src/main/java/com/glsx/usedcar/module/coupon/service/CouponAccountService.java
View file @
2dcc8f4
...
@@ -203,7 +203,12 @@ public class CouponAccountService {
...
@@ -203,7 +203,12 @@ public class CouponAccountService {
return
null
;
return
null
;
}
}
List
<
CouponAccount
>
pendingCoupons
=
couponAccountRepository
.
findByCouponIdInAndDeleteFlag
(
couponIdList
,
DeleteFlag
.
NOT_DELETED
.
getCode
());
List
<
CouponAccount
>
pendingCoupons
=
couponAccountRepository
.
findByCouponIdInAndDeleteFlag
(
couponIdList
,
DeleteFlag
.
NOT_DELETED
.
getCode
());
if
(
pendingCoupons
.
isEmpty
())
{
// 过滤掉已过期的优惠券,过期券不再有通知
List
<
CouponAccount
>
validCoupons
=
pendingCoupons
.
stream
()
.
filter
(
c
->
c
.
getValidEndTime
()
!=
null
&&
c
.
getValidEndTime
().
isAfter
(
now
))
.
toList
();
if
(
validCoupons
.
isEmpty
())
{
return
null
;
return
null
;
}
}
...
@@ -212,8 +217,8 @@ public class CouponAccountService {
...
@@ -212,8 +217,8 @@ public class CouponAccountService {
// 构建弹窗响应
// 构建弹窗响应
CouponPopupRespVO
popupVO
=
new
CouponPopupRespVO
();
CouponPopupRespVO
popupVO
=
new
CouponPopupRespVO
();
popupVO
.
setPopupType
(
determinePopupType
(
pending
Coupons
));
popupVO
.
setPopupType
(
determinePopupType
(
valid
Coupons
));
popupVO
.
setCouponList
(
couponConverter
.
couponAccountsMapPopupCouponVO
(
pending
Coupons
));
popupVO
.
setCouponList
(
couponConverter
.
couponAccountsMapPopupCouponVO
(
valid
Coupons
));
return
popupVO
;
return
popupVO
;
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment