2025-12-16 zwy 优化-保存定时任务时,判断时间为当前时间的10分钟之前的时间。否则失败
| | |
| | | if (WaylineTaskTypeEnum.IMMEDIATE.getVal() == param.getTaskType()) { |
| | | param.setExecuteTime(System.currentTimeMillis()); |
| | | } |
| | | if (param.getExecuteTime() < _timestampUtils.plusMinutesByMillis(System.currentTimeMillis(), -10) && param.getTaskType() == WaylineTaskTypeEnum.TIMED.getVal()) { |
| | | if (param.getExecuteTime() < _timestampUtils.plusMinutesByMillis(System.currentTimeMillis(), 10) && param.getTaskType() == WaylineTaskTypeEnum.TIMED.getVal()) { |
| | | return ResponseResult.error("定时任务执行时间不能小于当前时间的前10分钟!"); |
| | | } |
| | | param.setRth_mode(1); |