日历定时任务
This commit is contained in:
parent
aec76102d1
commit
77483affba
@ -0,0 +1,26 @@
|
|||||||
|
package cn.iocoder.yudao.module.home.job.calendar;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler;
|
||||||
|
import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore;
|
||||||
|
import cn.iocoder.yudao.module.home.service.calendar.CalendarServiceImpl;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
@Component
|
||||||
|
public class CalendarDataJob implements JobHandler {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private CalendarServiceImpl calendarService;
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@TenantIgnore
|
||||||
|
public String execute(String param) {
|
||||||
|
calendarService.createCalendarDate();
|
||||||
|
log.info("创建日历数据成功");
|
||||||
|
return "创建日历数据成功";
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user