BAOLH
2026-02-28 14f79cb643363ebfb221176ebd2c17ca3bc687a9
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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);
    }
 
    /**
     * 每周最后一天10:30执行,提醒填写企微周报
     */
    public void remindWeeklyReport() throws Exception {
        // 下午10:30执行,提醒填写企微周报
        weComService.remindWeeklyReport();
    }
 
    /**
     * 每周最后一天16:30执行,更新企微周报
     */
    public void getWeComWeeklyReport() throws Exception {
        // 下午14:00执行,更新企微周报
        weComService.toWecomSheetPushReport();
    }
 
    /**
     * 每天06:00执行,提醒考勤异常的人员补充考勤
     */
    public void remindAttendanceError() throws Exception {
        // 上午06:00执行,提醒考勤异常的人员补充考勤
        weComService.remindAttendanceError();
    }
}