|
|
@@ -1,12 +1,14 @@
|
|
|
package com.xjrsoft.module.job;
|
|
|
|
|
|
import com.xjrsoft.module.base.service.IBaseClassService;
|
|
|
+import com.xjrsoft.module.base.service.IBaseGradeService;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
/**
|
|
|
+ * 自动别业班级
|
|
|
* @author dzx
|
|
|
* @date 2025/1/14
|
|
|
*/
|
|
|
@@ -17,11 +19,17 @@ public class ClassGraduateTask {
|
|
|
@Autowired
|
|
|
private IBaseClassService classService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IBaseGradeService gradeService;
|
|
|
+
|
|
|
@Scheduled(cron = "0 */15 23 30 6 ?")
|
|
|
public void execute() {
|
|
|
doExecute();
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 根据年级自动毕业班级和学生
|
|
|
+ */
|
|
|
public void doExecute() {
|
|
|
|
|
|
}
|