From f71719bf3e2b433b790cfaa83265611faf1f1a1c Mon Sep 17 00:00:00 2001
From: tj <1378534974@qq.com>
Date: 星期五, 11 四月 2025 17:38:06 +0800
Subject: [PATCH] 1.账户注销等
---
src/main/java/com/mzl/flower/schedule/ScheduleService.java | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/mzl/flower/schedule/ScheduleService.java b/src/main/java/com/mzl/flower/schedule/ScheduleService.java
index 34f94b7..a9e05bd 100644
--- a/src/main/java/com/mzl/flower/schedule/ScheduleService.java
+++ b/src/main/java/com/mzl/flower/schedule/ScheduleService.java
@@ -1,7 +1,9 @@
package com.mzl.flower.schedule;
+import com.mzl.flower.service.customer.CustomerService;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.time.DateFormatUtils;
+import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Profile;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@@ -10,6 +12,9 @@
@Slf4j
public class ScheduleService {
+ @Autowired
+ private CustomerService customerService;
+
@Scheduled(cron = "0 15 17 * * ?")
@Profile("prod")
public void DealSendMessageInfoBySupplier() {
@@ -17,4 +22,10 @@
log.info("供应商下单供货提示结束:" + DateFormatUtils.format(System.currentTimeMillis(), "yyyy-MM-dd HH:mm:ss"));
}
+ // vip过期时间校验,每隔1个小时执行一次
+ @Scheduled(cron = "0 0 1 * * ?")
+ public void checkVipExpireTime() {
+ customerService.checkVipExpireTime();
+ }
+
}
--
Gitblit v1.9.3