update - 优化重复提交注解,以支持动态配置,默认的防重提交时间为 5秒

This commit is contained in:
wangli 2024-01-19 17:13:28 +08:00
parent c0450b339c
commit 05c998ac17

View File

@ -54,7 +54,6 @@ public class RepeatSubmitAspect {
long interval = repeatSubmit.timeUnit().toMillis(repeatSubmit.interval());
// 获取注解中的 SpEL 表达式
interval = repeatSubmitResolver.resolveExpression(repeatSubmit.intervalExpression(), interval);
log.info("interval: {}", interval);
if (interval < 1000) {
throw new WorkflowEngineException(REPEAT_SUBMIT_TIME_ERROR_TIPS,
String.valueOf((repeatSubmit.interval() / 1000)));