日志增加
This commit is contained in:
@@ -23,9 +23,11 @@ public class StatisticTask {
|
|||||||
|
|
||||||
@Scheduled(cron = "0 0 9 * * ?")
|
@Scheduled(cron = "0 0 9 * * ?")
|
||||||
public void run() {
|
public void run() {
|
||||||
|
long start = System.currentTimeMillis();
|
||||||
log.info("定时任务执行,开始统计数据");
|
log.info("定时任务执行,开始统计数据");
|
||||||
shopOrderStatisticService.statistic();
|
shopOrderStatisticService.statistic();
|
||||||
shopProdStatisticService.statistic();
|
shopProdStatisticService.statistic();
|
||||||
shopTableOrderStatisticService.statistic();
|
shopTableOrderStatisticService.statistic();
|
||||||
|
log.info("定时任务执行完毕,耗时:{}ms", start - System.currentTimeMillis());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user