Commit 3fef44de authored by jim's avatar jim

time

parent c52ba6b1
...@@ -28,9 +28,9 @@ public class PromotionTask { ...@@ -28,9 +28,9 @@ public class PromotionTask {
private UserPrePaidBillingRepository userPrePaidBillingRepository; private UserPrePaidBillingRepository userPrePaidBillingRepository;
// TODO 2020年7月2号, 晚上11点,jim负责跟踪下 // TODO 2020年7月2号, 晚上11点,jim负责跟踪下
@SchedulerLock(name = "countGift", lockAtLeastForString = "PT1H", lockAtMostForString = "PT2H") @SchedulerLock(name = "countGift", lockAtLeastForString = "PT1H", lockAtMostForString = "PT2H")
@Scheduled(cron = "0 0 15 2 * ?") @Scheduled(cron = "0 0 1 1 * ?")
public void countGift() { public void countGift() {
List<Account> accounts = accountRepository.findByParentIsNull(); List<Account> accounts = accountRepository.findByParentIsNull();
for (Account account : accounts) { for (Account account : accounts) {
......
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