update - 优化重复提交注解,以支持动态配置,默认的防重提交时间为 5秒
This commit is contained in:
parent
c0450b339c
commit
05c998ac17
@ -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)));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user