GenerationMain.java 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. package com.gyee.generation;
  2. import org.mybatis.spring.annotation.MapperScan;
  3. import org.springframework.boot.SpringApplication;
  4. import org.springframework.boot.autoconfigure.SpringBootApplication;
  5. /**
  6. * @ClassName : GenerationMain
  7. * @Author : xieshengjie
  8. * @Date: 2022/2/28 14:55
  9. * @Description :
  10. */
  11. @SpringBootApplication
  12. @MapperScan("com.gyee.generation.mapper")
  13. public class GenerationMain {
  14. public static void main(String[] args) throws Exception {
  15. SpringApplication.run(GenerationMain.class, args);
  16. // InputOrOutPutService inputOrOutPutService= SpringUtils.getBean("inputOrOutPutService");
  17. //
  18. // inputOrOutPutService.initialInputOrOutputSpeed();
  19. // CacheService cacheService= SpringUtils.getBean("cacheService");
  20. // cacheService.initRedisCache();
  21. //
  22. //
  23. // Calendar c=Calendar.getInstance();
  24. // //故障转换率记录调度程序执行开始!
  25. // TimelinessRateService timelinessRateService= SpringUtils.getBean("timelinessRateService");
  26. // timelinessRateService.failRate(c.getTime());
  27. // ProEconEqOriginalService proEconEqOriginalService= SpringUtils.getBean("proEconEqOriginalService");
  28. // System.out.println("开始生成风机报表指标统计。。。。。。");
  29. // proEconEqOriginalService.calEquipmentInfoDay(new Date());
  30. // System.out.println("结束生成风机报表指标统计。。。。。。");
  31. //
  32. // Calendar c=Calendar.getInstance();
  33. // c.set(Calendar.MONTH,1);
  34. // c.set(Calendar.DAY_OF_MONTH,24);
  35. // c.set(Calendar.HOUR_OF_DAY, 0);
  36. // c.set(Calendar.MINUTE, 0);
  37. // c.set(Calendar.SECOND, 0);
  38. // c.set(Calendar.MILLISECOND, 0);
  39. // Date date = c.getTime();
  40. // ProEconStaOriginalService proEconStaOriginalService= SpringUtils.getBean("proEconStaOriginalService");
  41. // System.out.println("开始生成场站报表指标统计。。。。。。");
  42. // proEconStaOriginalService.calEquipmentInfoDay(date);
  43. // System.out.println("结束生成场站报表指标统计。。。。。。");
  44. // InitialPointGoldenXkByEqEdosService initialPointGoldenXkByEqEdosService= SpringUtils.getBean("initialPointGoldenXkByEqEdosService");
  45. //
  46. //
  47. //
  48. // System.out.println("开始导出主变测点。。。。。。");
  49. // initialPointGoldenXkByEqEdosService.initalZb();
  50. // System.out.println("结束导出主变测点。。。。。。");
  51. //
  52. // System.out.println("开始导出风机测点。。。。。。");
  53. // initialPointGoldenXkByEqEdosService.initalFj();
  54. // System.out.println("结束导出风机测点。。。。。。");
  55. //
  56. // System.out.println("开始导出风场测点。。。。。。");
  57. // initialPointGoldenXkByEqEdosService.initalFc();
  58. // System.out.println("结束导出风场测点。。。。。。");
  59. //
  60. //
  61. // System.out.println("开始导出测风塔风功率AGC测点表。。。。。。");
  62. // initialPointGoldenXkByEqEdosService.initalFgl();
  63. // System.out.println("结束导出测风塔风功率AGC测点表。。。。。。");
  64. //
  65. // System.out.println("开始导出气象测点表。。。。。。");
  66. // initialPointGoldenXkByEqEdosService.initalQx();
  67. // System.out.println("结束导出气象测点表。。。。。。");
  68. //
  69. // PowerCurveFittingByTimeService powerCurveFittingByTimeService= SpringUtils.getBean("powerCurveFittingByTimeService");
  70. // Calendar c=Calendar.getInstance();
  71. //// c.set(Calendar.MONTH,7);
  72. //// c.set(Calendar.DAY_OF_MONTH,2);
  73. // Date date =c.getTime();
  74. //
  75. // powerCurveFittingByTimeService.cureFittingMonth(date,"1");
  76. // powerCurveFittingByTimeService.cureFittingYear(date);
  77. // CacheService cacheService= SpringUtils.getBean("cacheService");
  78. // cacheService.initRedisCache();
  79. // InputOrOutPutService inputOrOutPutService= SpringUtils.getBean("inputOrOutPutService");
  80. // inputOrOutPutService.inputOrOutput(new Date());
  81. // Calendar c=Calendar.getInstance();
  82. // c.set(Calendar.MONTH,7);
  83. // c.set(Calendar.DAY_OF_MONTH,2);
  84. // c.set(Calendar.HOUR_OF_DAY, 0);
  85. // c.set(Calendar.MINUTE, 0);
  86. // c.set(Calendar.SECOND, 0);
  87. // c.set(Calendar.MILLISECOND, 0);
  88. // Date date = c.getTime();
  89. //
  90. // for(int i=0;i<288*10;i++)
  91. // {
  92. // inputOrOutPutService.inputOrOutputSpeed(date);
  93. // c.add(Calendar.MINUTE, 6);
  94. // date = c.getTime();
  95. // System.out.println("date"+DateUtils.toDate1(date));
  96. // }
  97. // while (true)
  98. // {
  99. // inputOrOutPutService.inputOrOutputSpeed(new Date());
  100. // }
  101. //
  102. // Date date =new Date();
  103. //
  104. // Calendar c=Calendar.getInstance();
  105. // c.set(Calendar.MONTH,1);
  106. // c.set(Calendar.DAY_OF_MONTH,10);
  107. // Date date = DateUtils.truncate(c.getTime());
  108. //
  109. // for (int i = 0; i < 6; i++) {
  110. //
  111. // WindPowerInfo1Service windPowerInfo1Service = SpringUtils.getBean("windPowerInfo1Service");
  112. //
  113. // windPowerInfo1Service.calLineInfoDay(date);
  114. // windPowerInfo1Service.calProjectInfoDay(date);
  115. // windPowerInfo1Service.calWindpowerInfoDay(date);
  116. // windPowerInfo1Service.calCompanyInfoDay(date);
  117. // windPowerInfo1Service.calRegionInfoDay(date);
  118. //
  119. // WindPowerInfo2Service windPowerInfo2Service = SpringUtils.getBean("windPowerInfo2Service");
  120. // windPowerInfo2Service.calLineInfoDay(date);
  121. // windPowerInfo2Service.calProjectInfoDay(date);
  122. // windPowerInfo2Service.calWindpowerInfoDay(date);
  123. // windPowerInfo2Service.calCompanyInfoDay(date);
  124. // windPowerInfo2Service.calRegionInfoDay(date);
  125. //
  126. // WindPowerInfo3Service windPowerInfo3Service = SpringUtils.getBean("windPowerInfo3Service");
  127. // windPowerInfo3Service.calLineInfoDay(date);
  128. // windPowerInfo3Service.calProjectInfoDay(date);
  129. // windPowerInfo3Service.calWindpowerInfoDay(date);
  130. // windPowerInfo3Service.calCompanyInfoDay(date);
  131. // windPowerInfo3Service.calRegionInfoDay(date);
  132. //
  133. // WindPowerInfo4Service windPowerInfo4Service = SpringUtils.getBean("windPowerInfo4Service");
  134. // windPowerInfo4Service.calLineInfoDay(date);
  135. // windPowerInfo4Service.calProjectInfoDay(date);
  136. // windPowerInfo4Service.calWindpowerInfoDay(date);
  137. // windPowerInfo4Service.calCompanyInfoDay(date);
  138. // windPowerInfo4Service.calRegionInfoDay(date);
  139. //
  140. // WindPowerInfo5Service windPowerInfo5Service = SpringUtils.getBean("windPowerInfo5Service");
  141. // windPowerInfo5Service.calLineInfoDay(date);
  142. // windPowerInfo5Service.calProjectInfoDay(date);
  143. // windPowerInfo5Service.calWindpowerInfoDay(date);
  144. // windPowerInfo5Service.calCompanyInfoDay(date);
  145. // windPowerInfo5Service.calRegionInfoDay(date);
  146. //
  147. // WindPowerInfo6Service windPowerInfo6Service = SpringUtils.getBean("windPowerInfo6Service");
  148. // windPowerInfo6Service.calLineInfoDay(date);
  149. // windPowerInfo6Service.calProjectInfoDay(date);
  150. // windPowerInfo6Service.calWindpowerInfoDay(date);
  151. // windPowerInfo6Service.calCompanyInfoDay(date);
  152. // windPowerInfo6Service.calRegionInfoDay(date);
  153. //
  154. //
  155. // EquipmentInfo1Service equipmentInfo1Service = SpringUtils.getBean("equipmentInfo1Service");
  156. // equipmentInfo1Service.calEquipmentInfoDay(date);
  157. // EquipmentInfo2Service equipmentInfo2Service = SpringUtils.getBean("equipmentInfo2Service");
  158. // equipmentInfo2Service.calEquipmentInfoDay(date);
  159. // EquipmentInfo3Service equipmentInfo3Service = SpringUtils.getBean("equipmentInfo3Service");
  160. // equipmentInfo3Service.calEquipmentInfoDay(date);
  161. // EquipmentInfo4Service equipmentInfo4Service = SpringUtils.getBean("equipmentInfo4Service");
  162. // equipmentInfo4Service.calEquipmentInfoDay(date);
  163. // EquipmentInfo5Service equipmentInfo5Service = SpringUtils.getBean("equipmentInfo5Service");
  164. // equipmentInfo5Service.calEquipmentInfoDay(date);
  165. //
  166. //
  167. // WtAlysisDayService wtAlysisDayService = SpringUtils.getBean("wtAlysisDayService");
  168. // wtAlysisDayService.calEquipmentInfoDay(date);
  169. //
  170. // EquipmentInfoDayTopService equipmentInfoDayTopService = SpringUtils.getBean("equipmentInfoDayTopService");
  171. // equipmentInfoDayTopService.calEquipmentInfoDayTop(date);
  172. // equipmentInfoDayTopService.calEquipmentInfoMonthTop(date);
  173. // equipmentInfoDayTopService.calEquipmentInfoYearTop(date);
  174. // c.add(Calendar.DAY_OF_MONTH, 1);
  175. // date = c.getTime();
  176. // System.out.println(DateUtils.toDate1(date)+"完成");
  177. //
  178. // }
  179. //
  180. //
  181. //
  182. // Calendar c=Calendar.getInstance();
  183. // c.set(Calendar.MONTH,1);
  184. // c.set(Calendar.DAY_OF_MONTH,10);
  185. // Date date = DateUtils.truncate(c.getTime());
  186. //
  187. // for (int i = 0; i < 2; i++) {
  188. //
  189. // WindturbineGoodnessService windturbineGoodnessService= SpringUtils.getBean("windturbineGoodnessService");
  190. // windturbineGoodnessService.calWindturbineGoodness(c.getTime());
  191. // c.add(Calendar.DAY_OF_MONTH, 1);
  192. // date = c.getTime();
  193. // System.out.println(DateUtils.toDate1(date)+"完成");
  194. //
  195. // }
  196. //
  197. //
  198. // Calendar c=Calendar.getInstance();
  199. // c.set(Calendar.MONTH,7);
  200. // c.set(Calendar.DAY_OF_MONTH,31);
  201. // PowerCurveFittingByTimeService powerCurveFittingByTimeService= SpringUtils.getBean("powerCurveFittingByTimeService");
  202. //// powerCurveFittingByTimeService.cureFittingDay(c.getTime());
  203. // powerCurveFittingByTimeService.cureFittingMonth(c.getTime(),"0");
  204. //// powerCurveFittingByTimeService.cureFittingYear(c.getTime());
  205. // Date end=new Date();
  206. // System.out.println("执行用时"+ DateUtils.secondsDiff(date,end) +"秒");
  207. // System.out.println("计算完成");
  208. //
  209. // CacheService cacheService= SpringUtils.getBean("cacheService");
  210. // cacheService.initRedisCache();
  211. //
  212. // PowerCurveFittingModelService powerCurveFittingModelService= SpringUtils.getBean("powerCurveFittingModelService");
  213. // powerCurveFittingModelService.cureFittingModel();
  214. ////
  215. // Calendar c=Calendar.getInstance();
  216. // c.set(Calendar.MONTH,7);
  217. // c.set(Calendar.DAY_OF_MONTH,2);
  218. // WindturbineGoodnessService windturbineGoodnessService= SpringUtils.getBean("windturbineGoodnessService");
  219. // windturbineGoodnessService.calWindturbineGoodness(c.getTime());
  220. //
  221. // WtwindDayInfoService wtwindDayInfoService= SpringUtils.getBean("wtwindDayInfoService");
  222. // Date date =c.getTime();
  223. // wtwindDayInfoService.calWpwindDayInfo(c.getTime());
  224. //
  225. // WpwindDayInfoService wpwindDayInfoService= SpringUtils.getBean("wpwindDayInfoService");
  226. // c=Calendar.getInstance();
  227. // c.set(Calendar.MONTH,7);
  228. // c.set(Calendar.DAY_OF_MONTH,2);
  229. // date =c.getTime();
  230. //
  231. // wpwindDayInfoService.calWpwindDayInfo(c.getTime());
  232. System.out.println("完成");
  233. }
  234. }