Java Code Examples for com.ruoyi.quartz.util.CronUtils

The following examples show how to use com.ruoyi.quartz.util.CronUtils. These examples are extracted from open source projects. 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 Project: supplierShop   Source File: SysJob.java    License: MIT License 5 votes vote down vote up
public Date getNextValidTime()
{
    if (StringUtils.isNotEmpty(cronExpression))
    {
        return CronUtils.getNextExecution(cronExpression);
    }
    return null;
}
 
Example 2
Source Project: ruoyiplus   Source File: SysJob.java    License: MIT License 5 votes vote down vote up
public Date getNextValidTime()
{
    if (StringUtils.isNotEmpty(cronExpression))
    {
        return CronUtils.getNextExecution(cronExpression);
    }
    return null;
}
 
Example 3
Source Project: RuoYi   Source File: SysJob.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * 下次执行时间
 * @return 下次执行时间
 */
@ApiIgnore(value = "下次执行时间")
public Date getNextValidTime(){
    if (StrUtil.isNotEmpty(cronExpression)){
        return CronUtils.getNextExecution(cronExpression);
    }
    return null;
}
 
Example 4
Source Project: supplierShop   Source File: SysJobServiceImpl.java    License: MIT License 2 votes vote down vote up
/**
 * 校验cron表达式是否有效
 * 
 * @param cronExpression 表达式
 * @return 结果
 */
@Override
public boolean checkCronExpressionIsValid(String cronExpression)
{
    return CronUtils.isValid(cronExpression);
}
 
Example 5
Source Project: ruoyiplus   Source File: SysJobServiceImpl.java    License: MIT License 2 votes vote down vote up
/**
 * 校验cron表达式是否有效
 * 
 * @param cronExpression 表达式
 * @return 结果
 */
@Override
public boolean checkCronExpressionIsValid(String cronExpression)
{
    return CronUtils.isValid(cronExpression);
}
 
Example 6
Source Project: RuoYi   Source File: SysJobServiceImpl.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * 校验cron表达式是否有效
 *
 * @param cronExpression 表达式
 * @return 结果
 */
@Override
public boolean checkCronExpressionIsValid(String cronExpression) {
    return CronUtils.isValid(cronExpression);
}