|
|
@@ -5,6 +5,7 @@ import com.xjrsoft.common.utils.DateUtils;
|
|
|
import com.xjrsoft.common.utils.SqlRunnerAdapterUtil;
|
|
|
import com.xjrsoft.module.evaluate.entity.EvaluateManage;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.scheduling.annotation.Async;
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
@@ -22,6 +23,7 @@ public class EvaluateTask {
|
|
|
/**
|
|
|
* 需要重复评价的,每天凌晨1点自动生成新的评价提交记录
|
|
|
*/
|
|
|
+ @Async
|
|
|
@Scheduled(cron = "0 0 1 * * ?")
|
|
|
public void addSubmitRecord() {
|
|
|
System.out.printf("定时新增评价提交记录:%s", DateUtils.format(new Date(), DateUtils.DATE_TIME_PATTERN));
|