修改下次执行时间的计算方式

This commit is contained in:
mxd 2019-12-13 17:08:34 +08:00
parent 9a1e181d39
commit 6f7544e5c4

View File

@ -74,7 +74,7 @@ public class SpiderFlowService extends ServiceImpl<SpiderFlowMapper, SpiderFlow>
.withIdentity("Caclulate Next Execute Date")
.withSchedule(CronScheduleBuilder.cronSchedule(cron))
.build();
sfMapper.resetCornExpression(id, cron, trigger.getStartTime());
sfMapper.resetCornExpression(id, cron, trigger.getFireTimeAfter(null));
spiderJobManager.remove(id);
SpiderFlow spiderFlow = getById(id);
if("1".equals(spiderFlow.getEnabled()) && StringUtils.isNotEmpty(spiderFlow.getCron())){