소스 검색

巡检时间间隔修改

wangli 4 년 전
부모
커밋
003de85d67
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      smart-city-platform/src/main/java/com/bz/smart_city/quartz/job/DeviceValveCommondSync.java

+ 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());