Commit 45684136 by guominglei

添加日志

parent 360e1687
......@@ -44,6 +44,7 @@ public class StatusSnapshootThreadRunHelper extends BaseThreadRunHelper {
private static final DateTimeFormatter DATE_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd");
@Override
public Long start() {
log.info("开始记录快照---");
LocalDateTime localDateTime = LocalDateTime.now();
String date = localDateTime.format(DATE_FORMATTER);
String hour = String.valueOf(localDateTime.getHour());
......@@ -51,6 +52,7 @@ public class StatusSnapshootThreadRunHelper extends BaseThreadRunHelper {
Integer num = flowStatusSnapshootMapper.exist(date, hour);
//判断是否存储过快照
if (num != null && num >= 1){
log.info("没有工作流无需记录---");
return (60 - LocalDateTime.now().getMinute()) * 60 * 1000L;
}else {
//获取所有的工作流
......@@ -124,6 +126,7 @@ public class StatusSnapshootThreadRunHelper extends BaseThreadRunHelper {
flowStatusSnapshootMapper.deleteOutSnapShoot(outTime);
}
}
log.info("记录快照完成---");
return (60 - LocalTime.now().getMinute()) * 60 * 1000L;
}
......
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