package com.gyee.generation; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; /** * @ClassName : GenerationMain * @Author : xieshengjie * @Date: 2022/2/28 14:55 * @Description : */ @SpringBootApplication @MapperScan("com.gyee.generation.mapper") 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.MONTH, 7); // c.set(Calendar.DAY_OF_MONTH, 1); // // // c.setTime(DateUtils.truncate(c.getTime())); // // // // begin = new Date(); // System.out.println("设备指标记录调度程序执行开始!。。。。。。"); // for (int i = 0; i < 30; 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()); // // // // 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()); // // // // // 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); // // System.out.println("完成"); } }