Commit 01c36bb9 by 范富荣

修改定时任务表达式

1 parent 680e4267
...@@ -13,7 +13,7 @@ import org.springframework.stereotype.Component; ...@@ -13,7 +13,7 @@ import org.springframework.stereotype.Component;
*/ */
@Slf4j @Slf4j
@Component @Component
@ElasticSimpleJob(jobName = "AbnormalClusteringJob", cron = "0 15 4 * * ?") @ElasticSimpleJob(jobName = "AbnormalClusteringJob", cron = "0 0 1 * * ?")
public class AbnormalClusteringJob implements SimpleJob { public class AbnormalClusteringJob implements SimpleJob {
@Autowired @Autowired
......
...@@ -15,7 +15,7 @@ import org.springframework.stereotype.Component; ...@@ -15,7 +15,7 @@ import org.springframework.stereotype.Component;
*/ */
@Slf4j @Slf4j
@Component @Component
@ElasticSimpleJob(jobName = "AlarmDeviceSeparationJob", cron = "0 15 4 * * ?") @ElasticSimpleJob(jobName = "AlarmDeviceSeparationJob", cron = "0 0 2 * * ?")
public class AlarmDeviceSeparationJob implements SimpleJob { public class AlarmDeviceSeparationJob implements SimpleJob {
@Autowired @Autowired
private VehicleDeviceClient vehicleDeviceService; private VehicleDeviceClient vehicleDeviceService;
......
...@@ -13,7 +13,7 @@ import org.springframework.stereotype.Component; ...@@ -13,7 +13,7 @@ import org.springframework.stereotype.Component;
*/ */
@Slf4j @Slf4j
@Component @Component
@ElasticSimpleJob(jobName = "AlarmElectricFenceJob", cron = "0 15 4 * * ?") @ElasticSimpleJob(jobName = "AlarmElectricFenceJob", cron = "0 0 3 * * ?")
public class AlarmElectricFenceJob implements SimpleJob { public class AlarmElectricFenceJob implements SimpleJob {
@Autowired @Autowired
private VehicleDeviceClient vehicleDeviceClient; private VehicleDeviceClient vehicleDeviceClient;
......
...@@ -13,7 +13,7 @@ import org.springframework.stereotype.Component; ...@@ -13,7 +13,7 @@ import org.springframework.stereotype.Component;
*/ */
@Slf4j @Slf4j
@Component @Component
@ElasticSimpleJob(jobName = "AlarmMsgJob", cron = "0 15 4 * * ?") @ElasticSimpleJob(jobName = "AlarmMsgJob", cron = "0 0 4 * * ?")
public class AlarmMsgJob implements SimpleJob { public class AlarmMsgJob implements SimpleJob {
@Autowired @Autowired
private AlarmJobService alarmJobService; private AlarmJobService alarmJobService;
......
...@@ -13,7 +13,7 @@ import org.springframework.stereotype.Component; ...@@ -13,7 +13,7 @@ import org.springframework.stereotype.Component;
*/ */
@Slf4j @Slf4j
@Component @Component
@ElasticSimpleJob(jobName = "BlackZoneWarningJob", cron = "0 15 4 * * ?") @ElasticSimpleJob(jobName = "BlackZoneWarningJob", cron = "0 0 5 * * ?")
public class BlackZoneWarningJob implements SimpleJob { public class BlackZoneWarningJob implements SimpleJob {
@Autowired @Autowired
private AlarmJobService alarmJobService; private AlarmJobService alarmJobService;
......
...@@ -8,9 +8,12 @@ import lombok.extern.slf4j.Slf4j; ...@@ -8,9 +8,12 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
/**
* 设备位置推送任务
*/
@Slf4j @Slf4j
@Component @Component
@ElasticSimpleJob(jobName = "DeviceLocationJob", cron = "0 15 4 * * ?") @ElasticSimpleJob(jobName = "DeviceLocationJob", cron = "0 0 6 * * ?")
public class DeviceLocationJob implements SimpleJob { public class DeviceLocationJob implements SimpleJob {
@Autowired @Autowired
......
...@@ -13,7 +13,7 @@ import org.springframework.stereotype.Component; ...@@ -13,7 +13,7 @@ import org.springframework.stereotype.Component;
*/ */
@Slf4j @Slf4j
@Component @Component
@ElasticSimpleJob(jobName = "OfflineAlarmJob", cron = "0 15 4 * * ?") @ElasticSimpleJob(jobName = "OfflineAlarmJob", cron = "0 30 4 * * ?")
public class OfflineAlarmJob implements SimpleJob { public class OfflineAlarmJob implements SimpleJob {
@Autowired @Autowired
private VehicleDeviceClient vehicleDeviceService; private VehicleDeviceClient vehicleDeviceService;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!