|
|
@ -14,6 +14,7 @@ import com.kms.yxgh.common.domain.VideoWarning; |
|
|
|
import com.kms.yxgh.common.mapper.IndicatorMapper; |
|
|
|
import com.kms.yxgh.common.mapper.MonitoringStationMapper; |
|
|
|
import com.kms.yxgh.common.mapper.VideoWarningMapper; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling; |
|
|
@ -34,6 +35,7 @@ import java.util.List; |
|
|
|
*/ |
|
|
|
//开启spring定时任务
|
|
|
|
@EnableScheduling |
|
|
|
@Slf4j |
|
|
|
@Component |
|
|
|
public class Job { |
|
|
|
|
|
|
@ -57,6 +59,7 @@ public class Job { |
|
|
|
|
|
|
|
@Scheduled(cron = "0 0/5 * * * ?") |
|
|
|
public void run() { |
|
|
|
log.info("job is running {}", isRunning); |
|
|
|
if (isRunning) { |
|
|
|
List<BsSgcDfJbxx> dfList = dfList(); |
|
|
|
List<BsSgcSzGcda> szList = szList(); |
|
|
|