jiangping
2023-10-26 5a4e4f0ac1e40f45ce4e78b1ae57637c84a64fc7
server/src/main/java/doumeemes/task/ScheduleTool.java
@@ -13,6 +13,8 @@
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import java.util.Date;
/**
 * 定时任务
 * @author jiangping
@@ -102,12 +104,12 @@
     * 每天定时统计羚羊数据信息
     * @throws Exception
     */
//    @Scheduled(cron="0 59 23 * * ?")
    @Scheduled(fixedDelay = 1000 * 60 * 60 * 1)
    @Scheduled(cron="0 59 23 * * ?")
//    @Scheduled(fixedDelay = 1000 * 60 * 60 * 1)
    public void syncLingData() throws Exception {
        System.out.println("每天定时统计羚羊数据信息--------Begin------");
        //TODO--------------每天定时统计羚羊数据信息------------
        bizLingyangService.syncLingData();
        bizLingyangService.syncLingData(new Date());
        System.out.println("每天定时统计羚羊数据信息--------end------");
    }