|
|
|
|
|
|
|
|
import com.tuoheng.admin.service.IThInspectionService; |
|
|
import com.tuoheng.admin.service.IThInspectionService; |
|
|
import com.tuoheng.common.utils.JsonResult; |
|
|
import com.tuoheng.common.utils.JsonResult; |
|
|
import com.tuoheng.common.utils.StringUtils; |
|
|
import com.tuoheng.common.utils.StringUtils; |
|
|
|
|
|
import com.xxl.job.core.handler.annotation.XxlJob; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.scheduling.annotation.Scheduled; |
|
|
import org.springframework.scheduling.annotation.Scheduled; |
|
|
|
|
|
|
|
|
private final static SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
|
|
private final static SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Scheduled(fixedRate = 1000) |
|
|
|
|
|
|
|
|
// @Scheduled(fixedRate = 1000) |
|
|
|
|
|
@XxlJob("lcAirportTaskHandler") |
|
|
public void scheduledTask() { |
|
|
public void scheduledTask() { |
|
|
|
|
|
|
|
|
log.info("执行定时执行飞行任务:" + LocalDateTime.now()); |
|
|
log.info("执行定时执行飞行任务:" + LocalDateTime.now()); |