定时任务 问题2

This commit is contained in:
wangw 2025-10-11 10:32:54 +08:00
parent 6f0c25c16c
commit f01ccf65ce
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ public class CouponTask {
LocalDateTime endTime = mkShopCouponRecord.getUseEndTime();
if (endTime != null) {
Duration duration = Duration.between(now, endTime);
long seconds = duration.getSeconds() % 60;
long seconds = duration.getSeconds();
redisService.set(RedisCst.classKeyExpired.EXPIRED_COUPON + mkShopCouponRecord.getId(), mkShopCouponRecord.getId(), seconds);
}
}