|
@@ -233,23 +233,27 @@ 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();
|
|
|
+ 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 + "秒");
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|