SaticSchedulePgTask.java 51 KB

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