SaticSchedulePgTask.java 58 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796
  1. package com.gyee.generation.task;
  2. import com.gyee.common.util.DateUtils;
  3. import com.gyee.generation.service.*;
  4. import com.gyee.generation.service.StationPower.StationPowerService;
  5. import com.gyee.generation.service.auto.IProEconAnalysisSubtableBottomService;
  6. import com.gyee.generation.util.SpringUtils;
  7. import com.gyee.generation.util.math.AvailablePowerAccuracyCalculator;
  8. import com.gyee.generation.util.math.PowerPredictionErrorCalculator;
  9. import com.gyee.generation.util.math.ShortTermPowerPredictionAccuracyCalculator;
  10. import com.xxl.job.core.context.XxlJobHelper;
  11. import com.xxl.job.core.handler.annotation.XxlJob;
  12. import org.slf4j.Logger;
  13. import org.slf4j.LoggerFactory;
  14. import org.springframework.stereotype.Component;
  15. import javax.annotation.Resource;
  16. import java.text.SimpleDateFormat;
  17. import java.util.Calendar;
  18. import java.util.Date;
  19. /**
  20. * @ClassName : SaticScheduleTask
  21. * @Description : 调度
  22. */
  23. @Component
  24. public class SaticSchedulePgTask {
  25. private static Logger logger = LoggerFactory.getLogger(SaticSchedulePgTask.class);
  26. @Resource
  27. private InputOrOutPutService inputOrOutPutService;
  28. @Resource
  29. private LimitEventnewService limitEventnewService;
  30. @Resource
  31. private PowerCurveFittingByTimeService powerCurveFittingByTimeService;
  32. @Resource
  33. private ShutdownnewService shutdownnewService;
  34. @Resource
  35. private WindPowerInfo1Service windPowerInfo1Service;
  36. @Resource
  37. private WindPowerInfo2Service windPowerInfo2Service;
  38. @Resource
  39. private WindPowerInfo3Service windPowerInfo3Service;
  40. @Resource
  41. private WindPowerInfo4Service windPowerInfo4Service;
  42. @Resource
  43. private WindPowerInfo5Service windPowerInfo5Service;
  44. @Resource
  45. private WindPowerInfo6Service windPowerInfo6Service;
  46. @Resource
  47. private EquipmentInfo1Service equipmentInfo1Service;
  48. @Resource
  49. private EquipmentInfo2Service equipmentInfo2Service;
  50. @Resource
  51. private EquipmentInfo3Service equipmentInfo3Service;
  52. @Resource
  53. private EquipmentInfo4Service equipmentInfo4Service;
  54. @Resource
  55. private EquipmentInfo5Service equipmentInfo5Service;
  56. @Resource
  57. private EquipmentInfoDayTopService equipmentInfoDayTopService;
  58. @Resource
  59. private WindturbineGoodnessService windturbineGoodnessService;
  60. @Resource
  61. private WtAlysisDayService wtAlysisDayService;
  62. @Resource
  63. private WpwindDayInfoService wpwindDayInfoService;
  64. @Resource
  65. private WtwindDayInfoService wtwindDayInfoService;
  66. @Resource
  67. private PowerCurveFittingByTimeGfService powerCurveFittingByTimeGfService;
  68. @Resource
  69. private EquipmentInfo15minuteService equipmentInfo15minuteService;
  70. @Resource
  71. private TimelinessRateService timelinessRateService;
  72. @Resource
  73. private WindDeviationService windDeviationService;
  74. @Resource
  75. private InitialRedisService initialRedisService;
  76. @Resource
  77. private ShortTermPowerPredictionAccuracyCalculator shortTermPowerPredictionAccuracyCalculator;
  78. @Resource
  79. private StationPowerService powerService;
  80. @Resource
  81. private AnalysisNewService analysisNewService;
  82. @Resource
  83. private WindPowerInfo5UpdateService windPowerInfo5UpdateService;
  84. @Resource
  85. private IProEconAnalysisSubtableBottomService iProEconAnalysisSubtableBottomService;
  86. @XxlJob("windPowerInfo5Update")
  87. public void windPowerInfo5Update() {
  88. XxlJobHelper.log("同步电计量电量调度程序执行开始!........");
  89. try {
  90. Calendar c = Calendar.getInstance();
  91. windPowerInfo5UpdateService.calProjectInfoDay(c.getTime());
  92. windPowerInfo5UpdateService.calWindpowerInfoDay(c.getTime());
  93. windPowerInfo5UpdateService.calWindpowerInfoDayCurry();
  94. windPowerInfo5UpdateService.calProjectInfoDayCurry();
  95. } catch (Exception e) {
  96. e.printStackTrace();
  97. }
  98. XxlJobHelper.log("同步电计量电量调度任务处理完成!........");
  99. }
  100. /**
  101. * 缓存Redis散点图数据
  102. * 每天执行一次
  103. */
  104. @XxlJob("initialRedis_PG")
  105. public void initialRedis_PG() {
  106. XxlJobHelper.log("缓存Redis散点图数据调度程序执行开始!........");
  107. try {
  108. // initialRedisService.initialRedisAll();
  109. initialRedisService.intialWtScatter();
  110. } catch (Exception e) {
  111. e.printStackTrace();
  112. }
  113. XxlJobHelper.log("缓存Redis散点图数据调度任务处理完成!........");
  114. }
  115. /**
  116. * 故障转换率
  117. * 每15钟执行一次
  118. */
  119. @XxlJob("calFailRate_PG")
  120. public void calFailRate_PG() {
  121. XxlJobHelper.log("故障转换率记录调度程序执行开始!........");
  122. try {
  123. timelinessRateService.failRate(new Date());
  124. } catch (Exception e) {
  125. e.printStackTrace();
  126. }
  127. XxlJobHelper.log("故障转换率记录调度任务处理完成!........");
  128. }
  129. //3.添加定时任务
  130. /**
  131. * 15分钟数据统计
  132. * 每15分钟执行一次
  133. */
  134. @XxlJob("calEquipmentInfo15minute_PG")
  135. public void calEquipmentInfo15minute_PG() {
  136. XxlJobHelper.log("15分钟数据统计记录调度程序执行开始!........");
  137. try {
  138. equipmentInfo15minuteService.calEquipmentInfo15minute(new Date());
  139. } catch (Exception e) {
  140. e.printStackTrace();
  141. }
  142. XxlJobHelper.log("15分钟数据统计记录调度任务处理完成!........");
  143. }
  144. //3.添加定时任务
  145. /**
  146. * 切入切出统计
  147. * 每5分钟执行一次
  148. */
  149. @XxlJob("inputOrOutPutSpeed_PG")
  150. public void inputOrOutPutSpeed_PG() {
  151. XxlJobHelper.log("切入切出状态切换记录调度程序执行开始!........");
  152. try {
  153. inputOrOutPutService.inputOrOutputSpeed(new Date());
  154. } catch (Exception e) {
  155. e.printStackTrace();
  156. }
  157. XxlJobHelper.log("切入切出状态切换记录调度任务处理完成!........");
  158. }
  159. //3.添加定时任务
  160. /**
  161. * 切入切出统计
  162. * 每天1点执行一次
  163. */
  164. @XxlJob("inputOrOutPut_PG")
  165. public void inputOrOutPut_PG() {
  166. XxlJobHelper.log("切入切出统计调度程序执行开始!........");
  167. try {
  168. inputOrOutPutService.inputOrOutput(new Date());
  169. } catch (Exception e) {
  170. e.printStackTrace();
  171. }
  172. XxlJobHelper.log("切入切出统计调度任务处理完成!........");
  173. }
  174. /**
  175. * 停机记录
  176. * 每5分钟执行一次
  177. */
  178. @XxlJob("shutdown_PG")
  179. public void shutdown_PG() {
  180. XxlJobHelper.log("停机记录调度程序执行开始!........");
  181. try {
  182. while (true) {
  183. Date begin = new Date();
  184. System.out.println("停机记录调度程序执行开始!。。。。。。");
  185. shutdownnewService.execShutdown(new Date());
  186. Date end = new Date();
  187. System.out.println("执行用时" + DateUtils.secondsDiff(begin, end) + "秒");
  188. System.out.println("停机记录调度调度程序执行结束!。。。。。。");
  189. Thread.sleep(2000);
  190. }
  191. } catch (Exception e) {
  192. e.printStackTrace();
  193. }
  194. XxlJobHelper.log("停机记录调度任务处理完成!........");
  195. }
  196. /**
  197. * 限电停机记录
  198. * 每5分钟执行一次
  199. */
  200. @XxlJob("brownouts_PG")
  201. public void brownouts_PG() {
  202. XxlJobHelper.log("限电停机记录调度程序执行开始!........");
  203. try {
  204. limitEventnewService.execBrownouts(new Date());
  205. } catch (Exception e) {
  206. e.printStackTrace();
  207. }
  208. XxlJobHelper.log("限电停机记录调度任务处理完成!........");
  209. }
  210. /**
  211. * 日、月、年功率曲线拟合
  212. * 每天执行一次
  213. */
  214. @XxlJob("powerCurveFittingnew_PG")
  215. public void powerCurveFittingnew_PG() {
  216. XxlJobHelper.log("日、月、年功率曲线拟合调度程序执行开始!........");
  217. Date date=new Date();
  218. try {
  219. // XxlJobHelper.log("日序执行开始!........");
  220. // powerCurveFittingByTimeService.cureFittingDay(date);
  221. // XxlJobHelper.log("日处理完成!........");
  222. XxlJobHelper.log("月序执行开始!........");
  223. powerCurveFittingByTimeService.cureFittingMonth(date,"0",null);
  224. XxlJobHelper.log("月处理完成!........");
  225. // XxlJobHelper.log("年序执行开始!........");
  226. // powerCurveFittingByTimeService.cureFittingYear(date);
  227. // XxlJobHelper.log("年处理完成!........");
  228. // powerCurveFittingByTimeGfService.cureFittingDay(date);
  229. // powerCurveFittingByTimeGfService.cureFittingMonth(date,"0");
  230. // powerCurveFittingByTimeGfService.cureFittingYear(date);
  231. } catch (Exception e) {
  232. e.printStackTrace();
  233. XxlJobHelper.log(e.getMessage());
  234. }
  235. XxlJobHelper.log("日、月、年功率曲线拟合调度任务处理完成!........");
  236. }
  237. /**
  238. * 惠安风电场功率预测
  239. * 每天一次
  240. */
  241. @XxlJob("shutdown_NX_FGS_HA_FDC_STA")
  242. public void shutdown_NX_FGS_HA_FDC_STA() {
  243. XxlJobHelper.log("惠安风电场功率预测调度程序执行开始!........");
  244. Date date = new Date();
  245. try {
  246. XxlJobHelper.log("日序执行开始!........");
  247. powerCurveFittingByTimeService.cureFittingDay(date, "NX_FGS_HA_FDC_STA");
  248. XxlJobHelper.log("日处理完成!........");
  249. XxlJobHelper.log("月序执行开始!........");
  250. powerCurveFittingByTimeService.cureFittingMonth(date, "0", "NX_FGS_HA_FDC_STA");
  251. XxlJobHelper.log("月处理完成!........");
  252. XxlJobHelper.log("年序执行开始!........");
  253. powerCurveFittingByTimeService.cureFittingYear(date, "NX_FGS_HA_FDC_STA");
  254. XxlJobHelper.log("年处理完成!........");
  255. } catch (Exception e) {
  256. e.printStackTrace();
  257. XxlJobHelper.log(e.getMessage());
  258. }
  259. XxlJobHelper.log("惠安风电场功率预测调度任务处理完成!........");
  260. }
  261. /**
  262. * 平鲁高家堰风电场功率预测
  263. * 每天一次
  264. */
  265. @XxlJob("shutdown_SXJ_KGDL_GJY_FDC_STA")
  266. public void shutdown_SXJ_KGDL_GJY_FDC_STA() {
  267. XxlJobHelper.log("平鲁高家堰风电场功率预测调度程序执行开始!........");
  268. Date date = new Date();
  269. try {
  270. XxlJobHelper.log("日序执行开始!........");
  271. powerCurveFittingByTimeService.cureFittingDay(date, "SXJ_KGDL_GJY_FDC_STA");
  272. XxlJobHelper.log("日处理完成!........");
  273. XxlJobHelper.log("月序执行开始!........");
  274. powerCurveFittingByTimeService.cureFittingMonth(date, "0", "SXJ_KGDL_GJY_FDC_STA");
  275. XxlJobHelper.log("月处理完成!........");
  276. // XxlJobHelper.log("年序执行开始!........");
  277. // powerCurveFittingByTimeService.cureFittingYear(date, "SXJ_KGDL_GJY_FDC_STA");
  278. // XxlJobHelper.log("年处理完成!........");
  279. } catch (Exception e) {
  280. e.printStackTrace();
  281. XxlJobHelper.log(e.getMessage());
  282. }
  283. XxlJobHelper.log("平鲁高家堰风电场功率预测调度任务处理完成!........");
  284. }
  285. /**
  286. * 平鲁败虎堡风电场功率预测
  287. * 每天一次
  288. */
  289. @XxlJob("shutdown_SXJ_KGDL_BHB_FDC_STA")
  290. public void shutdown_SXJ_KGDL_BHB_FDC_STA() {
  291. XxlJobHelper.log("平鲁败虎堡风电场功率预测调度程序执行开始!........");
  292. Date date = new Date();
  293. try {
  294. XxlJobHelper.log("日序执行开始!........");
  295. powerCurveFittingByTimeService.cureFittingDay(date, "SXJ_KGDL_BHB_FDC_STA");
  296. XxlJobHelper.log("日处理完成!........");
  297. XxlJobHelper.log("月序执行开始!........");
  298. powerCurveFittingByTimeService.cureFittingMonth(date, "0", "SXJ_KGDL_BHB_FDC_STA");
  299. XxlJobHelper.log("月处理完成!........");
  300. // XxlJobHelper.log("年序执行开始!........");
  301. // powerCurveFittingByTimeService.cureFittingYear(date, "SXJ_KGDL_BHB_FDC_STA");
  302. // XxlJobHelper.log("年处理完成!........");
  303. } catch (Exception e) {
  304. e.printStackTrace();
  305. XxlJobHelper.log(e.getMessage());
  306. }
  307. XxlJobHelper.log("平鲁败虎堡风电场功率预测调度任务处理完成!........");
  308. }
  309. /**
  310. * 平鲁红石峁风电场功率预测
  311. * 每天一次
  312. */
  313. @XxlJob("shutdown_SXJ_KGDL_HSM_FDC_STA")
  314. public void shutdown_SXJ_KGDL_HSM_FDC_STA() {
  315. XxlJobHelper.log("平鲁红石峁风电场功率预测调度程序执行开始!........");
  316. Date date = new Date();
  317. try {
  318. XxlJobHelper.log("日序执行开始!........");
  319. powerCurveFittingByTimeService.cureFittingDay(date, "SXJ_KGDL_HSM_FDC_STA");
  320. XxlJobHelper.log("日处理完成!........");
  321. XxlJobHelper.log("月序执行开始!........");
  322. powerCurveFittingByTimeService.cureFittingMonth(date, "0", "SXJ_KGDL_HSM_FDC_STA");
  323. XxlJobHelper.log("月处理完成!........");
  324. // XxlJobHelper.log("年序执行开始!........");
  325. // powerCurveFittingByTimeService.cureFittingYear(date, "SXJ_KGDL_HSM_FDC_STA");
  326. // XxlJobHelper.log("年处理完成!........");
  327. } catch (Exception e) {
  328. e.printStackTrace();
  329. XxlJobHelper.log(e.getMessage());
  330. }
  331. XxlJobHelper.log("平鲁红石峁风电场功率预测调度任务处理完成!........");
  332. }
  333. /**
  334. * 寿阳羊头崖风电场功率预测
  335. * 每天一次
  336. */
  337. @XxlJob("shutdown_SXJ_KGDL_YTY_FDC_STA")
  338. public void shutdown_SXJ_KGDL_YTY_FDC_STA() {
  339. XxlJobHelper.log("寿阳羊头崖风电场功率预测调度程序执行开始!........");
  340. Date date = new Date();
  341. try {
  342. XxlJobHelper.log("日序执行开始!........");
  343. powerCurveFittingByTimeService.cureFittingDay(date, "SXJ_KGDL_YTY_FDC_STA");
  344. XxlJobHelper.log("日处理完成!........");
  345. XxlJobHelper.log("月序执行开始!........");
  346. powerCurveFittingByTimeService.cureFittingMonth(date, "0", "SXJ_KGDL_YTY_FDC_STA");
  347. XxlJobHelper.log("月处理完成!........");
  348. // XxlJobHelper.log("年序执行开始!........");
  349. // powerCurveFittingByTimeService.cureFittingYear(date, "SXJ_KGDL_YTY_FDC_STA");
  350. // XxlJobHelper.log("年处理完成!........");
  351. } catch (Exception e) {
  352. e.printStackTrace();
  353. XxlJobHelper.log(e.getMessage());
  354. }
  355. XxlJobHelper.log("寿阳羊头崖风电场功率预测调度任务处理完成!........");
  356. }
  357. /**
  358. * 平鲁败虎堡三期风电场功率预测
  359. * 每天一次
  360. */
  361. @XxlJob("shutdown_SXJ_KGDL_BHB3_FDC_STA")
  362. public void shutdown_SXJ_KGDL_BHB3_FDC_STA() {
  363. XxlJobHelper.log("平鲁败虎堡三期风电场功率预测调度程序执行开始!........");
  364. Date date = new Date();
  365. try {
  366. XxlJobHelper.log("日序执行开始!........");
  367. powerCurveFittingByTimeService.cureFittingDay(date, "SXJ_KGDL_BHB3_FDC_STA");
  368. XxlJobHelper.log("日处理完成!........");
  369. XxlJobHelper.log("月序执行开始!........");
  370. powerCurveFittingByTimeService.cureFittingMonth(date, "0", "SXJ_KGDL_BHB3_FDC_STA");
  371. XxlJobHelper.log("月处理完成!........");
  372. // XxlJobHelper.log("年序执行开始!........");
  373. // powerCurveFittingByTimeService.cureFittingYear(date, "SXJ_KGDL_BHB3_FDC_STA");
  374. // XxlJobHelper.log("年处理完成!........");
  375. } catch (Exception e) {
  376. e.printStackTrace();
  377. XxlJobHelper.log(e.getMessage());
  378. }
  379. XxlJobHelper.log("平鲁败虎堡三期风电场功率预测调度任务处理完成!........");
  380. }
  381. /**
  382. * 宁武盘道梁风电场功率预测
  383. * 每天一次
  384. */
  385. @XxlJob("shutdown_SXJ_KGDL_PDL_FDC_STA")
  386. public void shutdown_SXJ_KGDL_PDL_FDC_STA() {
  387. XxlJobHelper.log("宁武盘道梁风电场功率预测调度程序执行开始!........");
  388. Date date = new Date();
  389. try {
  390. XxlJobHelper.log("日序执行开始!........");
  391. powerCurveFittingByTimeService.cureFittingDay(date, "SXJ_KGDL_PDL_FDC_STA");
  392. XxlJobHelper.log("日处理完成!........");
  393. XxlJobHelper.log("月序执行开始!........");
  394. powerCurveFittingByTimeService.cureFittingMonth(date, "0", "SXJ_KGDL_PDL_FDC_STA");
  395. XxlJobHelper.log("月处理完成!........");
  396. // XxlJobHelper.log("年序执行开始!........");
  397. // powerCurveFittingByTimeService.cureFittingYear(date, "SXJ_KGDL_PDL_FDC_STA");
  398. // XxlJobHelper.log("年处理完成!........");
  399. } catch (Exception e) {
  400. e.printStackTrace();
  401. XxlJobHelper.log(e.getMessage());
  402. }
  403. XxlJobHelper.log("宁武盘道梁风电场功率预测调度任务处理完成!........");
  404. }
  405. /**
  406. * 朔城区牛家岭风电场功率预测
  407. * 每天一次
  408. */
  409. @XxlJob("shutdown_SXJ_KGDL_NJL_FDC_STA")
  410. public void shutdown_SXJ_KGDL_NJL_FDC_STA() {
  411. XxlJobHelper.log("朔城区牛家岭风电场功率预测调度程序执行开始!........");
  412. Date date = new Date();
  413. try {
  414. XxlJobHelper.log("日序执行开始!........");
  415. powerCurveFittingByTimeService.cureFittingDay(date, "SXJ_KGDL_NJL_FDC_STA");
  416. XxlJobHelper.log("日处理完成!........");
  417. XxlJobHelper.log("月序执行开始!........");
  418. powerCurveFittingByTimeService.cureFittingMonth(date, "0", "SXJ_KGDL_NJL_FDC_STA");
  419. XxlJobHelper.log("月处理完成!........");
  420. // XxlJobHelper.log("年序执行开始!........");
  421. // powerCurveFittingByTimeService.cureFittingYear(date, "SXJ_KGDL_NJL_FDC_STA");
  422. // XxlJobHelper.log("年处理完成!........");
  423. } catch (Exception e) {
  424. e.printStackTrace();
  425. XxlJobHelper.log(e.getMessage());
  426. }
  427. XxlJobHelper.log("朔城区牛家岭风电场功率预测调度任务处理完成!........");
  428. }
  429. /**
  430. * 寿阳尹灵芝风电场功率预测
  431. * 每天一次
  432. */
  433. @XxlJob("shutdown_SXJ_KGDL_YLZ_FDC_STA")
  434. public void shutdown_SXJ_KGDL_YLZ_FDC_STA() {
  435. XxlJobHelper.log("寿阳尹灵芝风电场功率预测调度程序执行开始!........");
  436. Date date = new Date();
  437. try {
  438. XxlJobHelper.log("日序执行开始!........");
  439. powerCurveFittingByTimeService.cureFittingDay(date, "SXJ_KGDL_YLZ_FDC_STA");
  440. XxlJobHelper.log("日处理完成!........");
  441. XxlJobHelper.log("月序执行开始!........");
  442. powerCurveFittingByTimeService.cureFittingMonth(date, "0", "SXJ_KGDL_YLZ_FDC_STA");
  443. XxlJobHelper.log("月处理完成!........");
  444. // XxlJobHelper.log("年序执行开始!........");
  445. // powerCurveFittingByTimeService.cureFittingYear(date, "SXJ_KGDL_YLZ_FDC_STA");
  446. // XxlJobHelper.log("年处理完成!........");
  447. } catch (Exception e) {
  448. e.printStackTrace();
  449. XxlJobHelper.log(e.getMessage());
  450. }
  451. XxlJobHelper.log("寿阳尹灵芝风电场功率预测调度任务处理完成!........");
  452. }
  453. /**
  454. * 平鲁禹丰风电场功率预测
  455. * 每天一次
  456. */
  457. @XxlJob("shutdown_SXJ_KGDL_YF_FDC_STA")
  458. public void shutdown_SXJ_KGDL_YF_FDC_STA() {
  459. XxlJobHelper.log("平鲁禹丰风电场功率预测调度程序执行开始!........");
  460. Date date = new Date();
  461. try {
  462. XxlJobHelper.log("日序执行开始!........");
  463. powerCurveFittingByTimeService.cureFittingDay(date, "SXJ_KGDL_YF_FDC_STA");
  464. XxlJobHelper.log("日处理完成!........");
  465. XxlJobHelper.log("月序执行开始!........");
  466. powerCurveFittingByTimeService.cureFittingMonth(date, "0", "SXJ_KGDL_YF_FDC_STA");
  467. XxlJobHelper.log("月处理完成!........");
  468. // XxlJobHelper.log("年序执行开始!........");
  469. // powerCurveFittingByTimeService.cureFittingYear(date, "SXJ_KGDL_YF_FDC_STA");
  470. // XxlJobHelper.log("年处理完成!........");
  471. } catch (Exception e) {
  472. e.printStackTrace();
  473. XxlJobHelper.log(e.getMessage());
  474. }
  475. XxlJobHelper.log("平鲁禹丰风电场功率预测调度任务处理完成!........");
  476. }
  477. /**
  478. * 寿阳平头镇风电场功率预测
  479. * 每天一次
  480. */
  481. @XxlJob("shutdown_SXJ_KGDL_PTZ_FDC_STA")
  482. public void shutdown_SXJ_KGDL_PTZ_FDC_STA() {
  483. XxlJobHelper.log("寿阳平头镇风电场功率预测调度程序执行开始!........");
  484. Date date = new Date();
  485. try {
  486. XxlJobHelper.log("日序执行开始!........");
  487. powerCurveFittingByTimeService.cureFittingDay(date, "SXJ_KGDL_PTZ_FDC_STA");
  488. XxlJobHelper.log("日处理完成!........");
  489. XxlJobHelper.log("月序执行开始!........");
  490. powerCurveFittingByTimeService.cureFittingMonth(date, "0", "SXJ_KGDL_PTZ_FDC_STA");
  491. XxlJobHelper.log("月处理完成!........");
  492. // XxlJobHelper.log("年序执行开始!........");
  493. // powerCurveFittingByTimeService.cureFittingYear(date, "SXJ_KGDL_PTZ_FDC_STA");
  494. // XxlJobHelper.log("年处理完成!........");
  495. } catch (Exception e) {
  496. e.printStackTrace();
  497. XxlJobHelper.log(e.getMessage());
  498. }
  499. XxlJobHelper.log("寿阳平头镇风电场功率预测调度任务处理完成!........");
  500. }
  501. /**
  502. * 右玉小五台风电场功率预测
  503. * 每天一次
  504. */
  505. @XxlJob("shutdown_SXJ_KGDL_XWT_FDC_STA")
  506. public void shutdown_SXJ_KGDL_XWT_FDC_STA() {
  507. XxlJobHelper.log("右玉小五台风电场功率预测调度程序执行开始!........");
  508. Date date = new Date();
  509. try {
  510. XxlJobHelper.log("日序执行开始!........");
  511. powerCurveFittingByTimeService.cureFittingDay(date, "SXJ_KGDL_XWT_FDC_STA");
  512. XxlJobHelper.log("日处理完成!........");
  513. XxlJobHelper.log("月序执行开始!........");
  514. powerCurveFittingByTimeService.cureFittingMonth(date, "0", "SXJ_KGDL_XWT_FDC_STA");
  515. XxlJobHelper.log("月处理完成!........");
  516. // XxlJobHelper.log("年序执行开始!........");
  517. // powerCurveFittingByTimeService.cureFittingYear(date, "SXJ_KGDL_XWT_FDC_STA");
  518. // XxlJobHelper.log("年处理完成!........");
  519. } catch (Exception e) {
  520. e.printStackTrace();
  521. XxlJobHelper.log(e.getMessage());
  522. }
  523. XxlJobHelper.log("右玉小五台风电场功率预测调度任务处理完成!........");
  524. }
  525. /**
  526. * 右玉丁家窑风电场功率预测
  527. * 每天一次
  528. */
  529. @XxlJob("shutdown_SXJ_KGDL_DJY_FDC_STA")
  530. public void shutdown_SXJ_KGDL_DJY_FDC_STA() {
  531. XxlJobHelper.log("右玉丁家窑风电场功率预测调度程序执行开始!........");
  532. Date date = new Date();
  533. try {
  534. XxlJobHelper.log("日序执行开始!........");
  535. powerCurveFittingByTimeService.cureFittingDay(date, "SXJ_KGDL_DJY_FDC_STA");
  536. XxlJobHelper.log("日处理完成!........");
  537. XxlJobHelper.log("月序执行开始!........");
  538. powerCurveFittingByTimeService.cureFittingMonth(date, "0", "SXJ_KGDL_DJY_FDC_STA");
  539. XxlJobHelper.log("月处理完成!........");
  540. // XxlJobHelper.log("年序执行开始!........");
  541. // powerCurveFittingByTimeService.cureFittingYear(date, "SXJ_KGDL_DJY_FDC_STA");
  542. // XxlJobHelper.log("年处理完成!........");
  543. } catch (Exception e) {
  544. e.printStackTrace();
  545. XxlJobHelper.log(e.getMessage());
  546. }
  547. XxlJobHelper.log("右玉丁家窑风电场功率预测调度任务处理完成!........");
  548. }
  549. /**
  550. * 场站1表
  551. * 15分钟只执行一次
  552. */
  553. @XxlJob("windPowerInfo1_PG")
  554. public void windPowerInfo1_PG() throws Exception {
  555. XxlJobHelper.log("场站指标1调度程序执行开始!........");
  556. Date date = new Date();
  557. windPowerInfo1Service.calLineInfoDay(date);
  558. windPowerInfo1Service.calProjectInfoDay(date);
  559. windPowerInfo1Service.calWindpowerInfoDay(date);
  560. windPowerInfo1Service.calCompanyInfoDay(date);
  561. windPowerInfo1Service.calRegionInfoDay(date);
  562. XxlJobHelper.log("场站指标1指标调度程序执行完成!........");
  563. }
  564. /**
  565. * 场站2表
  566. * 15分钟只执行一次
  567. */
  568. @XxlJob("windPowerInfo2_PG")
  569. public void windPowerInfo2_PG() throws Exception {
  570. XxlJobHelper.log("场站指标2调度程序执行开始!........");
  571. Date date = new Date();
  572. windPowerInfo2Service.calLineInfoDay(date);
  573. windPowerInfo2Service.calProjectInfoDay(date);
  574. windPowerInfo2Service.calWindpowerInfoDay(date);
  575. windPowerInfo2Service.calCompanyInfoDay(date);
  576. windPowerInfo2Service.calRegionInfoDay(date);
  577. XxlJobHelper.log("场站指标2指标调度程序执行完成!........");
  578. }
  579. /**
  580. * 场站3表
  581. * 15分钟只执行一次
  582. */
  583. @XxlJob("windPowerInfo3_PG")
  584. public void windPowerInfo3_PG() throws Exception {
  585. XxlJobHelper.log("场站指标3调度程序执行开始!........");
  586. Date date = new Date();
  587. windPowerInfo3Service.calLineInfoDay(date);
  588. windPowerInfo3Service.calProjectInfoDay(date);
  589. windPowerInfo3Service.calWindpowerInfoDay(date);
  590. windPowerInfo3Service.calCompanyInfoDay(date);
  591. windPowerInfo3Service.calRegionInfoDay(date);
  592. XxlJobHelper.log("场站指标3指标调度程序执行完成!........");
  593. }
  594. /**
  595. * 场站4表
  596. * 15分钟只执行一次
  597. */
  598. @XxlJob("windPowerInfo4_PG")
  599. public void windPowerInfo4_PG() throws Exception {
  600. XxlJobHelper.log("场站指标4调度程序执行开始!........");
  601. Date date = new Date();
  602. windPowerInfo4Service.calLineInfoDay(date);
  603. windPowerInfo4Service.calProjectInfoDay(date);
  604. windPowerInfo4Service.calWindpowerInfoDay(date);
  605. windPowerInfo4Service.calCompanyInfoDay(date);
  606. windPowerInfo4Service.calRegionInfoDay(date);
  607. XxlJobHelper.log("场站指标4指标调度程序执行完成!........");
  608. }
  609. /**
  610. * 场站5表
  611. * 15分钟只执行一次
  612. */
  613. @XxlJob("windPowerInfo5_PG")
  614. public void windPowerInfo5_PG() throws Exception {
  615. XxlJobHelper.log("场站指标5调度程序执行开始!........");
  616. Date date = new Date();
  617. windPowerInfo5Service.calLineInfoDay(date);
  618. windPowerInfo5Service.calProjectInfoDay(date);
  619. windPowerInfo5Service.calWindpowerInfoDay(date);
  620. windPowerInfo5Service.calCompanyInfoDay(date);
  621. windPowerInfo5Service.calRegionInfoDay(date);
  622. XxlJobHelper.log("场站指标5指标调度程序执行完成!........");
  623. }
  624. /**
  625. * 场站6表
  626. * 15分钟只执行一次
  627. */
  628. @XxlJob("windPowerInfo6_PG")
  629. public void windPowerInfo6_PG() throws Exception {
  630. XxlJobHelper.log("场站指标6调度程序执行开始!........");
  631. Date date = new Date();
  632. windPowerInfo6Service.calLineInfoDay(date);
  633. windPowerInfo6Service.calProjectInfoDay(date);
  634. windPowerInfo6Service.calWindpowerInfoDay(date);
  635. windPowerInfo6Service.calCompanyInfoDay(date);
  636. windPowerInfo6Service.calRegionInfoDay(date);
  637. XxlJobHelper.log("场站指标6指标调度程序执行完成!........");
  638. }
  639. /**
  640. * 设备1-5表
  641. * 15分钟只执行一次
  642. */
  643. @XxlJob("equipment_PowerInfo1_PG")
  644. public void equipment_PowerInfo1_PG() throws Exception {
  645. XxlJobHelper.log("设备指标1调度程序执行开始!........");
  646. Date date = new Date();
  647. equipmentInfo1Service.calEquipmentInfoDay(date);
  648. XxlJobHelper.log("设备指标1调度程序执行完成!........");
  649. }
  650. /**
  651. * 设备2表
  652. * 15分钟只执行一次
  653. */
  654. @XxlJob("equipment_PowerInfo2_PG")
  655. public void equipment_PowerInfo2_PG() throws Exception {
  656. XxlJobHelper.log("设备指标2调度程序执行开始!........");
  657. Date date = new Date();
  658. equipmentInfo2Service.calEquipmentInfoDay(date);
  659. XxlJobHelper.log("设备指标2调度程序执行完成!........");
  660. }
  661. /**
  662. * 设备3表
  663. * 15分钟只执行一次
  664. */
  665. @XxlJob("equipment_PowerInfo3_PG")
  666. public void equipment_PowerInfo3_PG() throws Exception {
  667. XxlJobHelper.log("设备指标3调度程序执行开始!........");
  668. Date date = new Date();
  669. equipmentInfo3Service.calEquipmentInfoDay(date);
  670. XxlJobHelper.log("设备指标3调度程序执行完成!........");
  671. }
  672. /**
  673. * 设备3表
  674. * 15分钟只执行一次
  675. */
  676. @XxlJob("equipment_PowerInfo4_PG")
  677. public void equipment_PowerInfo4_PG() throws Exception {
  678. XxlJobHelper.log("设备指标4调度程序执行开始!........");
  679. Date date = new Date();
  680. equipmentInfo4Service.calEquipmentInfoDay(date);
  681. XxlJobHelper.log("设备指标调度4程序执行完成!........");
  682. }
  683. /**
  684. * 设备5表
  685. * 15分钟只执行一次
  686. */
  687. @XxlJob("equipment_PowerInfo5_PG")
  688. public void equipment_PowerInfo5_PG() throws Exception {
  689. XxlJobHelper.log("设备指标5调度程序执行开始!........");
  690. Date date = new Date();
  691. equipmentInfo5Service.calEquipmentInfoDay(date);
  692. XxlJobHelper.log("设备指标调度5程序执行完成!........");
  693. }
  694. /**
  695. * 风电设备调度
  696. * 执行一次
  697. */
  698. @XxlJob("equipment_PowerInfoAll_FD")
  699. public void equipment_PowerInfoAll_FD() throws Exception {
  700. XxlJobHelper.log("风电设备调度调度程序执行开始!........");
  701. Calendar c = Calendar.getInstance();
  702. while (true) {
  703. Date begin = new Date();
  704. Date end = null;
  705. SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
  706. System.out.println(df.format(c.getTime()).toString());
  707. EquipmentInfo1Service equipmentInfo1Service = SpringUtils.getBean("equipmentInfo1Service");
  708. EquipmentInfo2Service equipmentInfo2Service = SpringUtils.getBean("equipmentInfo2Service");
  709. EquipmentInfo3Service equipmentInfo3Service = SpringUtils.getBean("equipmentInfo3Service");
  710. EquipmentInfo5Service equipmentInfo5Service = SpringUtils.getBean("equipmentInfo5Service");
  711. EquipmentInfo4Service equipmentInfo4Service = SpringUtils.getBean("equipmentInfo4Service");
  712. equipmentInfo1Service.calEquipmentInfoDay(begin);
  713. equipmentInfo2Service.calEquipmentInfoDay(begin);
  714. equipmentInfo3Service.calEquipmentInfoDay(begin);
  715. equipmentInfo5Service.calEquipmentInfoDay(begin);
  716. equipmentInfo4Service.calEquipmentInfoDay(begin);
  717. end = new Date();
  718. System.out.println(end);
  719. System.out.println("完成一次!。。。。。。");
  720. System.out.println("执行用时" + com.gyee.generation.util.DateUtils.secondsDiff(begin, end) + "秒");
  721. Thread.sleep(200);
  722. }
  723. }
  724. /**
  725. * 光伏设备调度
  726. * 执行一次
  727. */
  728. @XxlJob("equipment_PowerInfoAll_GD")
  729. public void equipment_PowerInfoAll_GD() throws Exception {
  730. XxlJobHelper.log("风电设备调度调度程序执行开始!........");
  731. Calendar c = Calendar.getInstance();
  732. while (true) {
  733. Date begin = new Date();
  734. Date end = null;
  735. SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
  736. System.out.println(df.format(c.getTime()).toString());
  737. EquipmentInfo1Service equipmentInfo1Service = SpringUtils.getBean("equipmentInfo1Service");
  738. EquipmentInfo2Service equipmentInfo2Service = SpringUtils.getBean("equipmentInfo2Service");
  739. EquipmentInfo3Service equipmentInfo3Service = SpringUtils.getBean("equipmentInfo3Service");
  740. equipmentInfo1Service.calEquipmentInfoDay(begin);
  741. equipmentInfo2Service.calEquipmentInfoDay(begin);
  742. equipmentInfo3Service.calEquipmentInfoDay(begin);
  743. end = new Date();
  744. System.out.println(end);
  745. System.out.println("完成一次!。。。。。。");
  746. System.out.println("执行用时" + com.gyee.generation.util.DateUtils.secondsDiff(begin, end) + "秒");
  747. Thread.sleep(200);
  748. }
  749. }
  750. /**
  751. * 等级评估统计
  752. * 每天执行一次
  753. */
  754. @XxlJob("equipmentInfoDayTop_PG")
  755. public void equipmentInfoDayTop_PG() {
  756. XxlJobHelper.log("等级评估统计调度程序执行开始!........");
  757. try {
  758. equipmentInfoDayTopService.calEquipmentInfoDayTop(new Date());
  759. equipmentInfoDayTopService.calEquipmentInfoMonthTop(new Date());
  760. equipmentInfoDayTopService.calEquipmentInfoYearTop(new Date());
  761. } catch (Exception e) {
  762. e.printStackTrace();
  763. }
  764. XxlJobHelper.log("等级评估统计调度任务处理完成!........");
  765. }
  766. /**
  767. * 功率一致性系数和拟合优度
  768. * 每天2点执行一次
  769. */
  770. @XxlJob("windturbineGoodness_PG")
  771. public void windturbineGoodness_PG() {
  772. XxlJobHelper.log("功率一致性系数和拟合优度统计调度程序执行开始!........");
  773. try {
  774. windturbineGoodnessService.calWindturbineGoodness(new Date());
  775. } catch (Exception e) {
  776. e.printStackTrace();
  777. }
  778. XxlJobHelper.log("功率一致性系数和拟合优度统计调度任务处理完成!........");
  779. }
  780. @XxlJob("wtAlysisDay_PG")
  781. public void wtAlysisDay_PG() {
  782. XxlJobHelper.log("分析数据统计调度程序执行开始!........");
  783. try {
  784. wtAlysisDayService.calEquipmentInfoDay(new Date());
  785. } catch (Exception e) {
  786. e.printStackTrace();
  787. }
  788. XxlJobHelper.log("分析数据统计调度任务处理完成!........");
  789. }
  790. /**
  791. * 设备风资源统计调度
  792. * 每天2点执行一次
  793. */
  794. @XxlJob("wtwindDayInfo_PG")
  795. public void wtwindDayInfo_PG() {
  796. XxlJobHelper.log("设备风资源统计调度程序执行开始!........");
  797. try {
  798. wpwindDayInfoService.calWpwindDayInfo(new Date());
  799. } catch (Exception e) {
  800. e.printStackTrace();
  801. }
  802. XxlJobHelper.log("设备风资源统计调度任务处理完成!........");
  803. }
  804. /**
  805. * 场站风资源统计调度
  806. * 每天2点执行一次
  807. */
  808. @XxlJob("wpwindDayInfo_PG")
  809. public void wpwindDayInfo_PG() {
  810. XxlJobHelper.log("场站风资源统计调度程序执行开始!........");
  811. try {
  812. wtwindDayInfoService.calWtwindDayInfo(new Date());
  813. } catch (Exception e) {
  814. e.printStackTrace();
  815. }
  816. XxlJobHelper.log("场站风资源统计调度任务处理完成!........");
  817. }
  818. /**
  819. * 对风偏差率
  820. * 每日0点15执行
  821. */
  822. @XxlJob("calWindDeviation_PG")
  823. public void calWindDeviation_PG() {
  824. XxlJobHelper.log("对风偏差率调度程序执行开始!........");
  825. String yesterdayStr = DateUtils.getYesterdayStr("yyyy-MM-dd");
  826. try {
  827. windDeviationService.save(yesterdayStr, yesterdayStr);
  828. } catch (Exception e) {
  829. e.printStackTrace();
  830. }
  831. XxlJobHelper.log("对风偏差率调度任务处理完成!........");
  832. }
  833. // /**
  834. // * 天镇光电站停机记录
  835. // * 每两秒执行一次
  836. // */
  837. // @XxlJob("shutdown_SXJ_KGDL_TZ_GDC_STA")
  838. // public void shutdown_SXJ_KGDL_TZ_GDC_STA() {
  839. //
  840. // XxlJobHelper.log("天镇光电站停机记录调度程序执行开始!........");
  841. //
  842. // try {
  843. // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_TZ_GDC_STA");
  844. //
  845. // } catch (Exception e) {
  846. // e.printStackTrace();
  847. // }
  848. // XxlJobHelper.log("天镇光电站停机记录调度任务处理完成!........");
  849. // }
  850. //
  851. //
  852. // /**
  853. // * 平遥朱坑风电场停机记录
  854. // * 每两秒执行一次
  855. // */
  856. // @XxlJob("shutdown_SXJ_KGDL_ZK_FDC_STA")
  857. // public void shutdown_SXJ_KGDL_ZK_FDC_STA() {
  858. //
  859. // XxlJobHelper.log("平遥朱坑风电场停机记录调度程序执行开始!........");
  860. //
  861. // try {
  862. // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_ZK_FDC_STA");
  863. //
  864. // } catch (Exception e) {
  865. // e.printStackTrace();
  866. // }
  867. // XxlJobHelper.log("平遥朱坑风电场停机记录调度任务处理完成!........");
  868. // }
  869. //
  870. //
  871. // /**
  872. // * 山阴荣新光电站停机记录
  873. // * 每两秒执行一次
  874. // */
  875. // @XxlJob("shutdown_SXJ_KGDL_SY_GDC_STA")
  876. // public void shutdown_SXJ_KGDL_SY_GDC_STA() {
  877. //
  878. // XxlJobHelper.log("山阴荣新光电站停机记录调度程序执行开始!........");
  879. //
  880. // try {
  881. // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_SY_GDC_STA");
  882. //
  883. // } catch (Exception e) {
  884. // e.printStackTrace();
  885. // }
  886. // XxlJobHelper.log("山阴荣新光电站停机记录调度任务处理完成!........");
  887. // }
  888. //
  889. //
  890. // /**
  891. // * 平鲁高家堰风电场停机记录
  892. // * 每两秒执行一次
  893. // */
  894. // @XxlJob("shutdown_SXJ_KGDL_GJY_FDC_STA")
  895. // public void shutdown_SXJ_KGDL_GJY_FDC_STA() {
  896. //
  897. // XxlJobHelper.log("平鲁高家堰风电场停机记录调度程序执行开始!........");
  898. //
  899. // try {
  900. // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_GJY_FDC_STA");
  901. //
  902. // } catch (Exception e) {
  903. // e.printStackTrace();
  904. // }
  905. // XxlJobHelper.log("平鲁高家堰风电场停机记录调度任务处理完成!........");
  906. // }
  907. //
  908. // /**
  909. // * 平鲁败虎堡风电场停机记录
  910. // * 每两秒执行一次
  911. // */
  912. // @XxlJob("shutdown_SXJ_KGDL_BHB_FDC_STA")
  913. // public void shutdown_SXJ_KGDL_BHB_FDC_STA() {
  914. //
  915. // XxlJobHelper.log("平鲁败虎堡风电场停机记录调度程序执行开始!........");
  916. //
  917. // try {
  918. // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_BHB_FDC_STA");
  919. //
  920. // } catch (Exception e) {
  921. // e.printStackTrace();
  922. // }
  923. // XxlJobHelper.log("平鲁败虎堡风电场停机记录调度任务处理完成!........");
  924. // }
  925. //
  926. // /**
  927. // * 平鲁红石峁风电场停机记录
  928. // * 每两秒执行一次
  929. // */
  930. // @XxlJob("shutdown_SXJ_KGDL_HSM_FDC_STA")
  931. // public void shutdown_SXJ_KGDL_HSM_FDC_STA() {
  932. //
  933. // XxlJobHelper.log("平鲁红石峁风电场停机记录调度程序执行开始!........");
  934. //
  935. // try {
  936. // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_HSM_FDC_STA");
  937. //
  938. // } catch (Exception e) {
  939. // e.printStackTrace();
  940. // }
  941. // XxlJobHelper.log("平鲁红石峁风电场停机记录调度任务处理完成!........");
  942. // }
  943. //
  944. // /**
  945. // * 寿阳羊头崖风电场停机记录
  946. // * 每两秒执行一次
  947. // */
  948. // @XxlJob("shutdown_SXJ_KGDL_YTY_FDC_STA")
  949. // public void shutdown_SXJ_KGDL_YTY_FDC_STA() {
  950. //
  951. // XxlJobHelper.log("寿阳羊头崖风电场停机记录调度程序执行开始!........");
  952. //
  953. // try {
  954. // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_YTY_FDC_STA");
  955. //
  956. // } catch (Exception e) {
  957. // e.printStackTrace();
  958. // }
  959. // XxlJobHelper.log("寿阳羊头崖风电场停机记录调度任务处理完成!........");
  960. // }
  961. //
  962. //
  963. // /**
  964. // * 平鲁败虎堡三期风电场停机记录
  965. // * 每两秒执行一次
  966. // */
  967. // @XxlJob("shutdown_SXJ_KGDL_BHB3_FDC_STA")
  968. // public void shutdown_SXJ_KGDL_BHB3_FDC_STA() {
  969. //
  970. // XxlJobHelper.log("平鲁败虎堡三期风电场停机记录调度程序执行开始!........");
  971. //
  972. // try {
  973. // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_BHB3_FDC_STA");
  974. //
  975. // } catch (Exception e) {
  976. // e.printStackTrace();
  977. // }
  978. // XxlJobHelper.log("平鲁败虎堡三期风电场停机记录调度任务处理完成!........");
  979. // }
  980. //
  981. // /**
  982. // * 繁峙均然光伏电站停机记录
  983. // * 每两秒执行一次
  984. // */
  985. // @XxlJob("shutdown_SXJ_KGDL_JR_GDC_STA")
  986. // public void shutdown_SXJ_KGDL_JR_GDC_STA() {
  987. //
  988. // XxlJobHelper.log("繁峙均然光伏电站停机记录调度程序执行开始!........");
  989. //
  990. // try {
  991. // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_JR_GDC_STA");
  992. //
  993. // } catch (Exception e) {
  994. // e.printStackTrace();
  995. // }
  996. // XxlJobHelper.log("繁峙均然光伏电站停机记录调度任务处理完成!........");
  997. // }
  998. //
  999. // /**
  1000. // * 宁武盘道梁风电场停机记录
  1001. // * 每两秒执行一次
  1002. // */
  1003. // @XxlJob("shutdown_SXJ_KGDL_PDL_FDC_STA")
  1004. // public void shutdown_SXJ_KGDL_PDL_FDC_STA() {
  1005. //
  1006. // XxlJobHelper.log("宁武盘道梁风电场停机记录调度程序执行开始!........");
  1007. //
  1008. // try {
  1009. // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_PDL_FDC_STA");
  1010. //
  1011. // } catch (Exception e) {
  1012. // e.printStackTrace();
  1013. // }
  1014. // XxlJobHelper.log("宁武盘道梁风电场停机记录调度任务处理完成!........");
  1015. // }
  1016. //
  1017. // /**
  1018. // * 朔城区牛家岭风电场停机记录
  1019. // * 每两秒执行一次
  1020. // */
  1021. // @XxlJob("shutdown_SXJ_KGDL_NJL_FDC_STA")
  1022. // public void shutdown_SXJ_KGDL_NJL_FDC_STA() {
  1023. //
  1024. // XxlJobHelper.log("朔城区牛家岭风电场停机记录调度程序执行开始!........");
  1025. //
  1026. // try {
  1027. // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_NJL_FDC_STA");
  1028. //
  1029. // } catch (Exception e) {
  1030. // e.printStackTrace();
  1031. // }
  1032. // XxlJobHelper.log("朔城区牛家岭风电场停机记录调度任务处理完成!........");
  1033. // }
  1034. //
  1035. //
  1036. // /**
  1037. // * 寿阳尹灵芝风电场停机记录
  1038. // * 每两秒执行一次
  1039. // */
  1040. // @XxlJob("shutdown_SXJ_KGDL_YLZ_FDC_STA")
  1041. // public void shutdown_SXJ_KGDL_YLZ_FDC_STA() {
  1042. //
  1043. // XxlJobHelper.log("寿阳尹灵芝风电场停机记录调度程序执行开始!........");
  1044. //
  1045. // try {
  1046. // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_YLZ_FDC_STA");
  1047. //
  1048. // } catch (Exception e) {
  1049. // e.printStackTrace();
  1050. // }
  1051. // XxlJobHelper.log("寿阳尹灵芝风电场停机记录调度任务处理完成!........");
  1052. // }
  1053. //
  1054. // /**
  1055. // * 阳高蔚家堡光伏电站停机记录
  1056. // * 每两秒执行一次
  1057. // */
  1058. // @XxlJob("shutdown_SXJ_KGDL_YG_GDC_STA")
  1059. // public void shutdown_SXJ_KGDL_YG_GDC_STA() {
  1060. //
  1061. // XxlJobHelper.log("阳高蔚家堡光伏电站停机记录调度程序执行开始!........");
  1062. //
  1063. // try {
  1064. // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_YG_GDC_STA");
  1065. //
  1066. // } catch (Exception e) {
  1067. // e.printStackTrace();
  1068. // }
  1069. // XxlJobHelper.log("阳高蔚家堡光伏电站停机记录调度任务处理完成!........");
  1070. // }
  1071. //
  1072. // /**
  1073. // * 平鲁禹丰风电场停机记录
  1074. // * 每两秒执行一次
  1075. // */
  1076. // @XxlJob("shutdown_SXJ_KGDL_YF_FDC_STA")
  1077. // public void shutdown_SXJ_KGDL_YF_FDC_STA() {
  1078. //
  1079. // XxlJobHelper.log("平鲁禹丰风电场停机记录调度程序执行开始!........");
  1080. //
  1081. // try {
  1082. // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_YF_FDC_STA");
  1083. //
  1084. // } catch (Exception e) {
  1085. // e.printStackTrace();
  1086. // }
  1087. // XxlJobHelper.log("平鲁禹丰风电场停机记录调度任务处理完成!........");
  1088. // }
  1089. //
  1090. // /**
  1091. // * 寿阳平头镇风电场停机记录
  1092. // * 每两秒执行一次
  1093. // */
  1094. // @XxlJob("shutdown_SXJ_KGDL_PTZ_FDC_STA")
  1095. // public void shutdown_SXJ_KGDL_PTZ_FDC_STA() {
  1096. //
  1097. // XxlJobHelper.log("寿阳平头镇风电场停机记录调度程序执行开始!........");
  1098. //
  1099. // try {
  1100. // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_PTZ_FDC_STA");
  1101. //
  1102. // } catch (Exception e) {
  1103. // e.printStackTrace();
  1104. // }
  1105. // XxlJobHelper.log("寿阳平头镇风电场停机记录调度任务处理完成!........");
  1106. // }
  1107. //
  1108. // /**
  1109. // * 右玉小五台风电场停机记录
  1110. // * 每两秒执行一次
  1111. // */
  1112. // @XxlJob("shutdown_SXJ_KGDL_XWT_FDC_STA")
  1113. // public void shutdown_SXJ_KGDL_XWT_FDC_STA() {
  1114. //
  1115. // XxlJobHelper.log("右玉小五台风电场停机记录调度程序执行开始!........");
  1116. //
  1117. // try {
  1118. // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_XWT_FDC_STA");
  1119. //
  1120. // } catch (Exception e) {
  1121. // e.printStackTrace();
  1122. // }
  1123. // XxlJobHelper.log("右玉小五台风电场停机记录调度任务处理完成!........");
  1124. // }
  1125. //
  1126. // /**
  1127. // * 方山孙家山光伏电站停机记录
  1128. // * 每两秒执行一次
  1129. // */
  1130. // @XxlJob("shutdown_SXJ_KGDL_FS_GDC_STA")
  1131. // public void shutdown_SXJ_KGDL_FS_GDC_STA() {
  1132. //
  1133. // XxlJobHelper.log("方山孙家山光伏电站停机记录调度程序执行开始!........");
  1134. //
  1135. // try {
  1136. // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_FS_GDC_STA");
  1137. //
  1138. // } catch (Exception e) {
  1139. // e.printStackTrace();
  1140. // }
  1141. // XxlJobHelper.log("方山孙家山光伏电站停机记录调度任务处理完成!........");
  1142. // }
  1143. //
  1144. // /**
  1145. // * 右玉丁家窑风电场停机记录
  1146. // * 每两秒执行一次
  1147. // */
  1148. // @XxlJob("shutdown_SXJ_KGDL_DJY_FDC_STA")
  1149. // public void shutdown_SXJ_KGDL_DJY_FDC_STA() {
  1150. //
  1151. // XxlJobHelper.log("右玉丁家窑风电场停机记录调度程序执行开始!........");
  1152. //
  1153. // try {
  1154. // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_DJY_FDC_STA");
  1155. //
  1156. // } catch (Exception e) {
  1157. // e.printStackTrace();
  1158. // }
  1159. // XxlJobHelper.log("右玉丁家窑风电场停机记录调度任务处理完成!........");
  1160. // }
  1161. //
  1162. // /**
  1163. // * 怀仁初晨光伏电站停机记录
  1164. // * 每两秒执行一次
  1165. // */
  1166. // @XxlJob("shutdown_SXJ_KGDL_HR_GDC_STA")
  1167. // public void shutdown_SXJ_KGDL_HR_GDC_STA() {
  1168. //
  1169. // XxlJobHelper.log("怀仁初晨光伏电站停机记录调度程序执行开始!........");
  1170. //
  1171. // try {
  1172. // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_HR_GDC_STA");
  1173. //
  1174. // } catch (Exception e) {
  1175. // e.printStackTrace();
  1176. // }
  1177. // XxlJobHelper.log("怀仁初晨光伏电站停机记录调度任务处理完成!........");
  1178. // }
  1179. //
  1180. // /**
  1181. // * 应县晶辉光伏电站停机记录
  1182. // * 每两秒执行一次
  1183. // */
  1184. // @XxlJob("shutdown_SXJ_KGDL_YX_GDC_STA")
  1185. // public void shutdown_SXJ_KGDL_YX_GDC_STA() {
  1186. //
  1187. // XxlJobHelper.log("应县晶辉光伏电站停机记录调度程序执行开始!........");
  1188. //
  1189. // try {
  1190. // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_YX_GDC_STA");
  1191. //
  1192. // } catch (Exception e) {
  1193. // e.printStackTrace();
  1194. // }
  1195. // XxlJobHelper.log("应县晶辉光伏电站停机记录调度任务处理完成!........");
  1196. // }
  1197. //
  1198. // /**
  1199. // * 右玉右卫光伏电站停机记录
  1200. // * 每两秒执行一次
  1201. // */
  1202. // @XxlJob("shutdown_SXJ_KGDL_YY_GDC_STA")
  1203. // public void shutdown_SXJ_KGDL_YY_GDC_STA() {
  1204. //
  1205. // XxlJobHelper.log("右玉右卫光伏电站停机记录调度程序执行开始!........");
  1206. //
  1207. // try {
  1208. // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_YY_GDC_STA");
  1209. //
  1210. // } catch (Exception e) {
  1211. // e.printStackTrace();
  1212. // }
  1213. // XxlJobHelper.log("右玉右卫光伏电站停机记录调度任务处理完成!........");
  1214. // }
  1215. //
  1216. // /**
  1217. // * 平鲁阻虎光伏电站停机记录
  1218. // * 每两秒执行一次
  1219. // */
  1220. // @XxlJob("shutdown_SXJ_KGDL_PL_GDC_STA")
  1221. // public void shutdown_SXJ_KGDL_PL_GDC_STA() {
  1222. //
  1223. // XxlJobHelper.log("平鲁阻虎光伏电站停机记录调度程序执行开始!........");
  1224. //
  1225. // try {
  1226. // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_PL_GDC_STA");
  1227. //
  1228. // } catch (Exception e) {
  1229. // e.printStackTrace();
  1230. // }
  1231. // XxlJobHelper.log("平鲁阻虎光伏电站停机记录调度任务处理完成!........");
  1232. // }
  1233. //
  1234. // /**
  1235. // * 内蒙米粮局风电场停机记录
  1236. // * 每两秒执行一次
  1237. // */
  1238. // @XxlJob("shutdown_NMM_KGDL_MLJ_FDC_STA")
  1239. // public void shutdown_NMM_KGDL_MLJ_FDC_STA() {
  1240. //
  1241. // XxlJobHelper.log("内蒙米粮局风电场停机记录调度程序执行开始!........");
  1242. //
  1243. // try {
  1244. // shutdownnewService.execShutdown(new Date(),"NMM_KGDL_MLJ_FDC_STA");
  1245. //
  1246. // } catch (Exception e) {
  1247. // e.printStackTrace();
  1248. // }
  1249. // XxlJobHelper.log("内蒙米粮局风电场停机记录调度任务处理完成!........");
  1250. // }
  1251. //
  1252. // /**
  1253. // * 屯留吾元光伏电站停机记录
  1254. // * 每两秒执行一次
  1255. // */
  1256. // @XxlJob("shutdown_SXJ_KGDL_TL_GDC_STA")
  1257. // public void shutdown_SXJ_KGDL_TL_GDC_STA() {
  1258. //
  1259. // XxlJobHelper.log("屯留吾元光伏电站停机记录调度程序执行开始!........");
  1260. //
  1261. // try {
  1262. // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_TL_GDC_STA");
  1263. //
  1264. // } catch (Exception e) {
  1265. // e.printStackTrace();
  1266. // }
  1267. // XxlJobHelper.log("屯留吾元光伏电站停机记录调度任务处理完成!........");
  1268. // }
  1269. /**
  1270. * 短期功率预测精度计算
  1271. * 每两秒执行一次
  1272. */
  1273. @XxlJob("shorttermpowerpredictionaccuracycalculator")
  1274. public void shorttermpowerpredictionaccuracycalculator() {
  1275. XxlJobHelper.log("短期功率预测精度计算调度程序执行开始!........");
  1276. try {
  1277. // 输入数据
  1278. double[] predictedPower = {};
  1279. { /* 96个点的预测功率值 */ }
  1280. ;
  1281. double[] actualPower = {};
  1282. { /* 96个点的实际功率值 */ }
  1283. ;
  1284. double installedCapacity = 0; /* 装机容量 */
  1285. ;
  1286. // 计算准确率
  1287. double accuracy = shortTermPowerPredictionAccuracyCalculator.calculateAccuracy(predictedPower, actualPower, installedCapacity);
  1288. // 输出结果
  1289. System.out.println("超短期预测曲线准确率: " + accuracy + "%");
  1290. } catch (Exception e) {
  1291. e.printStackTrace();
  1292. }
  1293. XxlJobHelper.log("短期功率预测精度计算调度程序处理完成!........");
  1294. }
  1295. /**
  1296. * 功率预测错误计算
  1297. * 每两秒执行一次
  1298. */
  1299. @XxlJob("powerpredictionerrorcalculator ")
  1300. public void powerpredictionerrorcalculator() {
  1301. XxlJobHelper.log("功率预测错误计算调度程序执行开始!........");
  1302. try {
  1303. // 输入数据
  1304. double[] predictedPower = { /* 96个点的预测功率值 */};
  1305. double[] actualPower = { /* 96个点的实际功率值 */};
  1306. double installedCapacity = 0; /* 装机容量 */
  1307. double maxErrorPercentage = PowerPredictionErrorCalculator.calculateMaxErrorPercentage(predictedPower, actualPower, installedCapacity);
  1308. // 输出结果
  1309. System.out.println("日预测曲线最大误差值: " + maxErrorPercentage + "%");
  1310. } catch (Exception e) {
  1311. e.printStackTrace();
  1312. }
  1313. XxlJobHelper.log("功率预测错误计算调度程序处理完成!........");
  1314. }
  1315. /**
  1316. * 可用功率精度计算
  1317. * 每两秒执行一次
  1318. */
  1319. @XxlJob("availablepoweraccuracycalculator ")
  1320. public void availablepoweraccuracycalculator() {
  1321. XxlJobHelper.log("可用功率精度计算调度程序执行开始!........");
  1322. try {
  1323. // 输入数据
  1324. double actualGeneration = 0; /* 当日新能源场站非限电时段实际发电量 */
  1325. ;
  1326. double availablePower = 0; /* 当日新能源场站非限电时段可用电量 */
  1327. ;
  1328. double installedCapacity = 0;/* 全场装机容量 */
  1329. ;
  1330. // 计算日准确率
  1331. double accuracy = AvailablePowerAccuracyCalculator.calculateAccuracy(actualGeneration, availablePower);
  1332. // 输出结果
  1333. System.out.println("可用电量的日准确率: " + accuracy + "%");
  1334. // 计算考核分数
  1335. double score = AvailablePowerAccuracyCalculator.calculateAssessmentScore(accuracy, installedCapacity);
  1336. // 输出考核分数
  1337. System.out.println("考核分数: " + score + "分/万千瓦");
  1338. } catch (Exception e) {
  1339. e.printStackTrace();
  1340. }
  1341. XxlJobHelper.log("可用功率精度计算调度程序处理完成!........");
  1342. }
  1343. // @XxlJob("PredictedPowerccuracy")
  1344. // public void Powerccuracy() {
  1345. //
  1346. //
  1347. // XxlJobHelper.log("预测功率准确率计算执行开始!........");
  1348. // try {
  1349. // powerService.predictedPower();
  1350. // } catch (Exception e) {
  1351. // e.printStackTrace();
  1352. // }
  1353. // XxlJobHelper.log("预测功率准确率计算执行开始!........");
  1354. // }
  1355. //
  1356. //
  1357. // @XxlJob("companysjs")
  1358. // public void companysjs() {
  1359. //
  1360. //
  1361. // XxlJobHelper.log("底码计算执行开始!........");
  1362. // try {
  1363. // analysisNewService.companys();
  1364. // } catch (Exception e) {
  1365. // e.printStackTrace();
  1366. // }
  1367. // XxlJobHelper.log("底码计算计算执行开始!........");
  1368. // }
  1369. //
  1370. // @XxlJob("saveWindProjectjs")
  1371. // public void saveWindProjectjs() {
  1372. //
  1373. //
  1374. // XxlJobHelper.log("底码电量计算执行开始!........");
  1375. // try {
  1376. // analysisNewService.saveWindProject();
  1377. // } catch (Exception e) {
  1378. // e.printStackTrace();
  1379. // }
  1380. // XxlJobHelper.log("底码电量计算执行开始!........");
  1381. // }
  1382. //
  1383. // @XxlJob("irradiationjs")
  1384. // public void irradiation() {
  1385. //
  1386. //
  1387. // XxlJobHelper.log("日照强度替换计算执行开始!........");
  1388. // try {
  1389. // irradiationinputService.getcockpit();
  1390. // } catch (Exception e) {
  1391. // e.printStackTrace();
  1392. // }
  1393. // XxlJobHelper.log("日照强度替换计算执行开始!........");
  1394. // }
  1395. /**
  1396. * 光伏数据写入
  1397. */
  1398. @XxlJob("ndgfzb")
  1399. public void ndgfzb() throws Exception {
  1400. Date date = new Date();
  1401. windPowerInfo1Service.writeGf(date);
  1402. }
  1403. @XxlJob("report_ha_windturbine")
  1404. public void reportHaWindturbine() throws Exception {
  1405. Date date = new Date();
  1406. windPowerInfo1Service.writeHaWindturbine(date);
  1407. // date.setTime(1742745600000L);
  1408. // windPowerInfo1Service.writeHaWindturbineHistory(date);
  1409. }
  1410. /**
  1411. * 一/二期风机运行参数
  1412. */
  1413. @XxlJob("report_info1")
  1414. public void reportInfo1() throws Exception {
  1415. Date date = new Date();
  1416. windPowerInfo1Service.writeReport1(date);
  1417. // windPowerInfo1Service.writeReportHistory(date);
  1418. }
  1419. /**
  1420. * 风电场设备运行参数
  1421. */
  1422. @XxlJob("report_info2")
  1423. public void reportInfo2() throws Exception {
  1424. Date date = new Date();
  1425. windPowerInfo1Service.writeReport2(date);
  1426. // windPowerInfo1Service.writeReportHistory2(date);
  1427. }
  1428. /**
  1429. * 风电场设备运行参数
  1430. */
  1431. @XxlJob("report_info3")
  1432. public void reportInfo3() throws Exception {
  1433. Date date = new Date();
  1434. windPowerInfo1Service.writeReport3(date);
  1435. // windPowerInfo1Service.writeReportHistory3(date);
  1436. }
  1437. }