|
@@ -623,8 +623,8 @@ public class CouponLogic {
|
|
|
|
|
|
List<Coupon> couponList = couponService.lambdaQuery().in(Coupon::getCouponId, couponIds)
|
|
List<Coupon> couponList = couponService.lambdaQuery().in(Coupon::getCouponId, couponIds)
|
|
.gt(Coupon::getLeftAmount,0)
|
|
.gt(Coupon::getLeftAmount,0)
|
|
- .gt(Coupon::getObtainStartTime,new Date())
|
|
|
|
- .lt(Coupon::getObtainEndTime,new Date())
|
|
|
|
|
|
+ .lt(Coupon::getObtainStartTime,new Date())
|
|
|
|
+ .gt(Coupon::getObtainEndTime,new Date())
|
|
.list();
|
|
.list();
|
|
List<Coupon> coupons = new ArrayList<>();
|
|
List<Coupon> coupons = new ArrayList<>();
|
|
for (Coupon coupon : couponList) {
|
|
for (Coupon coupon : couponList) {
|