Browse Source

KERNEL-11853 抽数缓存最小更新间隔限制1分钟,不允许小数

release/11.0
Maximus 2 years ago
parent
commit
b012cbac57
  1. 5
      designer-base/src/main/java/com/fr/design/data/datapane/ESDStrategyConfigPane.java

5
designer-base/src/main/java/com/fr/design/data/datapane/ESDStrategyConfigPane.java

@ -247,9 +247,10 @@ public class ESDStrategyConfigPane extends BasicBeanPane<StrategyConfig> {
Date next1 = cron.getNextValidTimeAfter(new Date()); Date next1 = cron.getNextValidTimeAfter(new Date());
Date next2 = cron.getNextValidTimeAfter(next1); Date next2 = cron.getNextValidTimeAfter(next1);
return next2.getTime() - next1.getTime() >= CacheConstants.MILLIS_OF_MINUTE; return next2.getTime() - next1.getTime() >= CacheConstants.MILLIS_OF_MINUTE;
} catch (ParseException e) { } catch (ParseException e) {
throw new RuntimeException(e); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
return false;
} }
protected String title4PopupWindow() { protected String title4PopupWindow() {

Loading…
Cancel
Save