package me.zhengjie.modules.quartz.task; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import me.zhengjie.modules.quartz.service.impl.AttendanceMonthTalkServiceImpl; import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Service; import java.text.ParseException; /** * 月报定时任务,每月初执行 */ @Slf4j @Service @RequiredArgsConstructor @Async public class AttendanceMonthlyMethod { private final AttendanceMonthTalkServiceImpl attendanceMonthService; public void getMonthlyData() throws ParseException { // 调用方法 attendanceMonthService.getMonthlyInfo(); } }