Parcourir la source

巡检时间间隔修改

wangli il y a 4 ans
Parent
commit
003de85d67

+ 1 - 1
smart-city-platform/src/main/java/com/bz/smart_city/quartz/job/DeviceValveCommondSync.java

@@ -53,7 +53,7 @@ public class DeviceValveCommondSync implements InitializingBean, Job, Serializab
 
         boolean exists = jobAndTriggerService.isExists(entity);
         if(!exists) {
-            String cron = "0 */1 * * * ?";
+            String cron = "0 */30 * * * ?";
             log.info("巡检阀门操作有效期:" + cron);
             entity.setCronExpression(cron);
             entity.setJobClassName(DeviceValveCommondSync.class.getName());