1、2345080

This commit is contained in:
weidong 2024-08-25 06:54:04 +08:00
parent 5299ec0b48
commit c5d9add1bf

View File

@ -10,6 +10,7 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -50,9 +51,10 @@ public class AbnormalDeviceProcessor{
return null; return null;
} }
//@Scheduled(cron = "0 0/10 * * * ?") // 每30分钟执行一次 @Scheduled(cron = "0 0/10 * * * ?") // 每30分钟执行一次
private void checkDevice() { private void checkDevice() {
logger.info("zny checkDevice"); logger.info("zny checkDevice");
checkNoDataDevice("2345080","2345068","2410190");
//checkNoDataDevice("2345084","2415276","2345076"); //checkNoDataDevice("2345084","2415276","2345076");
//checkNoDataDevice("2345085","2345068","2345075"); //checkNoDataDevice("2345085","2345068","2345075");
} }