com.ruoyi.quartz.util.CronUtils Java Examples
The following examples show how to use
com.ruoyi.quartz.util.CronUtils.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SysJob.java From supplierShop with MIT License | 5 votes |
public Date getNextValidTime() { if (StringUtils.isNotEmpty(cronExpression)) { return CronUtils.getNextExecution(cronExpression); } return null; }
Example #2
Source File: SysJob.java From ruoyiplus with MIT License | 5 votes |
public Date getNextValidTime() { if (StringUtils.isNotEmpty(cronExpression)) { return CronUtils.getNextExecution(cronExpression); } return null; }
Example #3
Source File: SysJob.java From RuoYi with Apache License 2.0 | 5 votes |
/** * 下次执行时间 * @return 下次执行时间 */ @ApiIgnore(value = "下次执行时间") public Date getNextValidTime(){ if (StrUtil.isNotEmpty(cronExpression)){ return CronUtils.getNextExecution(cronExpression); } return null; }
Example #4
Source File: SysJobServiceImpl.java From supplierShop with MIT License | 2 votes |
/** * 校验cron表达式是否有效 * * @param cronExpression 表达式 * @return 结果 */ @Override public boolean checkCronExpressionIsValid(String cronExpression) { return CronUtils.isValid(cronExpression); }
Example #5
Source File: SysJobServiceImpl.java From ruoyiplus with MIT License | 2 votes |
/** * 校验cron表达式是否有效 * * @param cronExpression 表达式 * @return 结果 */ @Override public boolean checkCronExpressionIsValid(String cronExpression) { return CronUtils.isValid(cronExpression); }
Example #6
Source File: SysJobServiceImpl.java From RuoYi with Apache License 2.0 | 2 votes |
/** * 校验cron表达式是否有效 * * @param cronExpression 表达式 * @return 结果 */ @Override public boolean checkCronExpressionIsValid(String cronExpression) { return CronUtils.isValid(cronExpression); }