Commit fcf49d3e by 吕明尚

修改优惠卷过期问题

parent 410c54df
......@@ -154,7 +154,7 @@ public class RedisTask {
if (expirationTime.getTime() < new Date().getTime()) {
Long consumerCouponId = jsonObject.getLong("consumerCouponId");
// 如果优惠券已过期且不在可用的优惠券列表中,则删除Redis中的值和数据库中的记录
if (!availableCouponIds.contains(consumerCouponId)) {
if (availableCouponIds.contains(consumerCouponId)) {
redisUtil.delete(key);
isConsumerCouponService.deleteSConsumerCouponById(consumerCouponId);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment