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