瀏覽代碼

lrl-2021-11-1

lirl 3 年之前
父節點
當前提交
5cbe09a845
共有 1 個文件被更改,包括 7 次插入0 次删除
  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");