|
@@ -0,0 +1,34 @@
|
|
|
|
+package org.jeecg.modules.quartz.job;
|
|
|
|
+
|
|
|
|
+import lombok.SneakyThrows;
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
|
+import org.jeecg.modules.system.service.IWeixinUserService;
|
|
|
|
+import org.quartz.*;
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ *
|
|
|
|
+ *
|
|
|
|
+ *
|
|
|
|
+ * 人事变动修改信息
|
|
|
|
+ *
|
|
|
|
+ *
|
|
|
|
+ * @author: taoyan
|
|
|
|
+ * @date: 2020年06月19日
|
|
|
|
+ */
|
|
|
|
+@PersistJobDataAfterExecution
|
|
|
|
+@DisallowConcurrentExecution
|
|
|
|
+@Slf4j
|
|
|
|
+public class EditUserQuitJob implements Job {
|
|
|
|
+ @Autowired
|
|
|
|
+ IWeixinUserService weixinUserService;
|
|
|
|
+
|
|
|
|
+ @SneakyThrows
|
|
|
|
+ @Override
|
|
|
|
+ public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
|
|
|
|
+ System.out.println("=======================开始执行======================");
|
|
|
|
+ weixinUserService.UserQuits();
|
|
|
|
+ System.out.println("=======================执行完成======================");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+}
|