123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242 |
- 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);
- // InputOrOutPutService inputOrOutPutService= SpringUtils.getBean("inputOrOutPutService");
- //
- // inputOrOutPutService.initialInputOrOutputSpeed();
- // CacheService cacheService= SpringUtils.getBean("cacheService");
- // cacheService.initRedisCache();
- //
- //
- // Calendar c=Calendar.getInstance();
- // //故障转换率记录调度程序执行开始!
- // TimelinessRateService timelinessRateService= SpringUtils.getBean("timelinessRateService");
- // timelinessRateService.failRate(c.getTime());
- // ProEconEqOriginalService proEconEqOriginalService= SpringUtils.getBean("proEconEqOriginalService");
- // System.out.println("开始生成风机报表指标统计。。。。。。");
- // proEconEqOriginalService.calEquipmentInfoDay(new Date());
- // System.out.println("结束生成风机报表指标统计。。。。。。");
- //
- // Calendar c=Calendar.getInstance();
- // c.set(Calendar.MONTH,1);
- // c.set(Calendar.DAY_OF_MONTH,24);
- // c.set(Calendar.HOUR_OF_DAY, 0);
- // c.set(Calendar.MINUTE, 0);
- // c.set(Calendar.SECOND, 0);
- // c.set(Calendar.MILLISECOND, 0);
- // Date date = c.getTime();
- // ProEconStaOriginalService proEconStaOriginalService= SpringUtils.getBean("proEconStaOriginalService");
- // System.out.println("开始生成场站报表指标统计。。。。。。");
- // proEconStaOriginalService.calEquipmentInfoDay(date);
- // System.out.println("结束生成场站报表指标统计。。。。。。");
- // InitialPointGoldenXkByEqEdosService initialPointGoldenXkByEqEdosService= SpringUtils.getBean("initialPointGoldenXkByEqEdosService");
- //
- //
- //
- // System.out.println("开始导出主变测点。。。。。。");
- // initialPointGoldenXkByEqEdosService.initalZb();
- // System.out.println("结束导出主变测点。。。。。。");
- //
- // System.out.println("开始导出风机测点。。。。。。");
- // initialPointGoldenXkByEqEdosService.initalFj();
- // System.out.println("结束导出风机测点。。。。。。");
- //
- // System.out.println("开始导出风场测点。。。。。。");
- // initialPointGoldenXkByEqEdosService.initalFc();
- // System.out.println("结束导出风场测点。。。。。。");
- //
- //
- // System.out.println("开始导出测风塔风功率AGC测点表。。。。。。");
- // initialPointGoldenXkByEqEdosService.initalFgl();
- // System.out.println("结束导出测风塔风功率AGC测点表。。。。。。");
- //
- // System.out.println("开始导出气象测点表。。。。。。");
- // initialPointGoldenXkByEqEdosService.initalQx();
- // System.out.println("结束导出气象测点表。。。。。。");
- //
- // PowerCurveFittingByTimeService powerCurveFittingByTimeService= SpringUtils.getBean("powerCurveFittingByTimeService");
- // Calendar c=Calendar.getInstance();
- //// c.set(Calendar.MONTH,7);
- //// c.set(Calendar.DAY_OF_MONTH,2);
- // Date date =c.getTime();
- //
- // powerCurveFittingByTimeService.cureFittingMonth(date,"1");
- // powerCurveFittingByTimeService.cureFittingYear(date);
- // CacheService cacheService= SpringUtils.getBean("cacheService");
- // cacheService.initRedisCache();
- // InputOrOutPutService inputOrOutPutService= SpringUtils.getBean("inputOrOutPutService");
- // inputOrOutPutService.inputOrOutput(new Date());
- // Calendar c=Calendar.getInstance();
- // c.set(Calendar.MONTH,7);
- // c.set(Calendar.DAY_OF_MONTH,2);
- // c.set(Calendar.HOUR_OF_DAY, 0);
- // c.set(Calendar.MINUTE, 0);
- // c.set(Calendar.SECOND, 0);
- // c.set(Calendar.MILLISECOND, 0);
- // Date date = c.getTime();
- //
- // for(int i=0;i<288*10;i++)
- // {
- // inputOrOutPutService.inputOrOutputSpeed(date);
- // c.add(Calendar.MINUTE, 6);
- // date = c.getTime();
- // System.out.println("date"+DateUtils.toDate1(date));
- // }
- // while (true)
- // {
- // inputOrOutPutService.inputOrOutputSpeed(new Date());
- // }
- //
- // Date date =new Date();
- //
- // Calendar c=Calendar.getInstance();
- // c.set(Calendar.MONTH,1);
- // c.set(Calendar.DAY_OF_MONTH,10);
- // Date date = DateUtils.truncate(c.getTime());
- //
- // for (int i = 0; i < 6; i++) {
- //
- // WindPowerInfo1Service windPowerInfo1Service = SpringUtils.getBean("windPowerInfo1Service");
- //
- // windPowerInfo1Service.calLineInfoDay(date);
- // windPowerInfo1Service.calProjectInfoDay(date);
- // windPowerInfo1Service.calWindpowerInfoDay(date);
- // windPowerInfo1Service.calCompanyInfoDay(date);
- // windPowerInfo1Service.calRegionInfoDay(date);
- //
- // WindPowerInfo2Service windPowerInfo2Service = SpringUtils.getBean("windPowerInfo2Service");
- // windPowerInfo2Service.calLineInfoDay(date);
- // windPowerInfo2Service.calProjectInfoDay(date);
- // windPowerInfo2Service.calWindpowerInfoDay(date);
- // windPowerInfo2Service.calCompanyInfoDay(date);
- // windPowerInfo2Service.calRegionInfoDay(date);
- //
- // WindPowerInfo3Service windPowerInfo3Service = SpringUtils.getBean("windPowerInfo3Service");
- // windPowerInfo3Service.calLineInfoDay(date);
- // windPowerInfo3Service.calProjectInfoDay(date);
- // windPowerInfo3Service.calWindpowerInfoDay(date);
- // windPowerInfo3Service.calCompanyInfoDay(date);
- // windPowerInfo3Service.calRegionInfoDay(date);
- //
- // WindPowerInfo4Service windPowerInfo4Service = SpringUtils.getBean("windPowerInfo4Service");
- // windPowerInfo4Service.calLineInfoDay(date);
- // windPowerInfo4Service.calProjectInfoDay(date);
- // windPowerInfo4Service.calWindpowerInfoDay(date);
- // windPowerInfo4Service.calCompanyInfoDay(date);
- // windPowerInfo4Service.calRegionInfoDay(date);
- //
- // WindPowerInfo5Service windPowerInfo5Service = SpringUtils.getBean("windPowerInfo5Service");
- // windPowerInfo5Service.calLineInfoDay(date);
- // windPowerInfo5Service.calProjectInfoDay(date);
- // windPowerInfo5Service.calWindpowerInfoDay(date);
- // windPowerInfo5Service.calCompanyInfoDay(date);
- // windPowerInfo5Service.calRegionInfoDay(date);
- //
- // WindPowerInfo6Service windPowerInfo6Service = SpringUtils.getBean("windPowerInfo6Service");
- // windPowerInfo6Service.calLineInfoDay(date);
- // windPowerInfo6Service.calProjectInfoDay(date);
- // windPowerInfo6Service.calWindpowerInfoDay(date);
- // windPowerInfo6Service.calCompanyInfoDay(date);
- // windPowerInfo6Service.calRegionInfoDay(date);
- //
- //
- // EquipmentInfo1Service equipmentInfo1Service = SpringUtils.getBean("equipmentInfo1Service");
- // equipmentInfo1Service.calEquipmentInfoDay(date);
- // EquipmentInfo2Service equipmentInfo2Service = SpringUtils.getBean("equipmentInfo2Service");
- // equipmentInfo2Service.calEquipmentInfoDay(date);
- // EquipmentInfo3Service equipmentInfo3Service = SpringUtils.getBean("equipmentInfo3Service");
- // equipmentInfo3Service.calEquipmentInfoDay(date);
- // EquipmentInfo4Service equipmentInfo4Service = SpringUtils.getBean("equipmentInfo4Service");
- // equipmentInfo4Service.calEquipmentInfoDay(date);
- // EquipmentInfo5Service equipmentInfo5Service = SpringUtils.getBean("equipmentInfo5Service");
- // equipmentInfo5Service.calEquipmentInfoDay(date);
- //
- //
- // WtAlysisDayService wtAlysisDayService = SpringUtils.getBean("wtAlysisDayService");
- // wtAlysisDayService.calEquipmentInfoDay(date);
- //
- // EquipmentInfoDayTopService equipmentInfoDayTopService = SpringUtils.getBean("equipmentInfoDayTopService");
- // equipmentInfoDayTopService.calEquipmentInfoDayTop(date);
- // equipmentInfoDayTopService.calEquipmentInfoMonthTop(date);
- // equipmentInfoDayTopService.calEquipmentInfoYearTop(date);
- // c.add(Calendar.DAY_OF_MONTH, 1);
- // date = c.getTime();
- // System.out.println(DateUtils.toDate1(date)+"完成");
- //
- // }
- //
- //
- //
- // Calendar c=Calendar.getInstance();
- // c.set(Calendar.MONTH,1);
- // c.set(Calendar.DAY_OF_MONTH,10);
- // Date date = DateUtils.truncate(c.getTime());
- //
- // for (int i = 0; i < 2; i++) {
- //
- // WindturbineGoodnessService windturbineGoodnessService= SpringUtils.getBean("windturbineGoodnessService");
- // windturbineGoodnessService.calWindturbineGoodness(c.getTime());
- // c.add(Calendar.DAY_OF_MONTH, 1);
- // date = c.getTime();
- // System.out.println(DateUtils.toDate1(date)+"完成");
- //
- // }
- //
- //
- // Calendar c=Calendar.getInstance();
- // c.set(Calendar.MONTH,7);
- // c.set(Calendar.DAY_OF_MONTH,31);
- // PowerCurveFittingByTimeService powerCurveFittingByTimeService= SpringUtils.getBean("powerCurveFittingByTimeService");
- //// powerCurveFittingByTimeService.cureFittingDay(c.getTime());
- // powerCurveFittingByTimeService.cureFittingMonth(c.getTime(),"0");
- //// powerCurveFittingByTimeService.cureFittingYear(c.getTime());
- // Date end=new Date();
- // System.out.println("执行用时"+ DateUtils.secondsDiff(date,end) +"秒");
- // System.out.println("计算完成");
- //
- // CacheService cacheService= SpringUtils.getBean("cacheService");
- // cacheService.initRedisCache();
- //
- // PowerCurveFittingModelService powerCurveFittingModelService= SpringUtils.getBean("powerCurveFittingModelService");
- // powerCurveFittingModelService.cureFittingModel();
- ////
- // Calendar c=Calendar.getInstance();
- // c.set(Calendar.MONTH,7);
- // c.set(Calendar.DAY_OF_MONTH,2);
- // WindturbineGoodnessService windturbineGoodnessService= SpringUtils.getBean("windturbineGoodnessService");
- // windturbineGoodnessService.calWindturbineGoodness(c.getTime());
- //
- // WtwindDayInfoService wtwindDayInfoService= SpringUtils.getBean("wtwindDayInfoService");
- // Date date =c.getTime();
- // wtwindDayInfoService.calWpwindDayInfo(c.getTime());
- //
- // WpwindDayInfoService wpwindDayInfoService= SpringUtils.getBean("wpwindDayInfoService");
- // c=Calendar.getInstance();
- // c.set(Calendar.MONTH,7);
- // c.set(Calendar.DAY_OF_MONTH,2);
- // date =c.getTime();
- //
- // wpwindDayInfoService.calWpwindDayInfo(c.getTime());
- System.out.println("完成");
- }
- }
|