master
周文涛 2 years ago
parent 760ae9a3d3
commit d1bdabcf3e

@ -55,7 +55,7 @@ public class HandleTransInit implements ApplicationRunner {
} }
while (true) { while (true) {
try { try {
Thread.sleep(1000l); Thread.sleep(10000l);
} catch (InterruptedException e) { } catch (InterruptedException e) {
e.printStackTrace(); e.printStackTrace();
} }
@ -63,7 +63,6 @@ public class HandleTransInit implements ApplicationRunner {
log.info("---------检测是否有任务..."); log.info("---------检测是否有任务...");
List<TaskModel> taskList = taskService.getTaskList(); List<TaskModel> taskList = taskService.getTaskList();
if (taskList.size()==0) { if (taskList.size()==0) {
log.info("无任务.");
continue; continue;
} }
for (TaskModel taskModel : taskList) { for (TaskModel taskModel : taskList) {

Loading…
Cancel
Save