提交 4d804a68 authored 作者: zjm's avatar zjm

feat(定时任务): 开始定时任务

开始定时任务
上级 9dc08962
//package com.tykj.dev.device.library.task; package com.tykj.dev.device.library.task;
//
//import com.tykj.dev.device.library.service.DeviceLibraryCacheService; import com.tykj.dev.device.library.service.DeviceLibraryCacheService;
//import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
//
///** /**
// * @author zjm * @author zjm
// * @version 1.0.0 * @version 1.0.0
// * @ClassName TrainTask.java * @ClassName TrainTask.java
// * @Description 培训定时任务 主要是 判断报名截止以及培训开始、培训结束 * @Description 培训定时任务 主要是 判断报名截止以及培训开始、培训结束
// * @createTime 2020年08月17日 23:20:00 * @createTime 2020年08月17日 23:20:00
// */ */
//@Service @Service
//@Slf4j @Slf4j
//public class DevideTask { public class DevideTask {
// @Autowired @Autowired
// DeviceLibraryCacheService deviceLibraryCacheService; DeviceLibraryCacheService deviceLibraryCacheService;
//
// @Scheduled(cron = "30 * * * * ? ") @Scheduled(cron = "30 * * * * ? ")
// private void signUpDeadline() { private void signUpDeadline() {
// log.info("定时device更新缓存开始"); log.info("定时device更新缓存开始");
// deviceLibraryCacheService.deletAllDeviceLibraryList(); deviceLibraryCacheService.deletAllDeviceLibraryList();
// deviceLibraryCacheService.getAllDeviceLibraryList(); deviceLibraryCacheService.getAllDeviceLibraryList();
// log.info("定时device更新缓存结束"); log.info("定时device更新缓存结束");
// } }
//} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论