BAOLH
2025-05-26 7628b8c8aac18c74d84d202d0c8a86d73b6a3ee4
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package me.zhengjie.modules.quartz.task;
 
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import me.zhengjie.modules.quartz.service.impl.WeComServiceImpl;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
 
@Slf4j
@Service
@RequiredArgsConstructor
@Async
public class OpenApiWeComMethod {
    private final WeComServiceImpl weComService;
 
    /**
     * 凌晨0点执行,新增用户考勤信息
     *
     * @throws Exception
     */
    public void getWeComAttendanceList() throws Exception {
        // 凌晨0点执行,新增用户考勤信息
        weComService.getWeComAttendanceList(null, null);
    }
 
    /**
     * 中午12点30执行,更新早打卡情况
     */
    public void getWeComAttendanceListOfNoon() throws Exception {
        // 中午12点30执行,更新早打卡情况
        weComService.getWeComAttendanceListOfNoon(null,null);
    }
 
    /**
     * 凌晨02:30执行,更新晚打卡情况
     */
    public void getWeComAttendanceListOfNight() throws Exception {
        // 凌晨02:30执行,更新晚打卡情况
        weComService.getWeComAttendanceListOfNight(null,null);
    }
 
    /**
     * 每周最后一天14:00执行,更新企微周报
     */
    public void getWeComWeeklyReport() throws Exception {
        // 下午14:00执行,更新企微周报
        weComService.toWecomSheetPushReport();
    }
}