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();
|
}
|
}
|