|
@@ -233,23 +233,27 @@ public class SpringCronTask implements SchedulingConfigurer{
|
|
tRmWorkprocMaterialValueService.setDate(new Date()); // 原材料数据维护
|
|
tRmWorkprocMaterialValueService.setDate(new Date()); // 原材料数据维护
|
|
logger.info("定时任务"+taskId+"执行时长:" + (new Date().getTime() - start)/1000 + "秒");
|
|
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("119")) {
|
|
|
|
+ long start = new Date().getTime();
|
|
|
|
+ bfhydService.getBfhyds();
|
|
|
|
+ try {
|
|
|
|
+ tCm0348Service.getDate();
|
|
|
|
+ } catch (ParseException e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ logger.info("定时任务"+taskId+"执行时长:" + (new Date().getTime() - start)/1000 + "秒");
|
|
|
|
+ }
|
|
|
|
+ else if (taskId.equalsIgnoreCase("122")) {
|
|
|
|
+ long start = new Date().getTime();
|
|
|
|
+ tCm0318Service.getDataAsLg(DateUtils.getDate());
|
|
|
|
+ tCm0318Service.getDataAsYlc(DateUtils.getDate());
|
|
|
|
+ tCm0318Service.getDataAsYgx(DateUtils.getDate());
|
|
|
|
+ tCm0318Service.getDataAsEgx(DateUtils.getDate());
|
|
|
|
+ tCm0318Service.getDataAsFdc(DateUtils.getDate());
|
|
|
|
+ tCm0318Service.getDataAsJjc(DateUtils.getDate());
|
|
|
|
+ tCm0318Service.getDataAsWscj(DateUtils.getDate());
|
|
|
|
+ logger.info("定时任务"+taskId+"执行时长:" + (new Date().getTime() - start)/1000 + "秒");
|
|
|
|
+ }
|
|
// else if (taskId.equalsIgnoreCase("106")) {
|
|
// else if (taskId.equalsIgnoreCase("106")) {
|
|
// // 获取MES水质监测数据
|
|
// // 获取MES水质监测数据
|
|
// long start = new Date().getTime();
|
|
// long start = new Date().getTime();
|