任务执行 耗时
This commit is contained in:
@@ -38,7 +38,7 @@ public class EntryManagerTask {
|
|||||||
log.info("进件查询,定时任务执行");
|
log.info("进件查询,定时任务执行");
|
||||||
long start = System.currentTimeMillis();
|
long start = System.currentTimeMillis();
|
||||||
entryManager(null);
|
entryManager(null);
|
||||||
log.info("进件查询,定时任务执行完毕,耗时:{}ms", start - System.currentTimeMillis());
|
log.info("进件查询,定时任务执行完毕,耗时:{}ms", System.currentTimeMillis() - start);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ import java.util.List;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 统计任务
|
* 统计任务
|
||||||
|
*
|
||||||
* @author Administrator
|
* @author Administrator
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
@@ -43,7 +44,7 @@ public class StatisticTask {
|
|||||||
// 获取前一天
|
// 获取前一天
|
||||||
LocalDate yesterday = LocalDate.now().minusDays(1);
|
LocalDate yesterday = LocalDate.now().minusDays(1);
|
||||||
baseStatistic(yesterday);
|
baseStatistic(yesterday);
|
||||||
log.info("统计数据,定时任务执行完毕,耗时:{}ms", start - System.currentTimeMillis());
|
log.info("统计数据,定时任务执行完毕,耗时:{}ms", System.currentTimeMillis() - start);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user