|
@@ -9,10 +9,14 @@ import java.util.Properties;
|
|
|
import java.util.concurrent.ConcurrentHashMap;
|
|
|
import java.util.concurrent.ScheduledFuture;
|
|
|
|
|
|
+import com.steerinfo.ems.bfhyd.service.IBfhydService;
|
|
|
import com.steerinfo.ems.ifemsmesactitem.service.IIfEmsMesActitemService;
|
|
|
import com.steerinfo.ems.ifmesemswatermonitor.service.IIfMesEmsWatermonitorService;
|
|
|
import com.steerinfo.ems.mesemsdieseloil.service.IMesEmsDieseloilService;
|
|
|
import com.steerinfo.ems.tcm0312.controller.TCm0312Controller;
|
|
|
+import com.steerinfo.ems.tcm0318.service.ITCm0318Service;
|
|
|
+import com.steerinfo.ems.tcm0323.model.TCm0323;
|
|
|
+import com.steerinfo.ems.tcm0348.service.ITCm0348Service;
|
|
|
import com.steerinfo.ems.trmactvalue.service.ITRmActValueService;
|
|
|
import com.steerinfo.ems.trmbalancevalue.service.ITRmBalanceValueService;
|
|
|
import com.steerinfo.ems.trmcalpoint.service.ITRmCalpointService;
|
|
@@ -97,7 +101,12 @@ public class SpringCronTask implements SchedulingConfigurer{
|
|
|
ITRmCalpointService tRmCalpointService;
|
|
|
@Autowired
|
|
|
ITRmDfValueService tRmDfValueService;
|
|
|
-
|
|
|
+ @Autowired
|
|
|
+ IBfhydService bfhydService;
|
|
|
+ @Autowired
|
|
|
+ ITCm0348Service tCm0348Service;
|
|
|
+ @Autowired
|
|
|
+ ITCm0318Service tCm0318Service;
|
|
|
/**
|
|
|
* SchedulingConfigurer接口的方法实现,加载后自动运行
|
|
|
*/
|
|
@@ -224,6 +233,23 @@ public class SpringCronTask implements SchedulingConfigurer{
|
|
|
tRmWorkprocMaterialValueService.setDate(new Date()); // 原材料数据维护
|
|
|
logger.info("定时任务"+taskId+"执行时长:" + (new Date().getTime() - start)/1000 + "秒");
|
|
|
}
|
|
|
+// else if (taskId.equalsIgnoreCase("119")) {
|
|
|
+// long start = new Date().getTime();
|
|
|
+// // bfhydService.getBfhyds();
|
|
|
+// tCm0318Service.getDataAsLg();
|
|
|
+// tCm0318Service.getDataAsYlc();
|
|
|
+// tCm0318Service.getDataAsYgx();
|
|
|
+// tCm0318Service.getDataAsEgx();
|
|
|
+// tCm0318Service.getDataAsFdc();
|
|
|
+// tCm0318Service.getDataAsJjc();
|
|
|
+// tCm0318Service.getDataAsWscj();
|
|
|
+//// try {
|
|
|
+//// //tCm0348Service.getDate();
|
|
|
+//// } catch (ParseException e) {
|
|
|
+//// e.printStackTrace();
|
|
|
+//// }
|
|
|
+// logger.info("定时任务"+taskId+"执行时长:" + (new Date().getTime() - start)/1000 + "秒");
|
|
|
+// }
|
|
|
// else if (taskId.equalsIgnoreCase("106")) {
|
|
|
// // 获取MES水质监测数据
|
|
|
// long start = new Date().getTime();
|