123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641 |
- package com.gyee.generation.task;
- import com.gyee.common.util.DateUtils;
- import com.gyee.generation.service.*;
- import com.gyee.generation.service.StationPower.StationPowerService;
- import com.gyee.generation.util.math.AvailablePowerAccuracyCalculator;
- import com.gyee.generation.util.math.PowerPredictionErrorCalculator;
- import com.gyee.generation.util.math.ShortTermPowerPredictionAccuracyCalculator;
- import com.xxl.job.core.context.XxlJobHelper;
- import com.xxl.job.core.handler.annotation.XxlJob;
- import org.slf4j.Logger;
- import org.slf4j.LoggerFactory;
- import org.springframework.stereotype.Component;
- import javax.annotation.Resource;
- import java.util.Calendar;
- import java.util.Date;
- /**
- * @ClassName : SaticScheduleTask
- * @Description : 调度
- */
- @Component
- public class SaticSchedulePgTask {
- private static Logger logger = LoggerFactory.getLogger(SaticSchedulePgTask.class);
- @Resource
- private InputOrOutPutService inputOrOutPutService;
- @Resource
- private LimitEventnewService limitEventnewService;
- @Resource
- private PowerCurveFittingByTimeService powerCurveFittingByTimeService;
- @Resource
- private ShutdownnewService shutdownnewService;
- @Resource
- private WindPowerInfo1Service windPowerInfo1Service;
- @Resource
- private WindPowerInfo2Service windPowerInfo2Service;
- @Resource
- private WindPowerInfo3Service windPowerInfo3Service;
- @Resource
- private WindPowerInfo4Service windPowerInfo4Service;
- @Resource
- private WindPowerInfo5Service windPowerInfo5Service;
- @Resource
- private WindPowerInfo6Service windPowerInfo6Service;
- @Resource
- private EquipmentInfo1Service equipmentInfo1Service;
- @Resource
- private EquipmentInfo2Service equipmentInfo2Service;
- @Resource
- private EquipmentInfo3Service equipmentInfo3Service;
- @Resource
- private EquipmentInfo4Service equipmentInfo4Service;
- @Resource
- private EquipmentInfo5Service equipmentInfo5Service;
- @Resource
- private EquipmentInfoDayTopService equipmentInfoDayTopService;
- @Resource
- private WindturbineGoodnessService windturbineGoodnessService;
- @Resource
- private WtAlysisDayService wtAlysisDayService;
- @Resource
- private WpwindDayInfoService wpwindDayInfoService;
- @Resource
- private WtwindDayInfoService wtwindDayInfoService;
- @Resource
- private PowerCurveFittingByTimeGfService powerCurveFittingByTimeGfService;
- @Resource
- private EquipmentInfo15minuteService equipmentInfo15minuteService;
- @Resource
- private TimelinessRateService timelinessRateService;
- @Resource
- private WindDeviationService windDeviationService;
- @Resource
- private InitialRedisService initialRedisService;
- @Resource
- private ShortTermPowerPredictionAccuracyCalculator shortTermPowerPredictionAccuracyCalculator;
- @Resource
- private StationPowerService powerService;
- @Resource
- private AnalysisNewService analysisNewService;
- @Resource
- private WindPowerInfo5UpdateService windPowerInfo5UpdateService;
- @XxlJob("windPowerInfo5Update")
- public void windPowerInfo5Update() {
- XxlJobHelper.log("同步电计量电量调度程序执行开始!........");
- try {
- Calendar c = Calendar.getInstance();
- windPowerInfo5UpdateService.calProjectInfoDay(c.getTime());
- windPowerInfo5UpdateService.calWindpowerInfoDay(c.getTime());
- windPowerInfo5UpdateService.calWindpowerInfoDayCurry();
- windPowerInfo5UpdateService.calProjectInfoDayCurry();
- } catch (Exception e) {
- e.printStackTrace();
- }
- XxlJobHelper.log("同步电计量电量调度任务处理完成!........");
- }
- /**
- * 缓存Redis散点图数据
- * 每天执行一次
- */
- @XxlJob("initialRedis_PG")
- public void initialRedis_PG() {
- XxlJobHelper.log("缓存Redis散点图数据调度程序执行开始!........");
- try {
- // initialRedisService.initialRedisAll();
- initialRedisService.intialWtScatter();
- } catch (Exception e) {
- e.printStackTrace();
- }
- XxlJobHelper.log("缓存Redis散点图数据调度任务处理完成!........");
- }
- /**
- * 故障转换率
- * 每15钟执行一次
- */
- @XxlJob("calFailRate_PG")
- public void calFailRate_PG() {
- XxlJobHelper.log("故障转换率记录调度程序执行开始!........");
- try {
- timelinessRateService.failRate(new Date());
- } catch (Exception e) {
- e.printStackTrace();
- }
- XxlJobHelper.log("故障转换率记录调度任务处理完成!........");
- }
- //3.添加定时任务
- /**
- * 15分钟数据统计
- * 每15分钟执行一次
- */
- @XxlJob("calEquipmentInfo15minute_PG")
- public void calEquipmentInfo15minute_PG() {
- XxlJobHelper.log("15分钟数据统计记录调度程序执行开始!........");
- try {
- equipmentInfo15minuteService.calEquipmentInfo15minute(new Date());
- } catch (Exception e) {
- e.printStackTrace();
- }
- XxlJobHelper.log("15分钟数据统计记录调度任务处理完成!........");
- }
- //3.添加定时任务
- /**
- * 切入切出统计
- * 每5分钟执行一次
- */
- @XxlJob("inputOrOutPutSpeed_PG")
- public void inputOrOutPutSpeed_PG() {
- XxlJobHelper.log("切入切出状态切换记录调度程序执行开始!........");
- try {
- inputOrOutPutService.inputOrOutputSpeed(new Date());
- } catch (Exception e) {
- e.printStackTrace();
- }
- XxlJobHelper.log("切入切出状态切换记录调度任务处理完成!........");
- }
- //3.添加定时任务
- /**
- * 切入切出统计
- * 每天1点执行一次
- */
- @XxlJob("inputOrOutPut_PG")
- public void inputOrOutPut_PG() {
- XxlJobHelper.log("切入切出统计调度程序执行开始!........");
- try {
- inputOrOutPutService.inputOrOutput(new Date());
- } catch (Exception e) {
- e.printStackTrace();
- }
- XxlJobHelper.log("切入切出统计调度任务处理完成!........");
- }
- /**
- * 停机记录
- * 每5分钟执行一次
- */
- @XxlJob("shutdown_PG")
- public void shutdown_PG() {
- XxlJobHelper.log("停机记录调度程序执行开始!........");
- try {
- while (true) {
- Date begin = new Date();
- System.out.println("停机记录调度程序执行开始!。。。。。。");
- shutdownnewService.execShutdown(new Date());
- Date end = new Date();
- System.out.println("执行用时" + DateUtils.millisecondDiff(begin, end) + "秒");
- System.out.println("停机记录调度调度程序执行结束!。。。。。。");
- Thread.sleep(200);
- }
- } catch (Exception e) {
- e.printStackTrace();
- }
- XxlJobHelper.log("停机记录调度任务处理完成!........");
- }
- /**
- * 限电停机记录
- * 每5分钟执行一次
- */
- @XxlJob("brownouts_PG")
- public void brownouts_PG() {
- XxlJobHelper.log("限电停机记录调度程序执行开始!........");
- try {
- limitEventnewService.execBrownouts(new Date());
- } catch (Exception e) {
- e.printStackTrace();
- }
- XxlJobHelper.log("限电停机记录调度任务处理完成!........");
- }
- /**
- * 日、月、年功率曲线拟合
- * 每天执行一次
- */
- // @XxlJob("powerCurveFittingnew_PG")
- // public void powerCurveFittingnew_PG() {
- //
- // XxlJobHelper.log("日、月、年功率曲线拟合调度程序执行开始!........");
- //
- // Date date=new Date();
- // try {
- // XxlJobHelper.log("日序执行开始!........");
- // powerCurveFittingByTimeService.cureFittingDay(date);
- // XxlJobHelper.log("日处理完成!........");
- //
- // XxlJobHelper.log("月序执行开始!........");
- // powerCurveFittingByTimeService.cureFittingMonth(date,"0");
- // XxlJobHelper.log("月处理完成!........");
- //
- // XxlJobHelper.log("年序执行开始!........");
- // powerCurveFittingByTimeService.cureFittingYear(date);
- // XxlJobHelper.log("年处理完成!........");
- //
- //// powerCurveFittingByTimeGfService.cureFittingDay(date);
- //// powerCurveFittingByTimeGfService.cureFittingMonth(date,"0");
- //// powerCurveFittingByTimeGfService.cureFittingYear(date);
- //
- //
- //
- // } catch (Exception e) {
- // e.printStackTrace();
- // XxlJobHelper.log(e.getMessage());
- // }
- //
- // XxlJobHelper.log("日、月、年功率曲线拟合调度任务处理完成!........");
- // }
- /**
- * 平遥朱坑风电场功率预测
- * 每天一次
- */
- @XxlJob("shutdown_SXJ_KGDL_ZK_FDC_STA")
- public void shutdown_SXJ_KGDL_ZK_FDC_STA() {
- XxlJobHelper.log("平遥朱坑风电场功率预测调度程序执行开始!........");
- Date date = new Date();
- try {
- XxlJobHelper.log("日序执行开始!........");
- powerCurveFittingByTimeService.cureFittingDay(date, "SXJ_KGDL_ZK_FDC_STA");
- XxlJobHelper.log("日处理完成!........");
- XxlJobHelper.log("月序执行开始!........");
- powerCurveFittingByTimeService.cureFittingMonth(date, "0", "SXJ_KGDL_ZK_FDC_STA");
- XxlJobHelper.log("月处理完成!........");
- XxlJobHelper.log("年序执行开始!........");
- powerCurveFittingByTimeService.cureFittingYear(date, "SXJ_KGDL_ZK_FDC_STA");
- XxlJobHelper.log("年处理完成!........");
- } catch (Exception e) {
- e.printStackTrace();
- XxlJobHelper.log(e.getMessage());
- }
- XxlJobHelper.log("平遥朱坑风电场功率预测调度任务处理完成!........");
- }
- /**
- * 平鲁高家堰风电场功率预测
- * 每天一次
- */
- @XxlJob("shutdown_SXJ_KGDL_GJY_FDC_STA")
- public void shutdown_SXJ_KGDL_GJY_FDC_STA() {
- XxlJobHelper.log("平鲁高家堰风电场功率预测调度程序执行开始!........");
- Date date = new Date();
- try {
- XxlJobHelper.log("日序执行开始!........");
- powerCurveFittingByTimeService.cureFittingDay(date, "SXJ_KGDL_GJY_FDC_STA");
- XxlJobHelper.log("日处理完成!........");
- XxlJobHelper.log("月序执行开始!........");
- powerCurveFittingByTimeService.cureFittingMonth(date, "0", "SXJ_KGDL_GJY_FDC_STA");
- XxlJobHelper.log("月处理完成!........");
- XxlJobHelper.log("年序执行开始!........");
- powerCurveFittingByTimeService.cureFittingYear(date, "SXJ_KGDL_GJY_FDC_STA");
- XxlJobHelper.log("年处理完成!........");
- } catch (Exception e) {
- e.printStackTrace();
- XxlJobHelper.log(e.getMessage());
- }
- XxlJobHelper.log("平鲁高家堰风电场功率预测调度任务处理完成!........");
- }
- /**
- * 平鲁败虎堡风电场功率预测
- * 每天一次
- */
- @XxlJob("shutdown_SXJ_KGDL_BHB_FDC_STA")
- public void shutdown_SXJ_KGDL_BHB_FDC_STA() {
- XxlJobHelper.log("平鲁败虎堡风电场功率预测调度程序执行开始!........");
- Date date = new Date();
- try {
- XxlJobHelper.log("日序执行开始!........");
- powerCurveFittingByTimeService.cureFittingDay(date, "SXJ_KGDL_BHB_FDC_STA");
- XxlJobHelper.log("日处理完成!........");
- XxlJobHelper.log("月序执行开始!........");
- powerCurveFittingByTimeService.cureFittingMonth(date, "0", "SXJ_KGDL_BHB_FDC_STA");
- XxlJobHelper.log("月处理完成!........");
- XxlJobHelper.log("年序执行开始!........");
- powerCurveFittingByTimeService.cureFittingYear(date, "SXJ_KGDL_BHB_FDC_STA");
- XxlJobHelper.log("年处理完成!........");
- } catch (Exception e) {
- e.printStackTrace();
- XxlJobHelper.log(e.getMessage());
- }
- XxlJobHelper.log("平鲁败虎堡风电场功率预测调度任务处理完成!........");
- }
- /**
- * 平鲁红石峁风电场功率预测
- * 每天一次
- */
- @XxlJob("shutdown_SXJ_KGDL_HSM_FDC_STA")
- public void shutdown_SXJ_KGDL_HSM_FDC_STA() {
- XxlJobHelper.log("平鲁红石峁风电场功率预测调度程序执行开始!........");
- Date date = new Date();
- try {
- XxlJobHelper.log("日序执行开始!........");
- powerCurveFittingByTimeService.cureFittingDay(date, "SXJ_KGDL_HSM_FDC_STA");
- XxlJobHelper.log("日处理完成!........");
- XxlJobHelper.log("月序执行开始!........");
- powerCurveFittingByTimeService.cureFittingMonth(date, "0", "SXJ_KGDL_HSM_FDC_STA");
- XxlJobHelper.log("月处理完成!........");
- XxlJobHelper.log("年序执行开始!........");
- powerCurveFittingByTimeService.cureFittingYear(date, "SXJ_KGDL_HSM_FDC_STA");
- XxlJobHelper.log("年处理完成!........");
- } catch (Exception e) {
- e.printStackTrace();
- XxlJobHelper.log(e.getMessage());
- }
- XxlJobHelper.log("平鲁红石峁风电场功率预测调度任务处理完成!........");
- }
- /**
- * 寿阳羊头崖风电场功率预测
- * 每天一次
- */
- @XxlJob("shutdown_SXJ_KGDL_YTY_FDC_STA")
- public void shutdown_SXJ_KGDL_YTY_FDC_STA() {
- XxlJobHelper.log("寿阳羊头崖风电场功率预测调度程序执行开始!........");
- Date date = new Date();
- try {
- XxlJobHelper.log("日序执行开始!........");
- powerCurveFittingByTimeService.cureFittingDay(date, "SXJ_KGDL_YTY_FDC_STA");
- XxlJobHelper.log("日处理完成!........");
- XxlJobHelper.log("月序执行开始!........");
- powerCurveFittingByTimeService.cureFittingMonth(date, "0", "SXJ_KGDL_YTY_FDC_STA");
- XxlJobHelper.log("月处理完成!........");
- XxlJobHelper.log("年序执行开始!........");
- powerCurveFittingByTimeService.cureFittingYear(date, "SXJ_KGDL_YTY_FDC_STA");
- XxlJobHelper.log("年处理完成!........");
- } catch (Exception e) {
- e.printStackTrace();
- XxlJobHelper.log(e.getMessage());
- }
- XxlJobHelper.log("寿阳羊头崖风电场功率预测调度任务处理完成!........");
- }
- /**
- * 平鲁败虎堡三期风电场功率预测
- * 每天一次
- */
- @XxlJob("shutdown_SXJ_KGDL_BHB3_FDC_STA")
- public void shutdown_SXJ_KGDL_BHB3_FDC_STA() {
- XxlJobHelper.log("平鲁败虎堡三期风电场功率预测调度程序执行开始!........");
- Date date = new Date();
- try {
- XxlJobHelper.log("日序执行开始!........");
- powerCurveFittingByTimeService.cureFittingDay(date, "SXJ_KGDL_BHB3_FDC_STA");
- XxlJobHelper.log("日处理完成!........");
- XxlJobHelper.log("月序执行开始!........");
- powerCurveFittingByTimeService.cureFittingMonth(date, "0", "SXJ_KGDL_BHB3_FDC_STA");
- XxlJobHelper.log("月处理完成!........");
- XxlJobHelper.log("年序执行开始!........");
- powerCurveFittingByTimeService.cureFittingYear(date, "SXJ_KGDL_BHB3_FDC_STA");
- XxlJobHelper.log("年处理完成!........");
- } catch (Exception e) {
- e.printStackTrace();
- XxlJobHelper.log(e.getMessage());
- }
- XxlJobHelper.log("平鲁败虎堡三期风电场功率预测调度任务处理完成!........");
- }
- /**
- * 宁武盘道梁风电场功率预测
- * 每天一次
- */
- @XxlJob("shutdown_SXJ_KGDL_PDL_FDC_STA")
- public void shutdown_SXJ_KGDL_PDL_FDC_STA() {
- XxlJobHelper.log("宁武盘道梁风电场功率预测调度程序执行开始!........");
- Date date = new Date();
- try {
- XxlJobHelper.log("日序执行开始!........");
- powerCurveFittingByTimeService.cureFittingDay(date, "SXJ_KGDL_PDL_FDC_STA");
- XxlJobHelper.log("日处理完成!........");
- XxlJobHelper.log("月序执行开始!........");
- powerCurveFittingByTimeService.cureFittingMonth(date, "0", "SXJ_KGDL_PDL_FDC_STA");
- XxlJobHelper.log("月处理完成!........");
- XxlJobHelper.log("年序执行开始!........");
- powerCurveFittingByTimeService.cureFittingYear(date, "SXJ_KGDL_PDL_FDC_STA");
- XxlJobHelper.log("年处理完成!........");
- } catch (Exception e) {
- e.printStackTrace();
- XxlJobHelper.log(e.getMessage());
- }
- XxlJobHelper.log("宁武盘道梁风电场功率预测调度任务处理完成!........");
- }
- /**
- * 朔城区牛家岭风电场功率预测
- * 每天一次
- */
- @XxlJob("shutdown_SXJ_KGDL_NJL_FDC_STA")
- public void shutdown_SXJ_KGDL_NJL_FDC_STA() {
- XxlJobHelper.log("朔城区牛家岭风电场功率预测调度程序执行开始!........");
- Date date = new Date();
- try {
- XxlJobHelper.log("日序执行开始!........");
- powerCurveFittingByTimeService.cureFittingDay(date, "SXJ_KGDL_NJL_FDC_STA");
- XxlJobHelper.log("日处理完成!........");
- XxlJobHelper.log("月序执行开始!........");
- powerCurveFittingByTimeService.cureFittingMonth(date, "0", "SXJ_KGDL_NJL_FDC_STA");
- XxlJobHelper.log("月处理完成!........");
- XxlJobHelper.log("年序执行开始!........");
- powerCurveFittingByTimeService.cureFittingYear(date, "SXJ_KGDL_NJL_FDC_STA");
- XxlJobHelper.log("年处理完成!........");
- } catch (Exception e) {
- e.printStackTrace();
- XxlJobHelper.log(e.getMessage());
- }
- XxlJobHelper.log("朔城区牛家岭风电场功率预测调度任务处理完成!........");
- }
- /**
- * 寿阳尹灵芝风电场功率预测
- * 每天一次
- */
- @XxlJob("shutdown_SXJ_KGDL_YLZ_FDC_STA")
- public void shutdown_SXJ_KGDL_YLZ_FDC_STA() {
- XxlJobHelper.log("寿阳尹灵芝风电场功率预测调度程序执行开始!........");
- Date date = new Date();
- try {
- XxlJobHelper.log("日序执行开始!........");
- powerCurveFittingByTimeService.cureFittingDay(date, "SXJ_KGDL_YLZ_FDC_STA");
- XxlJobHelper.log("日处理完成!........");
- XxlJobHelper.log("月序执行开始!........");
- powerCurveFittingByTimeService.cureFittingMonth(date, "0", "SXJ_KGDL_YLZ_FDC_STA");
- XxlJobHelper.log("月处理完成!........");
- XxlJobHelper.log("年序执行开始!........");
- powerCurveFittingByTimeService.cureFittingYear(date, "SXJ_KGDL_YLZ_FDC_STA");
- XxlJobHelper.log("年处理完成!........");
- } catch (Exception e) {
- e.printStackTrace();
- XxlJobHelper.log(e.getMessage());
- }
- XxlJobHelper.log("寿阳尹灵芝风电场功率预测调度任务处理完成!........");
- }
- /**
- * 平鲁禹丰风电场功率预测
- * 每天一次
- */
- @XxlJob("shutdown_SXJ_KGDL_YF_FDC_STA")
- public void shutdown_SXJ_KGDL_YF_FDC_STA() {
- XxlJobHelper.log("平鲁禹丰风电场功率预测调度程序执行开始!........");
- Date date = new Date();
- try {
- XxlJobHelper.log("日序执行开始!........");
- powerCurveFittingByTimeService.cureFittingDay(date, "SXJ_KGDL_YF_FDC_STA");
- XxlJobHelper.log("日处理完成!........");
- XxlJobHelper.log("月序执行开始!........");
- powerCurveFittingByTimeService.cureFittingMonth(date, "0", "SXJ_KGDL_YF_FDC_STA");
- XxlJobHelper.log("月处理完成!........");
- XxlJobHelper.log("年序执行开始!........");
- powerCurveFittingByTimeService.cureFittingYear(date, "SXJ_KGDL_YF_FDC_STA");
- XxlJobHelper.log("年处理完成!........");
- } catch (Exception e) {
- e.printStackTrace();
- XxlJobHelper.log(e.getMessage());
- }
- XxlJobHelper.log("平鲁禹丰风电场功率预测调度任务处理完成!........");
- }
- /**
- * 寿阳平头镇风电场功率预测
- * 每天一次
- */
- @XxlJob("shutdown_SXJ_KGDL_PTZ_FDC_STA")
- public void shutdown_SXJ_KGDL_PTZ_FDC_STA() {
- XxlJobHelper.log("寿阳平头镇风电场功率预测调度程序执行开始!........");
- Date date = new Date();
- try {
- XxlJobHelper.log("日序执行开始!........");
- powerCurveFittingByTimeService.cureFittingDay(date, "SXJ_KGDL_PTZ_FDC_STA");
- XxlJobHelper.log("日处理完成!........");
- XxlJobHelper.log("月序执行开始!........");
- powerCurveFittingByTimeService.cureFittingMonth(date, "0", "SXJ_KGDL_PTZ_FDC_STA");
- XxlJobHelper.log("月处理完成!........");
- XxlJobHelper.log("年序执行开始!........");
- powerCurveFittingByTimeService.cureFittingYear(date, "SXJ_KGDL_PTZ_FDC_STA");
- XxlJobHelper.log("年处理完成!........");
- } catch (Exception e) {
- e.printStackTrace();
- XxlJobHelper.log(e.getMessage());
- }
- XxlJobHelper.log("寿阳平头镇风电场功率预测调度任务处理完成!........");
- }
- /**
- * 右玉小五台风电场功率预测
- * 每天一次
- */
- @XxlJob("shutdown_SXJ_KGDL_XWT_FDC_STA")
- public void shutdown_SXJ_KGDL_XWT_FDC_STA() {
- XxlJobHelper.log("右玉小五台风电场功率预测调度程序执行开始!........");
- Date date = new Date();
- try {
- XxlJobHelper.log("日序执行开始!........");
- powerCurveFittingByTimeService.cureFittingDay(date, "SXJ_KGDL_XWT_FDC_STA");
- XxlJobHelper.log("日处理完成!........");
- XxlJobHelper.log("月序执行开始!........");
- powerCurveFittingByTimeService.cureFittingMonth(date, "0", "SXJ_KGDL_XWT_FDC_STA");
- XxlJobHelper.log("月处理完成!........");
- XxlJobHelper.log("年序执行开始!........");
- powerCurveFittingByTimeService.cureFittingYear(date, "SXJ_KGDL_XWT_FDC_STA");
- XxlJobHelper.log("年处理完成!........");
- } catch (Exception e) {
- e.printStackTrace();
- XxlJobHelper.log(e.getMessage());
- }
- XxlJobHelper.log("右玉小五台风电场功率预测调度任务处理完成!........");
- }
- /**
- * 右玉丁家窑风电场功率预测
- * 每天一次
- */
- @XxlJob("shutdown_SXJ_KGDL_DJY_FDC_STA")
- public void shutdown_SXJ_KGDL_DJY_FDC_STA() {
- XxlJobHelper.log("右玉丁家窑风电场功率预测调度程序执行开始!........");
- Date date = new Date();
- try {
- XxlJobHelper.log("日序执行开始!........");
- powerCurveFittingByTimeService.cureFittingDay(date, "SXJ_KGDL_DJY_FDC_STA");
- XxlJobHelper.log("日处理完成!........");
- XxlJobHelper.log("月序执行开始!........");
- powerCurveFittingByTimeService.cureFittingMonth(date, "0", "SXJ_KGDL_DJY_FDC_STA");
- XxlJobHelper.log("月处理完成!........");
- XxlJobHelper.log("年序执行开始!........");
- powerCurveFittingByTimeService.cureFittingYear(date, "SXJ_KGDL_DJY_FDC_STA");
- XxlJobHelper.log("年处理完成!........");
- } catch (Exception e) {
- e.printStackTrace();
- XxlJobHelper.log(e.getMessage());
- }
- XxlJobHelper.log("右玉丁家窑风电场功率预测调度任务处理完成!........");
- }
- /**
- * 场站1表
- * 15分钟只执行一次
- */
- @XxlJob("windPowerInfo1_PG")
- public void windPowerInfo1_PG() throws Exception {
- XxlJobHelper.log("场站指标1调度程序执行开始!........");
- Date date = new Date();
- windPowerInfo1Service.calLineInfoDay(date);
- windPowerInfo1Service.calProjectInfoDay(date);
- windPowerInfo1Service.calWindpowerInfoDay(date);
- windPowerInfo1Service.calCompanyInfoDay(date);
- windPowerInfo1Service.calRegionInfoDay(date);
- XxlJobHelper.log("场站指标1指标调度程序执行完成!........");
- }
- /**
- * 场站2表
- * 15分钟只执行一次
- */
- @XxlJob("windPowerInfo2_PG")
- public void windPowerInfo2_PG() throws Exception {
- XxlJobHelper.log("场站指标2调度程序执行开始!........");
- Date date = new Date();
- windPowerInfo2Service.calLineInfoDay(date);
- windPowerInfo2Service.calProjectInfoDay(date);
- windPowerInfo2Service.calWindpowerInfoDay(date);
- windPowerInfo2Service.calCompanyInfoDay(date);
- windPowerInfo2Service.calRegionInfoDay(date);
- XxlJobHelper.log("场站指标2指标调度程序执行完成!........");
- }
- /**
- * 场站3表
- * 15分钟只执行一次
- */
- @XxlJob("windPowerInfo3_PG")
- public void windPowerInfo3_PG() throws Exception {
- XxlJobHelper.log("场站指标3调度程序执行开始!........");
- Date date = new Date();
- windPowerInfo3Service.calLineInfoDay(date);
- windPowerInfo3Service.calProjectInfoDay(date);
- windPowerInfo3Service.calWindpowerInfoDay(date);
- windPowerInfo3Service.calCompanyInfoDay(date);
- windPowerInfo3Service.calRegionInfoDay(date);
- XxlJobHelper.log("场站指标3指标调度程序执行完成!........");
- }
- /**
- * 场站4表
- * 15分钟只执行一次
- */
- @XxlJob("windPowerInfo4_PG")
- public void windPowerInfo4_PG() throws Exception {
- XxlJobHelper.log("场站指标4调度程序执行开始!........");
- Date date = new Date();
- windPowerInfo4Service.calLineInfoDay(date);
- windPowerInfo4Service.calProjectInfoDay(date);
- windPowerInfo4Service.calWindpowerInfoDay(date);
- windPowerInfo4Service.calCompanyInfoDay(date);
- windPowerInfo4Service.calRegionInfoDay(date);
- XxlJobHelper.log("场站指标4指标调度程序执行完成!........");
- }
- /**
- * 场站5表
- * 15分钟只执行一次
- */
- @XxlJob("windPowerInfo5_PG")
- public void windPowerInfo5_PG() throws Exception {
- XxlJobHelper.log("场站指标5调度程序执行开始!........");
- Date date = new Date();
- windPowerInfo5Service.calLineInfoDay(date);
- windPowerInfo5Service.calProjectInfoDay(date);
- windPowerInfo5Service.calWindpowerInfoDay(date);
- windPowerInfo5Service.calCompanyInfoDay(date);
- windPowerInfo5Service.calRegionInfoDay(date);
- XxlJobHelper.log("场站指标5指标调度程序执行完成!........");
- }
- /**
- * 场站6表
- * 15分钟只执行一次
- */
- @XxlJob("windPowerInfo6_PG")
- public void windPowerInfo6_PG() throws Exception {
- XxlJobHelper.log("场站指标6调度程序执行开始!........");
- Date date = new Date();
- windPowerInfo6Service.calLineInfoDay(date);
- windPowerInfo6Service.calProjectInfoDay(date);
- windPowerInfo6Service.calWindpowerInfoDay(date);
- windPowerInfo6Service.calCompanyInfoDay(date);
- windPowerInfo6Service.calRegionInfoDay(date);
- XxlJobHelper.log("场站指标6指标调度程序执行完成!........");
- }
- /**
- * 设备1-5表
- * 15分钟只执行一次
- */
- @XxlJob("equipment_PowerInfo1_PG")
- public void equipment_PowerInfo1_PG() throws Exception {
- XxlJobHelper.log("设备指标1调度程序执行开始!........");
- Date date = new Date();
- equipmentInfo1Service.calEquipmentInfoDay(date);
- XxlJobHelper.log("设备指标1调度程序执行完成!........");
- }
- /**
- * 设备2表
- * 15分钟只执行一次
- */
- @XxlJob("equipment_PowerInfo2_PG")
- public void equipment_PowerInfo2_PG() throws Exception {
- XxlJobHelper.log("设备指标2调度程序执行开始!........");
- Date date = new Date();
- equipmentInfo2Service.calEquipmentInfoDay(date);
- XxlJobHelper.log("设备指标2调度程序执行完成!........");
- }
- /**
- * 设备3表
- * 15分钟只执行一次
- */
- @XxlJob("equipment_PowerInfo3_PG")
- public void equipment_PowerInfo3_PG() throws Exception {
- XxlJobHelper.log("设备指标3调度程序执行开始!........");
- Date date = new Date();
- equipmentInfo3Service.calEquipmentInfoDay(date);
- XxlJobHelper.log("设备指标3调度程序执行完成!........");
- }
- /**
- * 设备3表
- * 15分钟只执行一次
- */
- @XxlJob("equipment_PowerInfo4_PG")
- public void equipment_PowerInfo4_PG() throws Exception {
- XxlJobHelper.log("设备指标4调度程序执行开始!........");
- Date date = new Date();
- equipmentInfo4Service.calEquipmentInfoDay(date);
- XxlJobHelper.log("设备指标调度4程序执行完成!........");
- }
- /**
- * 设备5表
- * 15分钟只执行一次
- */
- @XxlJob("equipment_PowerInfo5_PG")
- public void equipment_PowerInfo5_PG() throws Exception {
- XxlJobHelper.log("设备指标5调度程序执行开始!........");
- Date date = new Date();
- equipmentInfo5Service.calEquipmentInfoDay(date);
- XxlJobHelper.log("设备指标调度5程序执行完成!........");
- }
- /**
- * 等级评估统计
- * 每天执行一次
- */
- @XxlJob("equipmentInfoDayTop_PG")
- public void equipmentInfoDayTop_PG() {
- XxlJobHelper.log("等级评估统计调度程序执行开始!........");
- try {
- equipmentInfoDayTopService.calEquipmentInfoDayTop(new Date());
- equipmentInfoDayTopService.calEquipmentInfoMonthTop(new Date());
- equipmentInfoDayTopService.calEquipmentInfoYearTop(new Date());
- } catch (Exception e) {
- e.printStackTrace();
- }
- XxlJobHelper.log("等级评估统计调度任务处理完成!........");
- }
- /**
- * 功率一致性系数和拟合优度
- * 每天2点执行一次
- */
- @XxlJob("windturbineGoodness_PG")
- public void windturbineGoodness_PG() {
- XxlJobHelper.log("功率一致性系数和拟合优度统计调度程序执行开始!........");
- try {
- windturbineGoodnessService.calWindturbineGoodness(new Date());
- } catch (Exception e) {
- e.printStackTrace();
- }
- XxlJobHelper.log("功率一致性系数和拟合优度统计调度任务处理完成!........");
- }
- @XxlJob("wtAlysisDay_PG")
- public void wtAlysisDay_PG() {
- XxlJobHelper.log("分析数据统计调度程序执行开始!........");
- try {
- wtAlysisDayService.calEquipmentInfoDay(new Date());
- } catch (Exception e) {
- e.printStackTrace();
- }
- XxlJobHelper.log("分析数据统计调度任务处理完成!........");
- }
- /**
- * 设备风资源统计调度
- * 每天2点执行一次
- */
- @XxlJob("wtwindDayInfo_PG")
- public void wtwindDayInfo_PG() {
- XxlJobHelper.log("设备风资源统计调度程序执行开始!........");
- try {
- wpwindDayInfoService.calWpwindDayInfo(new Date());
- } catch (Exception e) {
- e.printStackTrace();
- }
- XxlJobHelper.log("设备风资源统计调度任务处理完成!........");
- }
- /**
- * 场站风资源统计调度
- * 每天2点执行一次
- */
- @XxlJob("wpwindDayInfo_PG")
- public void wpwindDayInfo_PG() {
- XxlJobHelper.log("场站风资源统计调度程序执行开始!........");
- try {
- wtwindDayInfoService.calWtwindDayInfo(new Date());
- } catch (Exception e) {
- e.printStackTrace();
- }
- XxlJobHelper.log("场站风资源统计调度任务处理完成!........");
- }
- /**
- * 对风偏差率
- * 每日0点15执行
- */
- @XxlJob("calWindDeviation_PG")
- public void calWindDeviation_PG() {
- XxlJobHelper.log("对风偏差率调度程序执行开始!........");
- String yesterdayStr = DateUtils.getYesterdayStr("yyyy-MM-dd");
- try {
- windDeviationService.save(yesterdayStr, yesterdayStr);
- } catch (Exception e) {
- e.printStackTrace();
- }
- XxlJobHelper.log("对风偏差率调度任务处理完成!........");
- }
- // /**
- // * 天镇光电站停机记录
- // * 每两秒执行一次
- // */
- // @XxlJob("shutdown_SXJ_KGDL_TZ_GDC_STA")
- // public void shutdown_SXJ_KGDL_TZ_GDC_STA() {
- //
- // XxlJobHelper.log("天镇光电站停机记录调度程序执行开始!........");
- //
- // try {
- // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_TZ_GDC_STA");
- //
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("天镇光电站停机记录调度任务处理完成!........");
- // }
- //
- //
- // /**
- // * 平遥朱坑风电场停机记录
- // * 每两秒执行一次
- // */
- // @XxlJob("shutdown_SXJ_KGDL_ZK_FDC_STA")
- // public void shutdown_SXJ_KGDL_ZK_FDC_STA() {
- //
- // XxlJobHelper.log("平遥朱坑风电场停机记录调度程序执行开始!........");
- //
- // try {
- // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_ZK_FDC_STA");
- //
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("平遥朱坑风电场停机记录调度任务处理完成!........");
- // }
- //
- //
- // /**
- // * 山阴荣新光电站停机记录
- // * 每两秒执行一次
- // */
- // @XxlJob("shutdown_SXJ_KGDL_SY_GDC_STA")
- // public void shutdown_SXJ_KGDL_SY_GDC_STA() {
- //
- // XxlJobHelper.log("山阴荣新光电站停机记录调度程序执行开始!........");
- //
- // try {
- // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_SY_GDC_STA");
- //
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("山阴荣新光电站停机记录调度任务处理完成!........");
- // }
- //
- //
- // /**
- // * 平鲁高家堰风电场停机记录
- // * 每两秒执行一次
- // */
- // @XxlJob("shutdown_SXJ_KGDL_GJY_FDC_STA")
- // public void shutdown_SXJ_KGDL_GJY_FDC_STA() {
- //
- // XxlJobHelper.log("平鲁高家堰风电场停机记录调度程序执行开始!........");
- //
- // try {
- // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_GJY_FDC_STA");
- //
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("平鲁高家堰风电场停机记录调度任务处理完成!........");
- // }
- //
- // /**
- // * 平鲁败虎堡风电场停机记录
- // * 每两秒执行一次
- // */
- // @XxlJob("shutdown_SXJ_KGDL_BHB_FDC_STA")
- // public void shutdown_SXJ_KGDL_BHB_FDC_STA() {
- //
- // XxlJobHelper.log("平鲁败虎堡风电场停机记录调度程序执行开始!........");
- //
- // try {
- // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_BHB_FDC_STA");
- //
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("平鲁败虎堡风电场停机记录调度任务处理完成!........");
- // }
- //
- // /**
- // * 平鲁红石峁风电场停机记录
- // * 每两秒执行一次
- // */
- // @XxlJob("shutdown_SXJ_KGDL_HSM_FDC_STA")
- // public void shutdown_SXJ_KGDL_HSM_FDC_STA() {
- //
- // XxlJobHelper.log("平鲁红石峁风电场停机记录调度程序执行开始!........");
- //
- // try {
- // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_HSM_FDC_STA");
- //
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("平鲁红石峁风电场停机记录调度任务处理完成!........");
- // }
- //
- // /**
- // * 寿阳羊头崖风电场停机记录
- // * 每两秒执行一次
- // */
- // @XxlJob("shutdown_SXJ_KGDL_YTY_FDC_STA")
- // public void shutdown_SXJ_KGDL_YTY_FDC_STA() {
- //
- // XxlJobHelper.log("寿阳羊头崖风电场停机记录调度程序执行开始!........");
- //
- // try {
- // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_YTY_FDC_STA");
- //
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("寿阳羊头崖风电场停机记录调度任务处理完成!........");
- // }
- //
- //
- // /**
- // * 平鲁败虎堡三期风电场停机记录
- // * 每两秒执行一次
- // */
- // @XxlJob("shutdown_SXJ_KGDL_BHB3_FDC_STA")
- // public void shutdown_SXJ_KGDL_BHB3_FDC_STA() {
- //
- // XxlJobHelper.log("平鲁败虎堡三期风电场停机记录调度程序执行开始!........");
- //
- // try {
- // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_BHB3_FDC_STA");
- //
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("平鲁败虎堡三期风电场停机记录调度任务处理完成!........");
- // }
- //
- // /**
- // * 繁峙均然光伏电站停机记录
- // * 每两秒执行一次
- // */
- // @XxlJob("shutdown_SXJ_KGDL_JR_GDC_STA")
- // public void shutdown_SXJ_KGDL_JR_GDC_STA() {
- //
- // XxlJobHelper.log("繁峙均然光伏电站停机记录调度程序执行开始!........");
- //
- // try {
- // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_JR_GDC_STA");
- //
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("繁峙均然光伏电站停机记录调度任务处理完成!........");
- // }
- //
- // /**
- // * 宁武盘道梁风电场停机记录
- // * 每两秒执行一次
- // */
- // @XxlJob("shutdown_SXJ_KGDL_PDL_FDC_STA")
- // public void shutdown_SXJ_KGDL_PDL_FDC_STA() {
- //
- // XxlJobHelper.log("宁武盘道梁风电场停机记录调度程序执行开始!........");
- //
- // try {
- // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_PDL_FDC_STA");
- //
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("宁武盘道梁风电场停机记录调度任务处理完成!........");
- // }
- //
- // /**
- // * 朔城区牛家岭风电场停机记录
- // * 每两秒执行一次
- // */
- // @XxlJob("shutdown_SXJ_KGDL_NJL_FDC_STA")
- // public void shutdown_SXJ_KGDL_NJL_FDC_STA() {
- //
- // XxlJobHelper.log("朔城区牛家岭风电场停机记录调度程序执行开始!........");
- //
- // try {
- // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_NJL_FDC_STA");
- //
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("朔城区牛家岭风电场停机记录调度任务处理完成!........");
- // }
- //
- //
- // /**
- // * 寿阳尹灵芝风电场停机记录
- // * 每两秒执行一次
- // */
- // @XxlJob("shutdown_SXJ_KGDL_YLZ_FDC_STA")
- // public void shutdown_SXJ_KGDL_YLZ_FDC_STA() {
- //
- // XxlJobHelper.log("寿阳尹灵芝风电场停机记录调度程序执行开始!........");
- //
- // try {
- // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_YLZ_FDC_STA");
- //
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("寿阳尹灵芝风电场停机记录调度任务处理完成!........");
- // }
- //
- // /**
- // * 阳高蔚家堡光伏电站停机记录
- // * 每两秒执行一次
- // */
- // @XxlJob("shutdown_SXJ_KGDL_YG_GDC_STA")
- // public void shutdown_SXJ_KGDL_YG_GDC_STA() {
- //
- // XxlJobHelper.log("阳高蔚家堡光伏电站停机记录调度程序执行开始!........");
- //
- // try {
- // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_YG_GDC_STA");
- //
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("阳高蔚家堡光伏电站停机记录调度任务处理完成!........");
- // }
- //
- // /**
- // * 平鲁禹丰风电场停机记录
- // * 每两秒执行一次
- // */
- // @XxlJob("shutdown_SXJ_KGDL_YF_FDC_STA")
- // public void shutdown_SXJ_KGDL_YF_FDC_STA() {
- //
- // XxlJobHelper.log("平鲁禹丰风电场停机记录调度程序执行开始!........");
- //
- // try {
- // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_YF_FDC_STA");
- //
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("平鲁禹丰风电场停机记录调度任务处理完成!........");
- // }
- //
- // /**
- // * 寿阳平头镇风电场停机记录
- // * 每两秒执行一次
- // */
- // @XxlJob("shutdown_SXJ_KGDL_PTZ_FDC_STA")
- // public void shutdown_SXJ_KGDL_PTZ_FDC_STA() {
- //
- // XxlJobHelper.log("寿阳平头镇风电场停机记录调度程序执行开始!........");
- //
- // try {
- // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_PTZ_FDC_STA");
- //
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("寿阳平头镇风电场停机记录调度任务处理完成!........");
- // }
- //
- // /**
- // * 右玉小五台风电场停机记录
- // * 每两秒执行一次
- // */
- // @XxlJob("shutdown_SXJ_KGDL_XWT_FDC_STA")
- // public void shutdown_SXJ_KGDL_XWT_FDC_STA() {
- //
- // XxlJobHelper.log("右玉小五台风电场停机记录调度程序执行开始!........");
- //
- // try {
- // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_XWT_FDC_STA");
- //
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("右玉小五台风电场停机记录调度任务处理完成!........");
- // }
- //
- // /**
- // * 方山孙家山光伏电站停机记录
- // * 每两秒执行一次
- // */
- // @XxlJob("shutdown_SXJ_KGDL_FS_GDC_STA")
- // public void shutdown_SXJ_KGDL_FS_GDC_STA() {
- //
- // XxlJobHelper.log("方山孙家山光伏电站停机记录调度程序执行开始!........");
- //
- // try {
- // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_FS_GDC_STA");
- //
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("方山孙家山光伏电站停机记录调度任务处理完成!........");
- // }
- //
- // /**
- // * 右玉丁家窑风电场停机记录
- // * 每两秒执行一次
- // */
- // @XxlJob("shutdown_SXJ_KGDL_DJY_FDC_STA")
- // public void shutdown_SXJ_KGDL_DJY_FDC_STA() {
- //
- // XxlJobHelper.log("右玉丁家窑风电场停机记录调度程序执行开始!........");
- //
- // try {
- // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_DJY_FDC_STA");
- //
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("右玉丁家窑风电场停机记录调度任务处理完成!........");
- // }
- //
- // /**
- // * 怀仁初晨光伏电站停机记录
- // * 每两秒执行一次
- // */
- // @XxlJob("shutdown_SXJ_KGDL_HR_GDC_STA")
- // public void shutdown_SXJ_KGDL_HR_GDC_STA() {
- //
- // XxlJobHelper.log("怀仁初晨光伏电站停机记录调度程序执行开始!........");
- //
- // try {
- // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_HR_GDC_STA");
- //
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("怀仁初晨光伏电站停机记录调度任务处理完成!........");
- // }
- //
- // /**
- // * 应县晶辉光伏电站停机记录
- // * 每两秒执行一次
- // */
- // @XxlJob("shutdown_SXJ_KGDL_YX_GDC_STA")
- // public void shutdown_SXJ_KGDL_YX_GDC_STA() {
- //
- // XxlJobHelper.log("应县晶辉光伏电站停机记录调度程序执行开始!........");
- //
- // try {
- // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_YX_GDC_STA");
- //
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("应县晶辉光伏电站停机记录调度任务处理完成!........");
- // }
- //
- // /**
- // * 右玉右卫光伏电站停机记录
- // * 每两秒执行一次
- // */
- // @XxlJob("shutdown_SXJ_KGDL_YY_GDC_STA")
- // public void shutdown_SXJ_KGDL_YY_GDC_STA() {
- //
- // XxlJobHelper.log("右玉右卫光伏电站停机记录调度程序执行开始!........");
- //
- // try {
- // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_YY_GDC_STA");
- //
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("右玉右卫光伏电站停机记录调度任务处理完成!........");
- // }
- //
- // /**
- // * 平鲁阻虎光伏电站停机记录
- // * 每两秒执行一次
- // */
- // @XxlJob("shutdown_SXJ_KGDL_PL_GDC_STA")
- // public void shutdown_SXJ_KGDL_PL_GDC_STA() {
- //
- // XxlJobHelper.log("平鲁阻虎光伏电站停机记录调度程序执行开始!........");
- //
- // try {
- // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_PL_GDC_STA");
- //
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("平鲁阻虎光伏电站停机记录调度任务处理完成!........");
- // }
- //
- // /**
- // * 内蒙米粮局风电场停机记录
- // * 每两秒执行一次
- // */
- // @XxlJob("shutdown_NMM_KGDL_MLJ_FDC_STA")
- // public void shutdown_NMM_KGDL_MLJ_FDC_STA() {
- //
- // XxlJobHelper.log("内蒙米粮局风电场停机记录调度程序执行开始!........");
- //
- // try {
- // shutdownnewService.execShutdown(new Date(),"NMM_KGDL_MLJ_FDC_STA");
- //
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("内蒙米粮局风电场停机记录调度任务处理完成!........");
- // }
- //
- // /**
- // * 屯留吾元光伏电站停机记录
- // * 每两秒执行一次
- // */
- // @XxlJob("shutdown_SXJ_KGDL_TL_GDC_STA")
- // public void shutdown_SXJ_KGDL_TL_GDC_STA() {
- //
- // XxlJobHelper.log("屯留吾元光伏电站停机记录调度程序执行开始!........");
- //
- // try {
- // shutdownnewService.execShutdown(new Date(),"SXJ_KGDL_TL_GDC_STA");
- //
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("屯留吾元光伏电站停机记录调度任务处理完成!........");
- // }
- /**
- * 短期功率预测精度计算
- * 每两秒执行一次
- */
- @XxlJob("shorttermpowerpredictionaccuracycalculator")
- public void shorttermpowerpredictionaccuracycalculator() {
- XxlJobHelper.log("短期功率预测精度计算调度程序执行开始!........");
- try {
- // 输入数据
- double[] predictedPower = {};
- { /* 96个点的预测功率值 */ }
- ;
- double[] actualPower = {};
- { /* 96个点的实际功率值 */ }
- ;
- double installedCapacity = 0; /* 装机容量 */
- ;
- // 计算准确率
- double accuracy = shortTermPowerPredictionAccuracyCalculator.calculateAccuracy(predictedPower, actualPower, installedCapacity);
- // 输出结果
- System.out.println("超短期预测曲线准确率: " + accuracy + "%");
- } catch (Exception e) {
- e.printStackTrace();
- }
- XxlJobHelper.log("短期功率预测精度计算调度程序处理完成!........");
- }
- /**
- * 功率预测错误计算
- * 每两秒执行一次
- */
- @XxlJob("powerpredictionerrorcalculator ")
- public void powerpredictionerrorcalculator() {
- XxlJobHelper.log("功率预测错误计算调度程序执行开始!........");
- try {
- // 输入数据
- double[] predictedPower = { /* 96个点的预测功率值 */};
- double[] actualPower = { /* 96个点的实际功率值 */};
- double installedCapacity = 0; /* 装机容量 */
- double maxErrorPercentage = PowerPredictionErrorCalculator.calculateMaxErrorPercentage(predictedPower, actualPower, installedCapacity);
- // 输出结果
- System.out.println("日预测曲线最大误差值: " + maxErrorPercentage + "%");
- } catch (Exception e) {
- e.printStackTrace();
- }
- XxlJobHelper.log("功率预测错误计算调度程序处理完成!........");
- }
- /**
- * 可用功率精度计算
- * 每两秒执行一次
- */
- @XxlJob("availablepoweraccuracycalculator ")
- public void availablepoweraccuracycalculator() {
- XxlJobHelper.log("可用功率精度计算调度程序执行开始!........");
- try {
- // 输入数据
- double actualGeneration = 0; /* 当日新能源场站非限电时段实际发电量 */
- ;
- double availablePower = 0; /* 当日新能源场站非限电时段可用电量 */
- ;
- double installedCapacity = 0;/* 全场装机容量 */
- ;
- // 计算日准确率
- double accuracy = AvailablePowerAccuracyCalculator.calculateAccuracy(actualGeneration, availablePower);
- // 输出结果
- System.out.println("可用电量的日准确率: " + accuracy + "%");
- // 计算考核分数
- double score = AvailablePowerAccuracyCalculator.calculateAssessmentScore(accuracy, installedCapacity);
- // 输出考核分数
- System.out.println("考核分数: " + score + "分/万千瓦");
- } catch (Exception e) {
- e.printStackTrace();
- }
- XxlJobHelper.log("可用功率精度计算调度程序处理完成!........");
- }
- // @XxlJob("PredictedPowerccuracy")
- // public void Powerccuracy() {
- //
- //
- // XxlJobHelper.log("预测功率准确率计算执行开始!........");
- // try {
- // powerService.predictedPower();
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("预测功率准确率计算执行开始!........");
- // }
- //
- //
- // @XxlJob("companysjs")
- // public void companysjs() {
- //
- //
- // XxlJobHelper.log("底码计算执行开始!........");
- // try {
- // analysisNewService.companys();
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("底码计算计算执行开始!........");
- // }
- //
- // @XxlJob("saveWindProjectjs")
- // public void saveWindProjectjs() {
- //
- //
- // XxlJobHelper.log("底码电量计算执行开始!........");
- // try {
- // analysisNewService.saveWindProject();
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("底码电量计算执行开始!........");
- // }
- //
- // @XxlJob("irradiationjs")
- // public void irradiation() {
- //
- //
- // XxlJobHelper.log("日照强度替换计算执行开始!........");
- // try {
- // irradiationinputService.getcockpit();
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
- // XxlJobHelper.log("日照强度替换计算执行开始!........");
- // }
- }
|