我坚持使用MySQL的石英工作。
列NEXT_FIRE_TIME
和PREV_FIRE_TIME
很难确定时间。
有人可以提供MySQL选择语法以便于跟踪时间吗?
非常感谢!
答案 0 :(得分:1)
select
qt.job_group,
qt.job_name,
FROM_UNIXTIME(qt.start_time / 1000) AS startTime,
FROM_UNIXTIME(qt.prev_fire_time / 1000) AS prevFireTime,
FROM_UNIXTIME(qt.next_fire_time / 1000) AS nextFireTime,
SEC_TO_TIME((qt.next_fire_time - qt.prev_fire_time) / 1000) AS diff,
(qst.REPEAT_INTERVAL / 1000) AS repeatIntervalInSecs,
qst.TIMES_TRIGGERED AS timesTriggered
from
QRTZ_TRIGGERS AS qt
LEFT JOIN QRTZ_SIMPLE_TRIGGERS AS qst
ON qt.TRIGGER_NAME = qst.TRIGGER_NAME;