|
@@ -36,68 +36,68 @@ public class GenerationMain {
|
|
|
System.out.println("启动完成");
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ Calendar c1 = Calendar.getInstance();
|
|
|
+
|
|
|
+ c1.add(Calendar.DAY_OF_MONTH, -1);
|
|
|
+ ReCalSevice reCalSevice = SpringUtils.getBean("reCalSevice");
|
|
|
+
|
|
|
+ Calendar c = Calendar.getInstance();
|
|
|
+ Logger logger = LoggerFactory.getLogger(GenerationMain.class);
|
|
|
+
|
|
|
+
|
|
|
+ reCalSevice.calWt(c.getTime());
|
|
|
+
|
|
|
+ while (true) {
|
|
|
+
|
|
|
+ Date begin = new Date();
|
|
|
+ Date end = null;
|
|
|
+ SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
+ logger.info(df.format(c.getTime()).toString());
|
|
|
+
|
|
|
+
|
|
|
+ EquipmentInfo1Service equipmentInfo1Service = SpringUtils.getBean("equipmentInfo1Service");
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ equipmentInfo1Service.calEquipmentInfoDay(begin);
|
|
|
+ logger.info("equipmentInfo1Service完成一次!。。。。。。");
|
|
|
+ TimeUnit.SECONDS.sleep(3);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ logger.info("equipmentInfo5Service开始!。。。。。。");
|
|
|
+ EquipmentInfo5Service equipmentInfo5Service = SpringUtils.getBean("equipmentInfo5Service");
|
|
|
+ TimeUnit.SECONDS.sleep(3);
|
|
|
+ EquipmentInfo4Service equipmentInfo4Service = SpringUtils.getBean("equipmentInfo4Service");
|
|
|
+ TimeUnit.SECONDS.sleep(3);
|
|
|
+ equipmentInfo5Service.calEquipmentInfoDay(begin);
|
|
|
+ logger.info("equipmentInfo5Service完成一次!。。。。。。");
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ WtAlysisDayService wtAlysisDayService = SpringUtils.getBean("wtAlysisDayService");
|
|
|
+
|
|
|
+ EquipmentInfoDayTopService equipmentInfoDayTopService = SpringUtils.getBean("equipmentInfoDayTopService");
|
|
|
+ equipmentInfoDayTopService.calEquipmentInfoDayTop(begin);
|
|
|
+ equipmentInfoDayTopService.calEquipmentInfoMonthTop(begin);
|
|
|
+ equipmentInfoDayTopService.calEquipmentInfoYearTop(begin);
|
|
|
+
|
|
|
+ TimeUnit.SECONDS.sleep(3);
|
|
|
+ logger.info("wtAlysisyService开始!。。。。。。");
|
|
|
+ wtAlysisDayService.calEquipmentInfoDay(begin);
|
|
|
+ logger.info("wtAlysisyService完成!。。。。。。");
|
|
|
+ end = new Date();
|
|
|
+ logger.info(df.format(end).toString());
|
|
|
+ logger.info("完成一次!。。。。。。");
|
|
|
+ logger.info("执行用时" + com.gyee.generation.util.DateUtils.secondsDiff(begin, end) + "秒");
|
|
|
+
|
|
|
+ TimeUnit.MINUTES.sleep(15);
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|