lirl 3 anni fa
parent
commit
5cbe09a845
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7 0
      src/main/java/com/steerinfo/task/SpringCronTask.java

+ 7 - 0
src/main/java/com/steerinfo/task/SpringCronTask.java

@@ -294,6 +294,13 @@ public class SpringCronTask implements SchedulingConfigurer{
 					 tRmCalpointValueService.statData(new Date());
 					 logger.info("定时任务"+taskId+"执行时长:" + (new Date().getTime() - start)/1000 + "秒");
 				 }
+				 else if (taskId.equalsIgnoreCase("123")) {
+					 // 大宗物料收发数据(每天1点);炼钢mes生成日报每天(0点57分,4点57分)
+					 long start = new Date().getTime();
+					 dzMaterialSfService.dataGeneration();
+					 emsScqkLgService.dateGenerate();
+					 logger.info("定时任务"+taskId+"执行时长:" + (new Date().getTime() - start)/1000 + "秒");
+				 }
 //				 else if (taskId.equalsIgnoreCase("124")) {
 //					 Date now = new Date();
 //					 SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd");