|
@@ -1,15 +1,9 @@
|
|
|
package com.gyee.generation;
|
|
|
|
|
|
-import com.gyee.common.util.DateUtils;
|
|
|
-import com.gyee.generation.service.*;
|
|
|
-import com.gyee.generation.util.SpringUtils;
|
|
|
import org.mybatis.spring.annotation.MapperScan;
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
|
|
|
-import java.util.Calendar;
|
|
|
-import java.util.Date;
|
|
|
-
|
|
|
/**
|
|
|
* @ClassName : GenerationMain
|
|
|
* @Author : xieshengjie
|
|
@@ -21,83 +15,83 @@ import java.util.Date;
|
|
|
public class GenerationMain {
|
|
|
public static void main(String[] args) throws Exception {
|
|
|
SpringApplication.run(GenerationMain.class, args);
|
|
|
-
|
|
|
-
|
|
|
- Calendar c = Calendar.getInstance();
|
|
|
- Date begin = null;
|
|
|
- Date end = null;
|
|
|
- c.set(Calendar.DAY_OF_MONTH, 10);
|
|
|
-
|
|
|
- c.setTime(DateUtils.truncate(c.getTime()));
|
|
|
-
|
|
|
- begin = new Date();
|
|
|
- System.out.println("设备指标记录调度程序执行开始!。。。。。。");
|
|
|
- for (int i = 0; i < 8; i++) {
|
|
|
-
|
|
|
-
|
|
|
- System.out.println(DateUtils.format(c.getTime(), "yyyy-MM-dd HH:mm:ss").toString());
|
|
|
-
|
|
|
- EquipmentInfo1Service equipmentInfo1Service = SpringUtils.getBean("equipmentInfo1Service");
|
|
|
- EquipmentInfo2Service equipmentInfo2Service = SpringUtils.getBean("equipmentInfo2Service");
|
|
|
- EquipmentInfo3Service equipmentInfo3Service = SpringUtils.getBean("equipmentInfo3Service");
|
|
|
- EquipmentInfo4Service equipmentInfo4Service = SpringUtils.getBean("equipmentInfo4Service");
|
|
|
- EquipmentInfo5Service equipmentInfo5Service = SpringUtils.getBean("equipmentInfo5Service");
|
|
|
- EquipmentInfoDayTopService equipmentInfoDayTopService = SpringUtils.getBean("equipmentInfoDayTopService");
|
|
|
- WtAlysisDayService wtAlysisDayService = SpringUtils.getBean("wtAlysisDayService");
|
|
|
-
|
|
|
- equipmentInfo1Service.calEquipmentInfoDay(c.getTime());
|
|
|
- equipmentInfo2Service.calEquipmentInfoDay(c.getTime());
|
|
|
- equipmentInfo3Service.calEquipmentInfoDay(c.getTime());
|
|
|
- equipmentInfo5Service.calEquipmentInfoDay(c.getTime());
|
|
|
- equipmentInfo4Service.calEquipmentInfoDay(c.getTime());
|
|
|
-
|
|
|
-
|
|
|
- equipmentInfoDayTopService.calEquipmentInfoDayTop(c.getTime());
|
|
|
- equipmentInfoDayTopService.calEquipmentInfoMonthTop(c.getTime());
|
|
|
- equipmentInfoDayTopService.calEquipmentInfoYearTop(c.getTime());
|
|
|
-
|
|
|
- wtAlysisDayService.calEquipmentInfoDay(c.getTime());
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- WindPowerInfo1Service windPowerInfo1Service = SpringUtils.getBean("windPowerInfo1Service");
|
|
|
- WindPowerInfo2Service windPowerInfo2Service = SpringUtils.getBean("windPowerInfo2Service");
|
|
|
- WindPowerInfo3Service windPowerInfo3Service = SpringUtils.getBean("windPowerInfo3Service");
|
|
|
- WindPowerInfo4Service windPowerInfo4Service = SpringUtils.getBean("windPowerInfo4Service");
|
|
|
-// WindPowerInfo5Service windPowerInfo5Service = SpringUtils.getBean("windPowerInfo5Service");
|
|
|
- WindPowerInfo6Service windPowerInfo6Service = SpringUtils.getBean("windPowerInfo6Service");
|
|
|
-
|
|
|
- windPowerInfo1Service.calLineInfoDay(c.getTime());
|
|
|
- windPowerInfo1Service.calProjectInfoDay(c.getTime());
|
|
|
- windPowerInfo1Service.calWindpowerInfoDay(c.getTime());
|
|
|
- windPowerInfo1Service.calCompanyInfoDay(c.getTime());
|
|
|
- windPowerInfo1Service.calRegionInfoDay(c.getTime());
|
|
|
-
|
|
|
- windPowerInfo2Service.calLineInfoDay(c.getTime());
|
|
|
- windPowerInfo2Service.calProjectInfoDay(c.getTime());
|
|
|
- windPowerInfo2Service.calWindpowerInfoDay(c.getTime());
|
|
|
- windPowerInfo2Service.calCompanyInfoDay(c.getTime());
|
|
|
- windPowerInfo2Service.calRegionInfoDay(c.getTime());
|
|
|
-
|
|
|
- windPowerInfo3Service.calLineInfoDay(c.getTime());
|
|
|
- windPowerInfo3Service.calProjectInfoDay(c.getTime());
|
|
|
- windPowerInfo3Service.calWindpowerInfoDay(c.getTime());
|
|
|
- windPowerInfo3Service.calCompanyInfoDay(c.getTime());
|
|
|
- windPowerInfo3Service.calRegionInfoDay(c.getTime());
|
|
|
-
|
|
|
- windPowerInfo4Service.calLineInfoDay(c.getTime());
|
|
|
- windPowerInfo4Service.calProjectInfoDay(c.getTime());
|
|
|
- windPowerInfo4Service.calWindpowerInfoDay(c.getTime());
|
|
|
- windPowerInfo4Service.calCompanyInfoDay(c.getTime());
|
|
|
-
|
|
|
- c.add(Calendar.DAY_OF_MONTH, 1);
|
|
|
- System.out.println(end);
|
|
|
- System.out.println("完成一次!。。。。。。");
|
|
|
- }
|
|
|
- System.out.println("设备指标记录调度程序执行结束!。。。。。。");
|
|
|
- end=new Date();
|
|
|
- System.out.println("执行用时"+ DateUtils.secondsDiff(begin,end) +"秒");
|
|
|
- System.out.println(end);
|
|
|
+//
|
|
|
+//
|
|
|
+// Calendar c = Calendar.getInstance();
|
|
|
+// Date begin = null;
|
|
|
+// Date end = null;
|
|
|
+// c.set(Calendar.DAY_OF_MONTH, 10);
|
|
|
+//
|
|
|
+// c.setTime(DateUtils.truncate(c.getTime()));
|
|
|
+//
|
|
|
+// begin = new Date();
|
|
|
+// System.out.println("设备指标记录调度程序执行开始!。。。。。。");
|
|
|
+// for (int i = 0; i < 8; i++) {
|
|
|
+//
|
|
|
+//
|
|
|
+// System.out.println(DateUtils.format(c.getTime(), "yyyy-MM-dd HH:mm:ss").toString());
|
|
|
+//
|
|
|
+// EquipmentInfo1Service equipmentInfo1Service = SpringUtils.getBean("equipmentInfo1Service");
|
|
|
+// EquipmentInfo2Service equipmentInfo2Service = SpringUtils.getBean("equipmentInfo2Service");
|
|
|
+// EquipmentInfo3Service equipmentInfo3Service = SpringUtils.getBean("equipmentInfo3Service");
|
|
|
+// EquipmentInfo4Service equipmentInfo4Service = SpringUtils.getBean("equipmentInfo4Service");
|
|
|
+// EquipmentInfo5Service equipmentInfo5Service = SpringUtils.getBean("equipmentInfo5Service");
|
|
|
+// EquipmentInfoDayTopService equipmentInfoDayTopService = SpringUtils.getBean("equipmentInfoDayTopService");
|
|
|
+// WtAlysisDayService wtAlysisDayService = SpringUtils.getBean("wtAlysisDayService");
|
|
|
+//
|
|
|
+// equipmentInfo1Service.calEquipmentInfoDay(c.getTime());
|
|
|
+// equipmentInfo2Service.calEquipmentInfoDay(c.getTime());
|
|
|
+// equipmentInfo3Service.calEquipmentInfoDay(c.getTime());
|
|
|
+// equipmentInfo5Service.calEquipmentInfoDay(c.getTime());
|
|
|
+// equipmentInfo4Service.calEquipmentInfoDay(c.getTime());
|
|
|
+//
|
|
|
+//
|
|
|
+// equipmentInfoDayTopService.calEquipmentInfoDayTop(c.getTime());
|
|
|
+// equipmentInfoDayTopService.calEquipmentInfoMonthTop(c.getTime());
|
|
|
+// equipmentInfoDayTopService.calEquipmentInfoYearTop(c.getTime());
|
|
|
+//
|
|
|
+// wtAlysisDayService.calEquipmentInfoDay(c.getTime());
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+// WindPowerInfo1Service windPowerInfo1Service = SpringUtils.getBean("windPowerInfo1Service");
|
|
|
+// WindPowerInfo2Service windPowerInfo2Service = SpringUtils.getBean("windPowerInfo2Service");
|
|
|
+// WindPowerInfo3Service windPowerInfo3Service = SpringUtils.getBean("windPowerInfo3Service");
|
|
|
+// WindPowerInfo4Service windPowerInfo4Service = SpringUtils.getBean("windPowerInfo4Service");
|
|
|
+//// WindPowerInfo5Service windPowerInfo5Service = SpringUtils.getBean("windPowerInfo5Service");
|
|
|
+// WindPowerInfo6Service windPowerInfo6Service = SpringUtils.getBean("windPowerInfo6Service");
|
|
|
+//
|
|
|
+// windPowerInfo1Service.calLineInfoDay(c.getTime());
|
|
|
+// windPowerInfo1Service.calProjectInfoDay(c.getTime());
|
|
|
+// windPowerInfo1Service.calWindpowerInfoDay(c.getTime());
|
|
|
+// windPowerInfo1Service.calCompanyInfoDay(c.getTime());
|
|
|
+// windPowerInfo1Service.calRegionInfoDay(c.getTime());
|
|
|
+//
|
|
|
+// windPowerInfo2Service.calLineInfoDay(c.getTime());
|
|
|
+// windPowerInfo2Service.calProjectInfoDay(c.getTime());
|
|
|
+// windPowerInfo2Service.calWindpowerInfoDay(c.getTime());
|
|
|
+// windPowerInfo2Service.calCompanyInfoDay(c.getTime());
|
|
|
+// windPowerInfo2Service.calRegionInfoDay(c.getTime());
|
|
|
+//
|
|
|
+// windPowerInfo3Service.calLineInfoDay(c.getTime());
|
|
|
+// windPowerInfo3Service.calProjectInfoDay(c.getTime());
|
|
|
+// windPowerInfo3Service.calWindpowerInfoDay(c.getTime());
|
|
|
+// windPowerInfo3Service.calCompanyInfoDay(c.getTime());
|
|
|
+// windPowerInfo3Service.calRegionInfoDay(c.getTime());
|
|
|
+//
|
|
|
+// windPowerInfo4Service.calLineInfoDay(c.getTime());
|
|
|
+// windPowerInfo4Service.calProjectInfoDay(c.getTime());
|
|
|
+// windPowerInfo4Service.calWindpowerInfoDay(c.getTime());
|
|
|
+// windPowerInfo4Service.calCompanyInfoDay(c.getTime());
|
|
|
+//
|
|
|
+// c.add(Calendar.DAY_OF_MONTH, 1);
|
|
|
+// System.out.println(end);
|
|
|
+// System.out.println("完成一次!。。。。。。");
|
|
|
+// }
|
|
|
+// System.out.println("设备指标记录调度程序执行结束!。。。。。。");
|
|
|
+// end=new Date();
|
|
|
+// System.out.println("执行用时"+ DateUtils.secondsDiff(begin,end) +"秒");
|
|
|
+// System.out.println(end);
|
|
|
|
|
|
// c.set(Calendar.DAY_OF_MONTH, 1);
|
|
|
// c.setTime(DateUtils.truncate(c.getTime()));
|