BAOLH
2026-02-28 6d636480fcae613282fa3d02400047260f9bf030
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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();
    }
}