Browse Source

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

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

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

@ -178,16 +178,6 @@ public class ESDStrategyConfigPane extends BasicBeanPane<StrategyConfig> {
if (ESDUtils.checkUpdateTimeSchema(text)) {
if (ESDUtils.isCronExpression(text)) {
// 判断后两次更新时间间隔,如果小于1分钟就显示错误
CronExpression cron = new CronExpression(text);
Date next1 = cron.getNextValidTimeAfter(new Date());
Date next2 = cron.getNextValidTimeAfter(next1);
if (next2.getTime() - next1.getTime() < CacheConstants.MILLIS_OF_MINUTE) {
this.schemaTimeCheckTips.setText(InterProviderFactory.getDesignI18nProvider().i18nText("Fine-Design_ESD_Error_Time_Interval_Too_Short"));
this.schemaTimeCheckTips.setVisible(true);
throw new IllegalArgumentException("[ESD]Update schema time interval is to short.");
}
if (checkCornTimeInterval(text)) {
schemaTimes.add(text);
} else {
@ -221,8 +211,6 @@ public class ESDStrategyConfigPane extends BasicBeanPane<StrategyConfig> {
}
} catch (CloneNotSupportedException e) {
FineLoggerFactory.getLogger().error(e.getMessage(), e);
} catch (ParseException e) {
throw new RuntimeException(e);
}
}

Loading…
Cancel
Save