|
|
@@ -0,0 +1,39 @@
|
|
|
+package com.xunmei.job.task;
|
|
|
+
|
|
|
+import cn.hutool.core.lang.UUID;
|
|
|
+import com.alibaba.fastjson2.JSON;
|
|
|
+import com.xunmei.common.core.domain.R;
|
|
|
+import com.xunmei.common.core.web.domain.AjaxResult;
|
|
|
+import com.xunmei.system.api.RemoteEduTrainingService;
|
|
|
+import com.xunmei.system.api.RemoteResumptionTaskService;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+import java.util.Date;
|
|
|
+
|
|
|
+@Slf4j
|
|
|
+@Component("CoreResumptionTask")
|
|
|
+public class CoreResumptionTask {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ RemoteResumptionTaskService remoteResumptionTaskService;
|
|
|
+
|
|
|
+ public void buildDayTask() {
|
|
|
+ log.info("开始执行每日履职定时任务,当前任务 当前时间:{}", new Date());
|
|
|
+ R<Boolean> result = remoteResumptionTaskService.dayTask();
|
|
|
+ log.info("执行每日履职定时任务结束....,当前任务 当前时间:{},结果:{}", new Date(), JSON.toJSONString(result));
|
|
|
+ }
|
|
|
+
|
|
|
+ public void buildWeekTask() {
|
|
|
+ log.info("开始执行每周履职定时任务,当前任务 时间:{}",new Date());
|
|
|
+ R<Boolean> result = remoteResumptionTaskService.weekTask();
|
|
|
+ log.info("执行教育培训定时任务结束,当前任务 时间:{},结果:{}", new Date(), JSON.toJSONString(result));
|
|
|
+ }
|
|
|
+
|
|
|
+ public void buildMonthTask() {
|
|
|
+ log.info("开始执行每周履职定时任务,当前任务 时间:{}",new Date());
|
|
|
+ R<Boolean> result = remoteResumptionTaskService.monthTask();
|
|
|
+ log.info("执行教育培训定时任务结束,当前任务 时间:{},结果:{}", new Date(), JSON.toJSONString(result));
|
|
|
+ }
|
|
|
+}
|