Commit 893ed7c1 authored by cq990612's avatar cq990612

优化代码结构

parent 0790ae36
...@@ -61,7 +61,7 @@ public class Trigger implements SchedulingConfigurer { ...@@ -61,7 +61,7 @@ public class Trigger implements SchedulingConfigurer {
, triggerContext -> { , triggerContext -> {
Integer autoAdopt = workSubmitAdoptService.getById(1).getAutoAdopt(); Integer autoAdopt = workSubmitAdoptService.getById(1).getAutoAdopt();
String time = "0 0 0 */" + autoAdopt + " * ?"; String time = "0 30 17 */" + autoAdopt + " * ?";
//返回执行的周期 //返回执行的周期
return new CronTrigger(time).nextExecutionTime(triggerContext); return new CronTrigger(time).nextExecutionTime(triggerContext);
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment