|
@@ -39,6 +39,7 @@ public class StatisticScheduler implements Serializable {
|
|
|
*/
|
|
|
//@Scheduled(cron = "0 1/1 * * * ?")
|
|
|
public void statistic() throws Exception {
|
|
|
+ log.debug("Statistic Schedule start...");
|
|
|
Date start = new Date();
|
|
|
|
|
|
//初始所有印刷项目的基本信息
|
|
@@ -49,8 +50,7 @@ public class StatisticScheduler implements Serializable {
|
|
|
|
|
|
//初始所有印刷项目的统计信息
|
|
|
printingProjectStatisticService.initAllPrintingProjectStatistic();
|
|
|
-
|
|
|
- log.info("统计耗时:" + DateUtils.diff(start, new Date()));
|
|
|
+ log.debug("Statistic Schedule finished..." + DateUtils.diff(start, new Date()));
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -58,7 +58,11 @@ public class StatisticScheduler implements Serializable {
|
|
|
*/
|
|
|
@Scheduled(cron = "0 3/3 * * * ?")
|
|
|
public void convert() throws Exception {
|
|
|
+ log.debug("Convert Schedule start...");
|
|
|
+ Date start = new Date();
|
|
|
+
|
|
|
coursePaperService.convertCoursePapers();
|
|
|
+ log.debug("Convert Schedule finished..." + DateUtils.diff(start, new Date()));
|
|
|
}
|
|
|
|
|
|
}
|