Search in sources :

Example 1 with AgileQuartzJobInfo

use of com.jeeagile.quartz.vo.AgileQuartzJobInfo in project jeeagile by jeeagile.

the class AgileQuartzJobServiceImpl method selectModel.

@Override
public AgileQuartzJob selectModel(Serializable id) {
    AgileQuartzJob agileQuartzJob = this.getById(id);
    AgileQuartzJobInfo agileQuartzJobInfo = new AgileQuartzJobInfo();
    if (agileQuartzJob != null && agileQuartzJob.isNotEmptyPk()) {
        BeanUtils.copyProperties(agileQuartzJob, agileQuartzJobInfo);
        agileQuartzJobInfo.setNextTime(AgileCronUtil.getNextTime(agileQuartzJob.getJobCron()));
    }
    return agileQuartzJobInfo;
}
Also used : AgileQuartzJob(com.jeeagile.quartz.entity.AgileQuartzJob) AgileQuartzJobInfo(com.jeeagile.quartz.vo.AgileQuartzJobInfo)

Aggregations

AgileQuartzJob (com.jeeagile.quartz.entity.AgileQuartzJob)1 AgileQuartzJobInfo (com.jeeagile.quartz.vo.AgileQuartzJobInfo)1