|
|
@@ -1,5 +1,6 @@ |
|
|
|
package com.telpo.dipperposition.task; |
|
|
|
|
|
|
|
import com.telpo.dipperposition.controller.DipperDataAsyncTaskController; |
|
|
|
import com.telpo.dipperposition.service.IDipperDataAsyncTaskService; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
@@ -19,7 +20,7 @@ import org.springframework.stereotype.Component; |
|
|
|
public class ScheduleService { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private IDipperDataAsyncTaskService dipperDataAsyncTaskService; |
|
|
|
private DipperDataAsyncTaskController dipperDataAsyncTaskController; |
|
|
|
|
|
|
|
/* |
|
|
|
* 调用9012端口的接口获取星历数据。 |
|
|
@@ -32,7 +33,7 @@ public class ScheduleService { |
|
|
|
log.info("开始星历数据同步!"); |
|
|
|
// 获取推送失败的记录 |
|
|
|
try { |
|
|
|
dipperDataAsyncTaskService.pullAstEPH(); |
|
|
|
dipperDataAsyncTaskController.pullAstEPH(); |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("执行定时获取星历数据发生异常:", e); |
|
|
|
} |
|
|
|