Commit f6289813 by guo_minglei@163.com

修改快照启动类

parent bda71343
...@@ -76,11 +76,10 @@ public class StatusSnapshootThreadRunHelper extends BaseThreadRunHelper { ...@@ -76,11 +76,10 @@ public class StatusSnapshootThreadRunHelper extends BaseThreadRunHelper {
//统计运行实例的数据 //统计运行实例的数据
//如果存在实例 //如果存在实例
if (runRecording != null){ if (runRecording != null){
//获取凌晨的时间戳 //获取上一个时间
Long time = LocalDate.now().atStartOfDay(ZoneOffset.ofHours(8)).toInstant().toEpochMilli();
Long preHourTime = hourDateTime.minusHours(1).toInstant(ZoneOffset.of("+8")).toEpochMilli(); Long preHourTime = hourDateTime.minusHours(1).toInstant(ZoneOffset.of("+8")).toEpochMilli();
//从凌晨到现在是否有运行实例 //从凌晨到现在是否有运行实例
if (preHourTime.longValue() < runRecording.getTriggerTime().longValue()){ if (preHourTime.longValue() > runRecording.getTriggerTime().longValue()){
flowStatusSnapshoot.setFlowStatus(1); flowStatusSnapshoot.setFlowStatus(1);
flowStatusSnapshoot.setUnstartNode(flow.getFlowNodeCount()); flowStatusSnapshoot.setUnstartNode(flow.getFlowNodeCount());
} else { //存在工作流的运行实例 } else { //存在工作流的运行实例
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment