...
|
...
|
@@ -50,7 +50,7 @@ public class CouponProxyService implements Compensator { |
|
|
}
|
|
|
//过滤未生效的券
|
|
|
int currentTime = DateUtil.getCurrentTimeSecond();
|
|
|
return result.getCoupons().stream().filter(e -> e.getStartTime() < currentTime && e.getEndTime() > currentTime).collect(Collectors.toList());
|
|
|
return result.getCoupons().stream().filter(e -> e.getStartTime() <= currentTime && e.getEndTime() >= currentTime).collect(Collectors.toList());
|
|
|
}
|
|
|
|
|
|
public List<UserCouponsBo> checkAndGetCoupons(int uid, List<String> couponCodes) {
|
...
|
...
|
|