|
@@ -232,16 +232,18 @@ public class SpringCronTask implements SchedulingConfigurer{
|
|
|
// long start = System.currentTimeMillis();
|
|
|
// tRmCalpointValueService.statData(new Date());
|
|
|
// logger.info("定时任务"+taskId+"执行时长:" + (System.currentTimeMillis() - start)/1000 + "秒");
|
|
|
-// } else if (taskId.equalsIgnoreCase("103")) {
|
|
|
-// long start = System.currentTimeMillis();
|
|
|
-// tRmActValueService.statDataforDay();// 每日数据统计(实绩定时任务)
|
|
|
-// logger.info("定时任务"+taskId+"执行时长:" + (System.currentTimeMillis() - start)/1000 + "秒");
|
|
|
-// } else if (taskId.equalsIgnoreCase("104")) {
|
|
|
+// }
|
|
|
+ if (taskId.equalsIgnoreCase("103")) {
|
|
|
+ long start = System.currentTimeMillis();
|
|
|
+ tRmActValueService.statDataforDay();// 每日数据统计(实绩定时任务)
|
|
|
+ logger.info("定时任务"+taskId+"执行时长:" + (System.currentTimeMillis() - start)/1000 + "秒");
|
|
|
+ }
|
|
|
+// else if (taskId.equalsIgnoreCase("104")) {
|
|
|
// long start = System.currentTimeMillis();
|
|
|
// tRmPlanValueService.state();// 每日数据统计(计划定时任务)
|
|
|
// logger.info("定时任务"+taskId+"执行时长:" + (System.currentTimeMillis() - start)/1000 + "秒");
|
|
|
// }
|
|
|
- if (taskId.equalsIgnoreCase("105")) {
|
|
|
+ else if (taskId.equalsIgnoreCase("105")) {
|
|
|
// 先计算产品,因为原材料计算单耗需要产品实绩数据参与计算
|
|
|
long start = System.currentTimeMillis();
|
|
|
ifMesEmsSwapfileService.getLgDateProd();
|