pull/56/head
liyong 4 years ago
parent d3c615b2f9
commit c8c71809c2

@ -368,6 +368,14 @@ public class JobScheduleHelper {
// ---------------------- tools ----------------------
/**
*
* @param jobInfo
* @param fromTime
* @return
* @throws Exception
*/
public static Date generateNextValidTime(XxlJobInfo jobInfo, Date fromTime) throws Exception {
ScheduleTypeEnum scheduleTypeEnum = ScheduleTypeEnum.match(jobInfo.getScheduleType(), null);
if (ScheduleTypeEnum.CRON == scheduleTypeEnum) {

Loading…
Cancel
Save