礼金过期
This commit is contained in:
@@ -548,7 +548,7 @@ public class JDScheduleJob {
|
|||||||
hashOps.putAll(key, hours.stream().collect(Collectors.toMap(h -> h, h -> "1")));
|
hashOps.putAll(key, hours.stream().collect(Collectors.toMap(h -> h, h -> "1")));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Scheduled(cron = "0 0 0 * * ?") // 每天 0 点执行
|
@Scheduled(cron = "0 0 0,8 * * ?")
|
||||||
public void checkGiftCouponsExpiry() {
|
public void checkGiftCouponsExpiry() {
|
||||||
Set<String> keys = redisTemplate.keys("gift_coupon:*");
|
Set<String> keys = redisTemplate.keys("gift_coupon:*");
|
||||||
if (keys == null || keys.isEmpty()) return;
|
if (keys == null || keys.isEmpty()) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user