ProEconEqOriginalService.java 83 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890
  1. package com.gyee.generation.service;//package com.gyee.generation.service;
  2. import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
  3. import com.gyee.common.model.StringUtils;
  4. import com.gyee.generation.init.CacheContext;
  5. import com.gyee.generation.model.auto.*;
  6. import com.gyee.generation.service.auto.*;
  7. import com.gyee.generation.util.DateUtils;
  8. import com.gyee.generation.util.realtimesource.IEdosUtil;
  9. import org.springframework.stereotype.Service;
  10. import javax.annotation.Resource;
  11. import java.math.BigDecimal;
  12. import java.math.RoundingMode;
  13. import java.util.ArrayList;
  14. import java.util.Calendar;
  15. import java.util.Date;
  16. import java.util.List;
  17. import java.util.stream.Collectors;
  18. @Service
  19. public class ProEconEqOriginalService {
  20. // private static final Logger logger = LoggerFactory.getLogger(EquipmentInfo1Service.class);
  21. @Resource
  22. private IEdosUtil edosUtil;
  23. @Resource
  24. private IProEconEquipmentInfoDay1Service proEconEquipmentInfoDay1Service;
  25. @Resource
  26. private IProEconEquipmentInfoDay2Service proEconEquipmentInfoDay2Service;
  27. @Resource
  28. private IProEconEquipmentInfoDay3Service proEconEquipmentInfoDay3Service;
  29. @Resource
  30. private IProEconEquipmentInfoDay4Service proEconEquipmentInfoDay4Service;
  31. // @Resource
  32. // private IProEconStaOriginalDayService proEconStaOriginalDayService;
  33. // @Resource
  34. // private IProEconStaOriginalMonthService proEconStaOriginalMonthService;
  35. // @Resource
  36. // private IProEconStaOriginalYearService proEconStaOriginalYearService;
  37. // @Resource
  38. // private IProEconStaTargetService proEconStaTargetService;
  39. // @Resource
  40. // private IProEconStaOriginalIndexService proEconStaOriginalIndexService;
  41. @Resource
  42. private IProEconEqOriginalDayService proEconEqOriginalDayService;
  43. @Resource
  44. private IProEconEqOriginalMonthService proEconEqOriginalMonthService;
  45. @Resource
  46. private IProEconEqOriginalYearService proEconEqOriginalYearService;
  47. @Resource
  48. private IProEconEqTargetService proEconEqTargetService;
  49. @Resource
  50. private IProEconEqOriginalIndexService proEconEqOriginalIndexService;
  51. @Resource
  52. private IProEconInputOrOutputSpeedService proEconInputOrOutputSpeedService;
  53. @Resource
  54. private IProEconShutdownEventService proEconShutdownEventService;
  55. /**
  56. * 计算设备日信息
  57. */
  58. public void calEquipmentInfoDay(Date recordDate) throws Exception {
  59. Calendar c = Calendar.getInstance();
  60. c.setTime(recordDate);
  61. Date end = c.getTime();
  62. Date begin = DateUtils.truncate(c.getTime());
  63. QueryWrapper<ProEconEqOriginalDay> queryWrapper = new QueryWrapper<>();
  64. queryWrapper.eq("record_date", recordDate);
  65. proEconEqOriginalDayService.remove(queryWrapper);
  66. QueryWrapper<ProEconEqOriginalMonth> queryWrappermonth = new QueryWrapper<>();
  67. queryWrappermonth.eq("record_date", recordDate);
  68. proEconEqOriginalMonthService.remove(queryWrappermonth);
  69. QueryWrapper<ProEconEqOriginalYear> queryWrapperyear = new QueryWrapper<>();
  70. queryWrapperyear.eq("record_date", recordDate);
  71. proEconEqOriginalYearService.remove(queryWrapperyear);
  72. // QueryWrapper<ProEconEqOriginalIndex> queryWrapper0 = new QueryWrapper<>();
  73. // queryWrapper0.eq("record_date", recordDate);
  74. //
  75. //
  76. // proEconEqOriginalIndexService.remove(queryWrapper0);
  77. List<ProEconEqTarget> targetList = proEconEqTargetService.list();
  78. List<ProEconEqOriginalDay> dayls = new ArrayList<>();
  79. List<ProEconEqOriginalMonth> monthls = new ArrayList<>();
  80. List<ProEconEqOriginalYear> yearls = new ArrayList<>();
  81. for (ProBasicEquipment wt : CacheContext.wtls) {
  82. ProEconEqOriginalDay pewp = new ProEconEqOriginalDay();
  83. ProEconEqOriginalMonth pewpmonth = new ProEconEqOriginalMonth();
  84. ProEconEqOriginalYear pewpyear = new ProEconEqOriginalYear();
  85. initial(pewp);
  86. initial(pewpmonth);
  87. initial(pewpyear);
  88. pewp.setTypes(wt.getStatus());
  89. pewp.setWindturbineName(wt.getName());
  90. pewp.setRecordDate(DateUtils.truncate(recordDate));
  91. pewp.setWindturbineId(wt.getId());
  92. pewp.setWindpowerstationId(wt.getWindpowerstationId());
  93. pewp.setProjectId(wt.getProjectId());
  94. pewp.setLineId(wt.getLineId());
  95. int month = c.get(Calendar.MONTH) + 1;
  96. int year = c.get(Calendar.YEAR);
  97. pewpmonth.setYear(year);
  98. pewpmonth.setMonth(month);
  99. pewpmonth.setTypes(wt.getStatus());
  100. pewpmonth.setWindturbineName(wt.getName());
  101. pewpmonth.setRecordDate(DateUtils.truncate(recordDate));
  102. pewpmonth.setWindturbineId(wt.getId());
  103. pewpmonth.setWindpowerstationId(wt.getWindpowerstationId());
  104. pewpmonth.setProjectId(wt.getProjectId());
  105. pewpmonth.setLineId(wt.getLineId());
  106. pewpyear.setYear(year);
  107. pewpyear.setTypes(wt.getStatus());
  108. pewpyear.setWindturbineName(wt.getName());
  109. pewpyear.setRecordDate(DateUtils.truncate(recordDate));
  110. pewpyear.setWindturbineId(wt.getId());
  111. pewpyear.setWindpowerstationId(wt.getWindpowerstationId());
  112. pewpyear.setProjectId(wt.getProjectId());
  113. pewpyear.setLineId(wt.getLineId());
  114. List<ProEconEquipmentInfoDay1> pepid1ls = new ArrayList<>();
  115. List<ProEconEquipmentInfoDay2> pepid2ls = new ArrayList<>();
  116. List<ProEconEquipmentInfoDay3> pepid3ls = new ArrayList<>();
  117. List<ProEconEquipmentInfoDay4> pepid4ls = new ArrayList<>();
  118. List<ProEconInputOrOutputSpeed> pepid5ls = new ArrayList<>();
  119. List<ProEconShutdownEvent> pepid6ls = new ArrayList<>();
  120. Calendar cl = Calendar.getInstance();
  121. cl.setTime(DateUtils.truncate(recordDate));
  122. QueryWrapper<ProEconEquipmentInfoDay1> queryWrapper1 = new QueryWrapper<>();
  123. queryWrapper1.eq("record_date", cl.getTime())
  124. .eq("windturbine_Id", wt.getId());
  125. pepid1ls = proEconEquipmentInfoDay1Service.list(queryWrapper1);
  126. QueryWrapper<ProEconEquipmentInfoDay2> queryWrapper2 = new QueryWrapper<>();
  127. queryWrapper2.eq("record_date", cl.getTime())
  128. .eq("windturbine_Id", wt.getId());
  129. pepid2ls = proEconEquipmentInfoDay2Service.list(queryWrapper2);
  130. QueryWrapper<ProEconEquipmentInfoDay3> queryWrapper3 = new QueryWrapper<>();
  131. queryWrapper3.eq("record_date", cl.getTime())
  132. .eq("windturbine_Id", wt.getId());
  133. pepid3ls = proEconEquipmentInfoDay3Service.list(queryWrapper3);
  134. QueryWrapper<ProEconEquipmentInfoDay4> queryWrapper4 = new QueryWrapper<>();
  135. queryWrapper4.eq("record_date", cl.getTime())
  136. .eq("windturbine_Id", wt.getId());
  137. pepid4ls = proEconEquipmentInfoDay4Service.list(queryWrapper4);
  138. Calendar cal = Calendar.getInstance();
  139. cal.setTime(DateUtils.truncate(recordDate));
  140. Date beginTime = cal.getTime();
  141. cal.add(Calendar.DAY_OF_MONTH, 1);
  142. Date endTime = cal.getTime();
  143. QueryWrapper<ProEconInputOrOutputSpeed> queryWrapper5 = new QueryWrapper<>();
  144. queryWrapper5.ge("record_date", beginTime).le("record_date", endTime)
  145. .eq("windturbine_Id", wt.getId());
  146. pepid5ls = proEconInputOrOutputSpeedService.list(queryWrapper5);
  147. QueryWrapper<ProEconShutdownEvent> queryWrapper6 = new QueryWrapper<>();
  148. queryWrapper6.ge("stop_Time", beginTime).le("stop_Time", endTime)
  149. .isNotNull("start_Time")
  150. .eq("windturbine_Id", wt.getId());
  151. pepid6ls = proEconShutdownEventService.list(queryWrapper6);
  152. calDay(wt, pewp, pepid1ls, pepid2ls, pepid3ls, pepid4ls, pepid5ls, pepid6ls);
  153. /***********************************************************************************************************/
  154. cal = Calendar.getInstance();
  155. cal.setTime(DateUtils.truncate(recordDate));
  156. cal.set(Calendar.DAY_OF_MONTH, 1);
  157. beginTime = cal.getTime();
  158. cal.setTime(DateUtils.truncate(recordDate));
  159. cal.add(Calendar.DAY_OF_MONTH, 1);
  160. endTime = cal.getTime();
  161. queryWrapper5 = new QueryWrapper<>();
  162. queryWrapper5.ge("record_date", beginTime).le("record_date", endTime)
  163. .eq("windturbine_Id", wt.getId());
  164. pepid5ls = proEconInputOrOutputSpeedService.list(queryWrapper5);
  165. queryWrapper6 = new QueryWrapper<>();
  166. queryWrapper6.ge("stop_Time", beginTime).le("stop_Time", endTime)
  167. .isNotNull("start_Time")
  168. .eq("windturbine_Id", wt.getId());
  169. pepid6ls = proEconShutdownEventService.list(queryWrapper6);
  170. calMonth(wt, pewpmonth, pepid1ls, pepid2ls, pepid3ls, pepid4ls, pepid5ls, pepid6ls);
  171. /***********************************************************************************************************/
  172. cal = Calendar.getInstance();
  173. cal.setTime(DateUtils.truncate(recordDate));
  174. cal.set(Calendar.DAY_OF_YEAR, 1);
  175. beginTime = cal.getTime();
  176. cal.setTime(DateUtils.truncate(recordDate));
  177. cal.add(Calendar.DAY_OF_MONTH, 1);
  178. endTime = cal.getTime();
  179. queryWrapper5 = new QueryWrapper<>();
  180. queryWrapper5.ge("record_date", beginTime).le("record_date", endTime)
  181. .eq("windturbine_Id", wt.getId());
  182. pepid5ls = proEconInputOrOutputSpeedService.list(queryWrapper5);
  183. queryWrapper6 = new QueryWrapper<>();
  184. queryWrapper6.ge("stop_Time", beginTime).le("stop_Time", endTime)
  185. .isNotNull("start_Time")
  186. .eq("windturbine_Id", wt.getId());
  187. pepid6ls = proEconShutdownEventService.list(queryWrapper6);
  188. calYear(wt, pewpyear, pepid1ls, pepid2ls, pepid3ls, pepid4ls, pepid5ls, pepid6ls);
  189. // List<ProEconEqOriginalIndex> indexls = new ArrayList<>();
  190. //
  191. // if (!targetList.isEmpty()) {
  192. //
  193. // Field[] fields = pewp.getClass().getDeclaredFields();
  194. // HashMap<String, String> daymap = new HashMap<>();
  195. // for (Field field : fields) {
  196. // field.setAccessible(true);
  197. // try {
  198. // // 把对象的属性做k,值做v
  199. // // 当然中间还可做其他的业务操作,比如跳过某些属性什么的
  200. // String name = field.getName();
  201. //
  202. //
  203. // if(null !=field.get(pewp))
  204. // {
  205. // String s = String.valueOf(field.get(pewp));
  206. // daymap.put(name, s);
  207. // }
  208. // } catch (Exception e) {
  209. // e.printStackTrace();
  210. // }
  211. // }
  212. //
  213. // fields = pewpmonth.getClass().getDeclaredFields();
  214. // HashMap<String, String> monthmap = new HashMap<>();
  215. // for (Field field : fields) {
  216. // field.setAccessible(true);
  217. // try {
  218. // // 把对象的属性做k,值做v
  219. // // 当然中间还可做其他的业务操作,比如跳过某些属性什么的
  220. // String name = field.getName();
  221. //
  222. // if(null !=field.get(pewpmonth))
  223. // {
  224. // String s = String.valueOf(field.get(pewpmonth));
  225. // monthmap.put(name, s);
  226. // }
  227. // } catch (Exception e) {
  228. // e.printStackTrace();
  229. // }
  230. // }
  231. //
  232. // fields = pewpyear.getClass().getDeclaredFields();
  233. // HashMap<String, String> yearmap = new HashMap<>();
  234. // for (Field field : fields) {
  235. // field.setAccessible(true);
  236. // try {
  237. // // 把对象的属性做k,值做v
  238. // // 当然中间还可做其他的业务操作,比如跳过某些属性什么的
  239. // String name = field.getName();
  240. // if(null !=field.get(pewpyear))
  241. // {
  242. // String s = field.get(pewpyear).toString();
  243. // yearmap.put(name, s);
  244. // }
  245. //
  246. //
  247. // } catch (Exception e) {
  248. // e.printStackTrace();
  249. // }
  250. // }
  251. //
  252. //
  253. // for (ProEconEqTarget tar : targetList) {
  254. //
  255. // ProEconEqOriginalIndex index = new ProEconEqOriginalIndex();
  256. // index.setTargetid(tar.getId());
  257. // index.setTargetname(tar.getTargetname());
  258. // index.setTargettype(tar.getTargettype());
  259. // index.setWindturbineName(wt.getName());
  260. // index.setRecordDate(DateUtils.truncate(recordDate));
  261. // index.setWindturbineId(wt.getId());
  262. // if (tar.getTablename().equals("pro_econ_eq_original_day")) {
  263. // if (daymap.containsKey(tar.getTablefiled())) {
  264. // String value = daymap.get(tar.getTablefiled());
  265. // index.setTargetvalue(Double.valueOf(value));
  266. // index.setTargetvaluemod(Double.valueOf(value));
  267. // }
  268. // } else if (tar.getTablename().equals("pro_econ_eq_original_month")) {
  269. // if (monthmap.containsKey(tar.getTablefiled())) {
  270. // String value = monthmap.get(tar.getTablefiled());
  271. // index.setTargetvalue(Double.valueOf(value));
  272. // index.setTargetvaluemod(Double.valueOf(value));
  273. // }
  274. // } else if (tar.getTablename().equals("pro_econ_eq_original_year")) {
  275. // if (yearmap.containsKey(tar.getTablefiled())) {
  276. // String value = yearmap.get(tar.getTablefiled());
  277. // index.setTargetvalue(Double.valueOf(value));
  278. // index.setTargetvaluemod(Double.valueOf(value));
  279. // }
  280. // }
  281. // indexls.add(index);
  282. // }
  283. //
  284. // proEconEqOriginalIndexService.saveBatch(indexls);
  285. // }
  286. dayls.add(pewp);
  287. monthls.add(pewpmonth);
  288. yearls.add(pewpyear);
  289. }
  290. proEconEqOriginalDayService.saveBatch(dayls);
  291. proEconEqOriginalMonthService.saveBatch(monthls);
  292. proEconEqOriginalYearService.saveBatch(yearls);
  293. }
  294. private static void calDay(ProBasicEquipment wt, ProEconEqOriginalDay pewp, List<ProEconEquipmentInfoDay1> pepid1ls, List<ProEconEquipmentInfoDay2> pepid2ls, List<ProEconEquipmentInfoDay3> pepid3ls, List<ProEconEquipmentInfoDay4> pepid4ls, List<ProEconInputOrOutputSpeed> pepid5ls, List<ProEconShutdownEvent> pepid6ls) {
  295. if (!pepid1ls.isEmpty()) {
  296. ProEconEquipmentInfoDay1 day1 = pepid1ls.get(0);
  297. //日发电量
  298. pewp.setTarget01(day1.getRfdl());
  299. //日试运行发电量
  300. pewp.setTarget02(0.0);
  301. //日最大风速
  302. pewp.setTarget03(day1.getRzdfs());
  303. //日最小风速
  304. pewp.setTarget04(day1.getRzxfs());
  305. //日最大功率
  306. pewp.setTarget05(day1.getRzdgl());
  307. //日最小功率
  308. pewp.setTarget06(day1.getRzxgl());
  309. //日平均功率
  310. pewp.setTarget07(day1.getRpjgl());
  311. //日平均风速
  312. pewp.setTarget08(day1.getRpjfs());
  313. //日设计理论发电量(千瓦时)
  314. pewp.setTarget09(day1.getRfdl() * 0.95);
  315. //日实际理论发电量(千瓦时)
  316. pewp.setTarget10(day1.getRllfdl());
  317. //日智慧风电理论发电量(千瓦时
  318. pewp.setTarget11(day1.getRllfdl() * 0.93);
  319. //日风能利用率
  320. pewp.setTarget12(0.0);
  321. //日损失电量(千瓦时)
  322. double total = day1.getRgzssdl() + day1.getRcnslgzssdl() + day1.getRjxssdl() + day1.getRcnsljxssdl() + day1.getRdjssdl() + day1.getRqxjclssdl() +
  323. day1.getRsdtjssdl() + day1.getRxnssdl() + day1.getRxdtjssdl() + day1.getRxdjclssdl() + day1.getRcwsldwssdl() + day1.getRcwsltqssdl();
  324. pewp.setTarget13(StringUtils.round(total, 2));
  325. //日故障损失电量 target16
  326. pewp.setTarget16(StringUtils.round(day1.getRgzssdl() + day1.getRcnslgzssdl(), 2));
  327. //日故障损失率 target17
  328. if (day1.getRllfdl() != 0) {
  329. double result = new BigDecimal(day1.getRgzssdl() + day1.getRcnslgzssdl()).divide(new BigDecimal(day1.getRllfdl()), 2, RoundingMode.HALF_EVEN).doubleValue();
  330. pewp.setTarget17(result);
  331. }
  332. //日检修损失电量 target20
  333. pewp.setTarget20(StringUtils.round(day1.getRjxssdl() + day1.getRcnsljxssdl(), 2));
  334. //日检修损失率 target21
  335. if (day1.getRllfdl() != 0) {
  336. double result = new BigDecimal(day1.getRjxssdl() + day1.getRcnsljxssdl()).divide(new BigDecimal(day1.getRllfdl()), 2, RoundingMode.HALF_EVEN).doubleValue();
  337. pewp.setTarget21(result);
  338. }
  339. //日性能损失电量 target24
  340. pewp.setTarget24(StringUtils.round(day1.getRxnssdl() + day1.getRsdtjssdl(), 2));
  341. //日性能损失率 target25
  342. if (day1.getRllfdl() != 0) {
  343. double result = new BigDecimal(day1.getRxnssdl() + day1.getRsdtjssdl()).divide(new BigDecimal(day1.getRllfdl()), 2, RoundingMode.HALF_EVEN).doubleValue();
  344. pewp.setTarget25(result);
  345. }
  346. //日限电损失电量 target28
  347. pewp.setTarget28(StringUtils.round(day1.getRxdjclssdl() + day1.getRxdtjssdl(), 2));
  348. //日限电损失率 target29
  349. if (day1.getRllfdl() != 0) {
  350. double result = new BigDecimal(day1.getRxdjclssdl() + day1.getRxdtjssdl()).divide(new BigDecimal(day1.getRllfdl()), 2, RoundingMode.HALF_EVEN).doubleValue();
  351. pewp.setTarget29(result);
  352. }
  353. //日弃风率 target30
  354. if (day1.getRfdl() != 0) {
  355. double result = new BigDecimal(day1.getRxdjclssdl() + day1.getRxdtjssdl()).divide(new BigDecimal(day1.getRfdl()), 2, RoundingMode.HALF_EVEN).doubleValue();
  356. pewp.setTarget30(result + pewp.getTarget29());
  357. }
  358. //日弃发比 target31
  359. if (day1.getRfdl() != 0) {
  360. double result = new BigDecimal(day1.getRxdjclssdl() + day1.getRxdtjssdl()).divide(new BigDecimal(day1.getRfdl()), 2, RoundingMode.HALF_EVEN).doubleValue();
  361. pewp.setTarget31(result);
  362. }
  363. //日受累损失电量 target34
  364. pewp.setTarget34(StringUtils.round(day1.getRcwsldwssdl() + day1.getRcwsltqssdl(), 2));
  365. //日受累损失率 target35
  366. if (day1.getRllfdl() != 0) {
  367. double result = new BigDecimal(day1.getRcwsldwssdl() + day1.getRcwsltqssdl()).divide(new BigDecimal(day1.getRllfdl()), 2, RoundingMode.HALF_EVEN).doubleValue();
  368. pewp.setTarget35(result);
  369. }
  370. }
  371. if (!pepid2ls.isEmpty()) {
  372. ProEconEquipmentInfoDay2 day2 = pepid2ls.get(0);
  373. //日故障损失时长target14
  374. pewp.setTarget14(StringUtils.round(day2.getRgzxsmx() + day2.getRcnslgzxsmx(), 2));
  375. //日检修损失时长(小时) target18
  376. pewp.setTarget18(StringUtils.round(day2.getRjxxsmx() + day2.getRcnsljxxsmx(), 2));
  377. //日性能损失时长(小时) target22
  378. pewp.setTarget22(StringUtils.round(day2.getRqxjclxsmx() + day2.getRsdtjxsmx(), 2));
  379. //日限电时长(小时) target26
  380. pewp.setTarget26(StringUtils.round(day2.getRxdjclxsmx() + day2.getRxdtjxsmx(), 2));
  381. //日受累损失时长(小时) target32
  382. pewp.setTarget32(StringUtils.round(day2.getRcwsldwxsmx() + day2.getRcwsltqxsmx(), 2));
  383. //日等效可利用系数 target54
  384. double result = new BigDecimal(24 - pewp.getTarget14() - pewp.getTarget18()).divide(new BigDecimal(24), 2, RoundingMode.HALF_EVEN).doubleValue();
  385. pewp.setTarget54(result);
  386. //日设备可利用率target55
  387. result = new BigDecimal(24 - pewp.getTarget14()).divide(new BigDecimal(24), 2, RoundingMode.HALF_EVEN).doubleValue();
  388. pewp.setTarget55(result);
  389. }
  390. if (!pepid3ls.isEmpty()) {
  391. ProEconEquipmentInfoDay3 day3 = pepid3ls.get(0);
  392. //日故障次数 target15
  393. pewp.setTarget15(StringUtils.round(day3.getRgzcsmx() + day3.getRcnslgzcsmx(), 2));
  394. //日检修次数 target19
  395. pewp.setTarget19(StringUtils.round(day3.getRjxcsmx() + day3.getRcnsljxcsmx(), 2));
  396. //日性能损失次数 target23
  397. pewp.setTarget23(StringUtils.round(day3.getRqxjclcsmx() + day3.getRsdtjcsmx(), 2));
  398. //日限电次数 target27
  399. pewp.setTarget27(StringUtils.round(day3.getRxdjclcsmx() + day3.getRxdtjcsmx(), 2));
  400. //日受累次数 target33
  401. pewp.setTarget33(StringUtils.round(day3.getRcwsldwcsmx() + day3.getRcwsltqcsmx(), 2));
  402. }
  403. //日统计小时target36
  404. pewp.setTarget36(24.0);
  405. if (!pepid4ls.isEmpty()) {
  406. ProEconEquipmentInfoDay4 day4 = pepid4ls.get(0);
  407. //日平均切入风速 target39
  408. pewp.setTarget39(day4.getRdfqrfs());
  409. //日平均切出风速 target40
  410. pewp.setTarget40(day4.getRxfqcfs());
  411. //日最大切出风速target41
  412. pewp.setTarget41(day4.getRdfqcfs());
  413. //日最小切入风速 target42
  414. pewp.setTarget42(day4.getRxfqcfs());
  415. //日额定功率 target43
  416. if (CacheContext.modelMap.containsKey(wt.getModelId())) {
  417. ProEconEquipmentmodel model = CacheContext.modelMap.get(wt.getModelId());
  418. pewp.setTarget43(model.getPowerProduction());
  419. }
  420. //日额定风速 target44
  421. pewp.setTarget44(day4.getRedfs());
  422. //日设备利用小时 target45
  423. if (!pepid1ls.isEmpty() && pewp.getTarget43() != 0) {
  424. ProEconEquipmentInfoDay1 day1 = pepid1ls.get(0);
  425. double result = new BigDecimal(day1.getRfdl()).divide(new BigDecimal(pewp.getTarget43()), 2, RoundingMode.HALF_EVEN).doubleValue();
  426. pewp.setTarget45(result);
  427. result = new BigDecimal(day1.getRpjgl()).divide(new BigDecimal(pewp.getTarget43()), 2, RoundingMode.HALF_EVEN).doubleValue();
  428. //日负荷率target56
  429. pewp.setTarget56(result);
  430. }
  431. //日功率一致性系数target57
  432. pewp.setTarget57(day4.getRglyzxxs());
  433. //日拟合优度target58
  434. pewp.setTarget58(day4.getRnhyd());
  435. //日曲线偏差率 target59
  436. pewp.setTarget59(day4.getRqxpcbbg());
  437. //日故障消缺及时率 target60
  438. pewp.setTarget60(day4.getRgzxqjsl());
  439. //日状态转换及时率 target61
  440. pewp.setTarget61(day4.getRztzhjsl());
  441. //日复位及时率target62
  442. pewp.setTarget62(day4.getRfwjsl());
  443. //日MTBF target63
  444. pewp.setTarget63(day4.getRmtbf());
  445. //日MTTR target64
  446. pewp.setTarget64(day4.getRmttr());
  447. //日MTTF target65
  448. pewp.setTarget65(day4.getRmttr());
  449. }
  450. if (!pepid5ls.isEmpty()) {
  451. List<ProEconInputOrOutputSpeed> list = pepid5ls.stream().filter(i -> i.getInputOrOutput() == 1).collect(Collectors.toList());
  452. //日切入次数target37
  453. pewp.setTarget37(Double.valueOf(list.size()));
  454. list = pepid5ls.stream().filter(i -> i.getInputOrOutput() == 0).collect(Collectors.toList());
  455. //日切出次数target38
  456. pewp.setTarget38(Double.valueOf(list.size()));
  457. }
  458. if (!pepid6ls.isEmpty()) {
  459. int time30m = 0;
  460. int time6h = 0;
  461. int time12h = 0;
  462. int time24h = 0;
  463. int time72h = 0;
  464. int time168h = 0;
  465. int time = 0;
  466. for (ProEconShutdownEvent vo : pepid6ls) {
  467. if (vo.getStopHours() < 0.5) {
  468. time30m++;
  469. }
  470. if (vo.getStopHours() < 6) {
  471. time6h++;
  472. }
  473. if (vo.getStopHours() < 12) {
  474. time12h++;
  475. }
  476. if (vo.getStopHours() < 24) {
  477. time24h++;
  478. }
  479. if (vo.getStopHours() < 72) {
  480. time72h++;
  481. }
  482. if (vo.getStopHours() < 168) {
  483. time168h++;
  484. }
  485. if (vo.getStopHours() > 168) {
  486. time++;
  487. }
  488. }
  489. //日30分钟内故障消除次数 target46
  490. pewp.setTarget46(Double.valueOf(time30m));
  491. //日6小时内故障消除次数 target47
  492. pewp.setTarget47(Double.valueOf(time6h));
  493. //日12小时内故障消除次数 target48
  494. pewp.setTarget48(Double.valueOf(time12h));
  495. //日24小时内故障消除次数 target49
  496. pewp.setTarget49(Double.valueOf(time24h));
  497. //日72小时内故障消除次数 target50
  498. pewp.setTarget50(Double.valueOf(time72h));
  499. //日168小时内故障消除次数 target51
  500. pewp.setTarget51(Double.valueOf(time168h));
  501. //日168小时外故障消除次数 target52
  502. pewp.setTarget52(Double.valueOf(time));
  503. //日故障消缺总次数 target53
  504. pewp.setTarget53(Double.valueOf(time));
  505. }
  506. }
  507. private static void calMonth(ProBasicEquipment wt, ProEconEqOriginalMonth pewp, List<ProEconEquipmentInfoDay1> pepid1ls, List<ProEconEquipmentInfoDay2> pepid2ls, List<ProEconEquipmentInfoDay3> pepid3ls, List<ProEconEquipmentInfoDay4> pepid4ls, List<ProEconInputOrOutputSpeed> pepid5ls, List<ProEconShutdownEvent> pepid6ls) {
  508. if (!pepid1ls.isEmpty()) {
  509. ProEconEquipmentInfoDay1 day1 = pepid1ls.get(0);
  510. //月发电量
  511. pewp.setTarget01(day1.getYfdl());
  512. //月试运行发电量
  513. pewp.setTarget02(0.0);
  514. //月最大风速
  515. pewp.setTarget03(day1.getYzdfs());
  516. //月最小风速
  517. pewp.setTarget04(day1.getYzxfs());
  518. //月最大功率
  519. pewp.setTarget05(day1.getYzdgl());
  520. //月最小功率
  521. pewp.setTarget06(day1.getYzxgl());
  522. //月平均功率
  523. pewp.setTarget07(day1.getYpjgl());
  524. //月平均风速
  525. pewp.setTarget08(day1.getYpjfs());
  526. //月设计理论发电量(千瓦时)
  527. pewp.setTarget09(day1.getYfdl() * 0.95);
  528. //月实际理论发电量(千瓦时)
  529. pewp.setTarget10(day1.getYllfdl());
  530. //月智慧风电理论发电量(千瓦时
  531. pewp.setTarget11(day1.getYllfdl() * 0.93);
  532. //月风能利用率
  533. pewp.setTarget12(0.0);
  534. //月损失电量(千瓦时)
  535. double total = day1.getYgzssdl() + day1.getYcnslgzssdl() + day1.getYjxssdl() + day1.getYcnsljxssdl() + day1.getYdjssdl() + day1.getYqxjclssdl() +
  536. day1.getYsdtjssdl() + day1.getYxnssdl() + day1.getYxdtjssdl() + day1.getYxdjclssdl() + day1.getYcwsldwssdl() + day1.getYcwsltqssdl();
  537. pewp.setTarget13(StringUtils.round(total, 2));
  538. //月故障损失电量 target16
  539. pewp.setTarget16(StringUtils.round(day1.getYgzssdl() + day1.getYcnslgzssdl(), 2));
  540. //月故障损失率 target17
  541. if (day1.getYllfdl() != 0) {
  542. double result = new BigDecimal(day1.getYgzssdl() + day1.getYcnslgzssdl()).divide(new BigDecimal(day1.getYllfdl()), 2, RoundingMode.HALF_EVEN).doubleValue();
  543. pewp.setTarget17(result);
  544. }
  545. //月检修损失电量 target20
  546. pewp.setTarget20(StringUtils.round(day1.getYjxssdl() + day1.getYcnsljxssdl(), 2));
  547. //月检修损失率 target21
  548. if (day1.getYllfdl() != 0) {
  549. double result = new BigDecimal(day1.getYjxssdl() + day1.getYcnsljxssdl()).divide(new BigDecimal(day1.getYllfdl()), 2, RoundingMode.HALF_EVEN).doubleValue();
  550. pewp.setTarget21(result);
  551. }
  552. //月性能损失电量 target24
  553. pewp.setTarget24(StringUtils.round(day1.getYxnssdl() + day1.getYsdtjssdl(), 2));
  554. //月性能损失率 target25
  555. if (day1.getYllfdl() != 0) {
  556. double result = new BigDecimal(day1.getYxnssdl() + day1.getYsdtjssdl()).divide(new BigDecimal(day1.getYllfdl()), 2, RoundingMode.HALF_EVEN).doubleValue();
  557. pewp.setTarget25(result);
  558. }
  559. //月限电损失电量 target28
  560. pewp.setTarget28(StringUtils.round(day1.getYxdjclssdl() + day1.getYxdtjssdl(), 2));
  561. //月限电损失率 target29
  562. if (day1.getYllfdl() != 0) {
  563. double result = new BigDecimal(day1.getYxdjclssdl() + day1.getYxdtjssdl()).divide(new BigDecimal(day1.getYllfdl()), 2, RoundingMode.HALF_EVEN).doubleValue();
  564. pewp.setTarget29(result);
  565. }
  566. //月弃风率 target30
  567. if (day1.getYfdl() != 0) {
  568. double result = new BigDecimal(day1.getYxdjclssdl() + day1.getYxdtjssdl()).divide(new BigDecimal(day1.getYfdl()), 2, RoundingMode.HALF_EVEN).doubleValue();
  569. pewp.setTarget30(result + pewp.getTarget29());
  570. }
  571. //月弃发比 target31
  572. if (day1.getYfdl() != 0) {
  573. double result = new BigDecimal(day1.getYxdjclssdl() + day1.getYxdtjssdl()).divide(new BigDecimal(day1.getYfdl()), 2, RoundingMode.HALF_EVEN).doubleValue();
  574. pewp.setTarget31(result);
  575. }
  576. //月受累损失电量 target34
  577. pewp.setTarget34(StringUtils.round(day1.getYcwsldwssdl() + day1.getYcwsltqssdl(), 2));
  578. //月受累损失率 target35
  579. if (day1.getYllfdl() != 0) {
  580. double result = new BigDecimal(day1.getYcwsldwssdl() + day1.getYcwsltqssdl()).divide(new BigDecimal(day1.getYllfdl()), 2, RoundingMode.HALF_EVEN).doubleValue();
  581. pewp.setTarget35(result);
  582. }
  583. }
  584. if (!pepid2ls.isEmpty()) {
  585. ProEconEquipmentInfoDay2 day2 = pepid2ls.get(0);
  586. //月故障损失时长target14
  587. pewp.setTarget14(StringUtils.round(day2.getYgzxsmx() + day2.getYcnslgzxsmx(), 2));
  588. //月检修损失时长(小时) target18
  589. pewp.setTarget18(StringUtils.round(day2.getYjxxsmx() + day2.getYcnsljxxsmx(), 2));
  590. //月性能损失时长(小时) target22
  591. pewp.setTarget22(StringUtils.round(day2.getYqxjclxsmx() + day2.getYsdtjxsmx(), 2));
  592. //月限电时长(小时) target26
  593. pewp.setTarget26(StringUtils.round(day2.getYxdjclxsmx() + day2.getYxdtjxsmx(), 2));
  594. //月受累损失时长(小时) target32
  595. pewp.setTarget32(StringUtils.round(day2.getYcwsldwxsmx() + day2.getYcwsltqxsmx(), 2));
  596. //月等效可利用系数 target54
  597. double result = new BigDecimal(24 - pewp.getTarget14() - pewp.getTarget18()).divide(new BigDecimal(24), 2, RoundingMode.HALF_EVEN).doubleValue();
  598. pewp.setTarget54(result);
  599. //月设备可利用率target55
  600. result = new BigDecimal(24 - pewp.getTarget14()).divide(new BigDecimal(24), 2, RoundingMode.HALF_EVEN).doubleValue();
  601. pewp.setTarget55(result);
  602. //日历小时
  603. pewp.setTarget66(24.0);
  604. }
  605. if (!pepid3ls.isEmpty()) {
  606. ProEconEquipmentInfoDay3 day3 = pepid3ls.get(0);
  607. //月故障次数 target15
  608. pewp.setTarget15(StringUtils.round(day3.getYgzcsmx() + day3.getYcnslgzcsmx(), 2));
  609. //月检修次数 target19
  610. pewp.setTarget19(StringUtils.round(day3.getYjxcsmx() + day3.getYcnsljxcsmx(), 2));
  611. //月性能损失次数 target23
  612. pewp.setTarget23(StringUtils.round(day3.getYqxjclcsmx() + day3.getYsdtjcsmx(), 2));
  613. //月限电次数 target27
  614. pewp.setTarget27(StringUtils.round(day3.getYxdjclcsmx() + day3.getYxdtjcsmx(), 2));
  615. //月受累次数 target33
  616. pewp.setTarget33(StringUtils.round(day3.getYcwsldwcsmx() + day3.getYcwsltqcsmx(), 2));
  617. }
  618. Calendar c=Calendar.getInstance();
  619. c.setTime(pewp.getRecordDate());
  620. int day=c.get(Calendar.DAY_OF_MONTH);
  621. //月统计小时target36
  622. pewp.setTarget36(day*24.0);
  623. if (!pepid4ls.isEmpty()) {
  624. ProEconEquipmentInfoDay4 day4 = pepid4ls.get(0);
  625. //月平均切入风速 target39
  626. pewp.setTarget39(day4.getYdfqrfs());
  627. //月平均切出风速 target40
  628. pewp.setTarget40(day4.getYxfqcfs());
  629. //月最大切出风速target41
  630. pewp.setTarget41(day4.getYdfqcfs());
  631. //月最小切入风速 target42
  632. pewp.setTarget42(day4.getYxfqcfs());
  633. //月额定功率 target43
  634. if (CacheContext.modelMap.containsKey(wt.getModelId())) {
  635. ProEconEquipmentmodel model = CacheContext.modelMap.get(wt.getModelId());
  636. pewp.setTarget43(model.getPowerProduction());
  637. }
  638. //月额定风速 target44
  639. pewp.setTarget44(day4.getYedfs());
  640. //月设备利用小时 target45
  641. if (!pepid1ls.isEmpty() && pewp.getTarget43() != 0) {
  642. ProEconEquipmentInfoDay1 day1 = pepid1ls.get(0);
  643. double result = new BigDecimal(day1.getYfdl()).divide(new BigDecimal(pewp.getTarget43()), 2, RoundingMode.HALF_EVEN).doubleValue();
  644. pewp.setTarget45(result);
  645. result = new BigDecimal(day1.getYpjgl()).divide(new BigDecimal(pewp.getTarget43()), 2, RoundingMode.HALF_EVEN).doubleValue();
  646. //月负荷率target56
  647. pewp.setTarget56(result);
  648. }
  649. //月功率一致性系数target57
  650. pewp.setTarget57(day4.getYglyzxxs());
  651. //月拟合优度target58
  652. pewp.setTarget58(day4.getYnhyd());
  653. //月曲线偏差率 target59
  654. pewp.setTarget59(day4.getYqxpcbbg());
  655. //月故障消缺及时率 target60
  656. pewp.setTarget60(day4.getYgzxqjsl());
  657. //月状态转换及时率 target61
  658. pewp.setTarget61(day4.getYztzhjsl());
  659. //月复位及时率target62
  660. pewp.setTarget62(day4.getYfwjsl());
  661. //月MTBF target63
  662. pewp.setTarget63(day4.getYmtbf());
  663. //月MTTR target64
  664. pewp.setTarget64(day4.getYmttr());
  665. //月MTTF target65
  666. pewp.setTarget65(day4.getYmttr());
  667. }
  668. if (!pepid5ls.isEmpty()) {
  669. List<ProEconInputOrOutputSpeed> list = pepid5ls.stream().filter(i -> i.getInputOrOutput() == 1).collect(Collectors.toList());
  670. //月切入次数target37
  671. pewp.setTarget37(Double.valueOf(list.size()));
  672. list = pepid5ls.stream().filter(i -> i.getInputOrOutput() == 0).collect(Collectors.toList());
  673. //月切出次数target38
  674. pewp.setTarget38(Double.valueOf(list.size()));
  675. }
  676. if (!pepid6ls.isEmpty()) {
  677. int time30m = 0;
  678. int time6h = 0;
  679. int time12h = 0;
  680. int time24h = 0;
  681. int time72h = 0;
  682. int time168h = 0;
  683. int time = 0;
  684. for (ProEconShutdownEvent vo : pepid6ls) {
  685. if (vo.getStopHours() < 0.5) {
  686. time30m++;
  687. }
  688. if (vo.getStopHours() < 6) {
  689. time6h++;
  690. }
  691. if (vo.getStopHours() < 12) {
  692. time12h++;
  693. }
  694. if (vo.getStopHours() < 24) {
  695. time24h++;
  696. }
  697. if (vo.getStopHours() < 72) {
  698. time72h++;
  699. }
  700. if (vo.getStopHours() < 168) {
  701. time168h++;
  702. }
  703. if (vo.getStopHours() > 168) {
  704. time++;
  705. }
  706. }
  707. //月30分钟内故障消除次数 target46
  708. pewp.setTarget46(Double.valueOf(time30m));
  709. //月6小时内故障消除次数 target47
  710. pewp.setTarget47(Double.valueOf(time6h));
  711. //月12小时内故障消除次数 target48
  712. pewp.setTarget48(Double.valueOf(time12h));
  713. //月24小时内故障消除次数 target49
  714. pewp.setTarget49(Double.valueOf(time24h));
  715. //月72小时内故障消除次数 target50
  716. pewp.setTarget50(Double.valueOf(time72h));
  717. //月168小时内故障消除次数 target51
  718. pewp.setTarget51(Double.valueOf(time168h));
  719. //月168小时外故障消除次数 target52
  720. pewp.setTarget52(Double.valueOf(time));
  721. //月故障消缺总次数 target53
  722. pewp.setTarget53(Double.valueOf(time));
  723. }
  724. }
  725. private static void calYear(ProBasicEquipment wt, ProEconEqOriginalYear pewp, List<ProEconEquipmentInfoDay1> pepid1ls, List<ProEconEquipmentInfoDay2> pepid2ls, List<ProEconEquipmentInfoDay3> pepid3ls, List<ProEconEquipmentInfoDay4> pepid4ls, List<ProEconInputOrOutputSpeed> pepid5ls, List<ProEconShutdownEvent> pepid6ls) {
  726. if (!pepid1ls.isEmpty()) {
  727. ProEconEquipmentInfoDay1 day1 = pepid1ls.get(0);
  728. //年发电量
  729. pewp.setTarget01(day1.getNfdl());
  730. //年试运行发电量
  731. pewp.setTarget02(0.0);
  732. //年最大风速
  733. pewp.setTarget03(day1.getNzdfs());
  734. //年最小风速
  735. pewp.setTarget04(day1.getNzxfs());
  736. //年最大功率
  737. pewp.setTarget05(day1.getNzdgl());
  738. //年最小功率
  739. pewp.setTarget06(day1.getNzxgl());
  740. //年平均功率
  741. pewp.setTarget07(day1.getNpjgl());
  742. //年平均风速
  743. pewp.setTarget08(day1.getNpjfs());
  744. //年设计理论发电量(千瓦时)
  745. pewp.setTarget09(day1.getNfdl() * 0.95);
  746. //年实际理论发电量(千瓦时)
  747. pewp.setTarget10(day1.getNllfdl());
  748. //年智慧风电理论发电量(千瓦时
  749. pewp.setTarget11(day1.getNllfdl() * 0.93);
  750. //年风能利用率
  751. pewp.setTarget12(0.0);
  752. //年损失电量(千瓦时)
  753. double total = day1.getNgzssdl() + day1.getNcnslgzssdl() + day1.getNjxssdl() + day1.getNcnsljxssdl() + day1.getNdjssdl() + day1.getNqxjclssdl() +
  754. day1.getNsdtjssdl() + day1.getNxnssdl() + day1.getNxdtjssdl() + day1.getNxdjclssdl() + day1.getNcwsldwssdl() + day1.getNcwsltqssdl();
  755. pewp.setTarget13(StringUtils.round(total, 2));
  756. //年故障损失电量 target16
  757. pewp.setTarget16(StringUtils.round(day1.getNgzssdl() + day1.getNcnslgzssdl(), 2));
  758. //年故障损失率 target17
  759. if (day1.getNllfdl() != 0) {
  760. double result = new BigDecimal(day1.getNgzssdl() + day1.getNcnslgzssdl()).divide(new BigDecimal(day1.getNllfdl()), 2, RoundingMode.HALF_EVEN).doubleValue();
  761. pewp.setTarget17(result);
  762. }
  763. //年检修损失电量 target20
  764. pewp.setTarget20(StringUtils.round(day1.getNjxssdl() + day1.getNcnsljxssdl(), 2));
  765. //年检修损失率 target21
  766. if (day1.getNllfdl() != 0) {
  767. double result = new BigDecimal(day1.getNjxssdl() + day1.getNcnsljxssdl()).divide(new BigDecimal(day1.getNllfdl()), 2, RoundingMode.HALF_EVEN).doubleValue();
  768. pewp.setTarget21(result);
  769. }
  770. //年性能损失电量 target24
  771. pewp.setTarget24(StringUtils.round(day1.getNxnssdl() + day1.getNsdtjssdl(), 2));
  772. //年性能损失率 target25
  773. if (day1.getNllfdl() != 0) {
  774. double result = new BigDecimal(day1.getNxnssdl() + day1.getNsdtjssdl()).divide(new BigDecimal(day1.getNllfdl()), 2, RoundingMode.HALF_EVEN).doubleValue();
  775. pewp.setTarget25(result);
  776. }
  777. //年限电损失电量 target28
  778. pewp.setTarget28(StringUtils.round(day1.getNxdjclssdl() + day1.getNxdtjssdl(), 2));
  779. //年限电损失率 target29
  780. if (day1.getNllfdl() != 0) {
  781. double result = new BigDecimal(day1.getNxdjclssdl() + day1.getNxdtjssdl()).divide(new BigDecimal(day1.getNllfdl()), 2, RoundingMode.HALF_EVEN).doubleValue();
  782. pewp.setTarget29(result);
  783. }
  784. //年弃风率 target30
  785. if (day1.getNfdl() != 0) {
  786. double result = new BigDecimal(day1.getNxdjclssdl() + day1.getNxdtjssdl()).divide(new BigDecimal(day1.getNfdl()), 2, RoundingMode.HALF_EVEN).doubleValue();
  787. pewp.setTarget30(result + pewp.getTarget29());
  788. }
  789. //年弃发比 target31
  790. if (day1.getNfdl() != 0) {
  791. double result = new BigDecimal(day1.getNxdjclssdl() + day1.getNxdtjssdl()).divide(new BigDecimal(day1.getNfdl()), 2, RoundingMode.HALF_EVEN).doubleValue();
  792. pewp.setTarget31(result);
  793. }
  794. //年受累损失电量 target34
  795. pewp.setTarget34(StringUtils.round(day1.getNcwsldwssdl() + day1.getNcwsltqssdl(), 2));
  796. //年受累损失率 target35
  797. if (day1.getNllfdl() != 0) {
  798. double result = new BigDecimal(day1.getNcwsldwssdl() + day1.getNcwsltqssdl()).divide(new BigDecimal(day1.getNllfdl()), 2, RoundingMode.HALF_EVEN).doubleValue();
  799. pewp.setTarget35(result);
  800. }
  801. }
  802. if (!pepid2ls.isEmpty()) {
  803. ProEconEquipmentInfoDay2 day2 = pepid2ls.get(0);
  804. //年故障损失时长target14
  805. pewp.setTarget14(StringUtils.round(day2.getNgzxsmx() + day2.getNcnslgzxsmx(), 2));
  806. //年检修损失时长(小时) target18
  807. pewp.setTarget18(StringUtils.round(day2.getNjxxsmx() + day2.getNcnsljxxsmx(), 2));
  808. //年性能损失时长(小时) target22
  809. pewp.setTarget22(StringUtils.round(day2.getNqxjclxsmx() + day2.getNsdtjxsmx(), 2));
  810. //年限电时长(小时) target26
  811. pewp.setTarget26(StringUtils.round(day2.getNxdjclxsmx() + day2.getNxdtjxsmx(), 2));
  812. //年受累损失时长(小时) target32
  813. pewp.setTarget32(StringUtils.round(day2.getNcwsldwxsmx() + day2.getNcwsltqxsmx(), 2));
  814. //年等效可利用系数 target54
  815. double result = new BigDecimal(24 - pewp.getTarget14() - pewp.getTarget18()).divide(new BigDecimal(24), 2, RoundingMode.HALF_EVEN).doubleValue();
  816. pewp.setTarget54(result);
  817. //年设备可利用率target55
  818. result = new BigDecimal(24 - pewp.getTarget14()).divide(new BigDecimal(24), 2, RoundingMode.HALF_EVEN).doubleValue();
  819. pewp.setTarget55(result);
  820. }
  821. if (!pepid3ls.isEmpty()) {
  822. ProEconEquipmentInfoDay3 day3 = pepid3ls.get(0);
  823. //年故障次数 target15
  824. pewp.setTarget15(StringUtils.round(day3.getNgzcsmx() + day3.getNcnslgzcsmx(), 2));
  825. //年检修次数 target19
  826. pewp.setTarget19(StringUtils.round(day3.getNjxcsmx() + day3.getNcnsljxcsmx(), 2));
  827. //年性能损失次数 target23
  828. pewp.setTarget23(StringUtils.round(day3.getNqxjclcsmx() + day3.getNsdtjcsmx(), 2));
  829. //年限电次数 target27
  830. pewp.setTarget27(StringUtils.round(day3.getNxdjclcsmx() + day3.getNxdtjcsmx(), 2));
  831. //年受累次数 target33
  832. pewp.setTarget33(StringUtils.round(day3.getNcwsldwcsmx() + day3.getNcwsltqcsmx(), 2));
  833. }
  834. //年统计小时target36
  835. Calendar c=Calendar.getInstance();
  836. c.setTime(pewp.getRecordDate());
  837. int day=c.get(Calendar.DAY_OF_YEAR);
  838. //月统计小时target36
  839. pewp.setTarget36(day*24.0);
  840. if (!pepid4ls.isEmpty()) {
  841. ProEconEquipmentInfoDay4 day4 = pepid4ls.get(0);
  842. //年平均切入风速 target39
  843. pewp.setTarget39(day4.getNdfqrfs());
  844. //年平均切出风速 target40
  845. pewp.setTarget40(day4.getNxfqcfs());
  846. //年最大切出风速target41
  847. pewp.setTarget41(day4.getNdfqcfs());
  848. //年最小切入风速 target42
  849. pewp.setTarget42(day4.getNxfqcfs());
  850. //年额定功率 target43
  851. if (CacheContext.modelMap.containsKey(wt.getModelId())) {
  852. ProEconEquipmentmodel model = CacheContext.modelMap.get(wt.getModelId());
  853. pewp.setTarget43(model.getPowerProduction());
  854. }
  855. //年额定风速 target44
  856. pewp.setTarget44(day4.getNedfs());
  857. //年设备利用小时 target45
  858. if (!pepid1ls.isEmpty() && pewp.getTarget43() != 0) {
  859. ProEconEquipmentInfoDay1 day1 = pepid1ls.get(0);
  860. double result = new BigDecimal(day1.getNfdl()).divide(new BigDecimal(pewp.getTarget43()), 2, RoundingMode.HALF_EVEN).doubleValue();
  861. pewp.setTarget45(result);
  862. result = new BigDecimal(day1.getNpjgl()).divide(new BigDecimal(pewp.getTarget43()), 2, RoundingMode.HALF_EVEN).doubleValue();
  863. //年负荷率target56
  864. pewp.setTarget56(result);
  865. }
  866. //年功率一致性系数target57
  867. pewp.setTarget57(day4.getNglyzxxs());
  868. //年拟合优度target58
  869. pewp.setTarget58(day4.getNnhyd());
  870. //年曲线偏差率 target59
  871. pewp.setTarget59(day4.getNqxpcbbg());
  872. //年故障消缺及时率 target60
  873. pewp.setTarget60(day4.getNgzxqjsl());
  874. //年状态转换及时率 target61
  875. pewp.setTarget61(day4.getNztzhjsl());
  876. //年复位及时率target62
  877. pewp.setTarget62(day4.getNfwjsl());
  878. //年MTBF target63
  879. pewp.setTarget63(day4.getNmtbf());
  880. //年MTTR target64
  881. pewp.setTarget64(day4.getNmttr());
  882. //年MTTF target65
  883. pewp.setTarget65(day4.getNmttr());
  884. }
  885. if (!pepid5ls.isEmpty()) {
  886. List<ProEconInputOrOutputSpeed> list = pepid5ls.stream().filter(i -> i.getInputOrOutput() == 1).collect(Collectors.toList());
  887. //年切入次数target37
  888. pewp.setTarget37(Double.valueOf(list.size()));
  889. list = pepid5ls.stream().filter(i -> i.getInputOrOutput() == 0).collect(Collectors.toList());
  890. //年切出次数target38
  891. pewp.setTarget38(Double.valueOf(list.size()));
  892. }
  893. if (!pepid6ls.isEmpty()) {
  894. int time30m = 0;
  895. int time6h = 0;
  896. int time12h = 0;
  897. int time24h = 0;
  898. int time72h = 0;
  899. int time168h = 0;
  900. int time = 0;
  901. for (ProEconShutdownEvent vo : pepid6ls) {
  902. if (vo.getStopHours() < 0.5) {
  903. time30m++;
  904. }
  905. if (vo.getStopHours() < 6) {
  906. time6h++;
  907. }
  908. if (vo.getStopHours() < 12) {
  909. time12h++;
  910. }
  911. if (vo.getStopHours() < 24) {
  912. time24h++;
  913. }
  914. if (vo.getStopHours() < 72) {
  915. time72h++;
  916. }
  917. if (vo.getStopHours() < 168) {
  918. time168h++;
  919. }
  920. if (vo.getStopHours() > 168) {
  921. time++;
  922. }
  923. }
  924. //年30分钟内故障消除次数 target46
  925. pewp.setTarget46(Double.valueOf(time30m));
  926. //年6小时内故障消除次数 target47
  927. pewp.setTarget47(Double.valueOf(time6h));
  928. //年12小时内故障消除次数 target48
  929. pewp.setTarget48(Double.valueOf(time12h));
  930. //年24小时内故障消除次数 target49
  931. pewp.setTarget49(Double.valueOf(time24h));
  932. //年72小时内故障消除次数 target50
  933. pewp.setTarget50(Double.valueOf(time72h));
  934. //年168小时内故障消除次数 target51
  935. pewp.setTarget51(Double.valueOf(time168h));
  936. //年168小时外故障消除次数 target52
  937. pewp.setTarget52(Double.valueOf(time));
  938. //年故障消缺总次数 target53
  939. pewp.setTarget53(Double.valueOf(time));
  940. }
  941. }
  942. public static void initial(ProEconEqOriginalDay pepd) {
  943. /**
  944. * SCADA发电量(千瓦时)
  945. */
  946. pepd.setTarget01(0.0);
  947. /**
  948. * 试运行SCADA发电量(千瓦时)
  949. */
  950. pepd.setTarget02(0.0);
  951. /**
  952. * 日最大风速
  953. */
  954. pepd.setTarget03(0.0);
  955. /**
  956. * 日最小风速
  957. */
  958. pepd.setTarget04(0.0);
  959. /**
  960. * 日最大功率
  961. */
  962. pepd.setTarget05(0.0);
  963. /**
  964. * 日最小功率
  965. */
  966. pepd.setTarget06(0.0);
  967. /**
  968. * 日平均功率
  969. */
  970. pepd.setTarget07(0.0);
  971. /**
  972. * 日平均风速
  973. */
  974. pepd.setTarget08(0.0);
  975. /**
  976. * 日设计理论发电量(千瓦时)
  977. */
  978. pepd.setTarget09(0.0);
  979. /**
  980. * 日实际理论发电量(千瓦时)
  981. */
  982. pepd.setTarget10(0.0);
  983. /**
  984. * 日智慧风电理论发电量(千瓦时)
  985. */
  986. pepd.setTarget11(0.0);
  987. /**
  988. * 风能利用率
  989. */
  990. pepd.setTarget12(0.0);
  991. /**
  992. * 损失电量(千瓦时)
  993. */
  994. pepd.setTarget13(0.0);
  995. /**
  996. * 故障损失时长(小时)
  997. */
  998. pepd.setTarget14(0.0);
  999. /**
  1000. * 故障次数
  1001. */
  1002. pepd.setTarget15(0.0);
  1003. /**
  1004. * 故障损失电量
  1005. */
  1006. pepd.setTarget16(0.0);
  1007. /**
  1008. * 故障损失率
  1009. */
  1010. pepd.setTarget17(0.0);
  1011. /**
  1012. * 检修损失时长(小时)
  1013. */
  1014. pepd.setTarget18(0.0);
  1015. /**
  1016. * 检修次数
  1017. */
  1018. pepd.setTarget19(0.0);
  1019. /**
  1020. * 检修损失电量
  1021. */
  1022. pepd.setTarget20(0.0);
  1023. /**
  1024. * 检修损失率
  1025. */
  1026. pepd.setTarget21(0.0);
  1027. /**
  1028. * 性能损失时长(小时)
  1029. */
  1030. pepd.setTarget22(0.0);
  1031. /**
  1032. * 性能损失次数
  1033. */
  1034. pepd.setTarget23(0.0);
  1035. /**
  1036. * 性能损失电量
  1037. */
  1038. pepd.setTarget24(0.0);
  1039. /**
  1040. * 性能损失率
  1041. */
  1042. pepd.setTarget25(0.0);
  1043. /**
  1044. * 限电时长(小时)
  1045. */
  1046. pepd.setTarget26(0.0);
  1047. /**
  1048. * 限电次数
  1049. */
  1050. pepd.setTarget27(0.0);
  1051. /**
  1052. * 限电损失电量
  1053. */
  1054. pepd.setTarget28(0.0);
  1055. /**
  1056. * 限电损失率
  1057. */
  1058. pepd.setTarget29(0.0);
  1059. /**
  1060. * 弃风率
  1061. */
  1062. pepd.setTarget30(0.0);
  1063. /**
  1064. * 弃发比
  1065. */
  1066. pepd.setTarget31(0.0);
  1067. /**
  1068. * 受累损失时长(小时)
  1069. */
  1070. pepd.setTarget32(0.0);
  1071. /**
  1072. * 受累次数
  1073. */
  1074. pepd.setTarget33(0.0);
  1075. /**
  1076. * 受累损失电量
  1077. */
  1078. pepd.setTarget34(0.0);
  1079. /**
  1080. * 受累损失率
  1081. */
  1082. pepd.setTarget35(0.0);
  1083. /**
  1084. * 统计小时
  1085. */
  1086. pepd.setTarget36(0.0);
  1087. /**
  1088. * 切入次数
  1089. */
  1090. pepd.setTarget37(0.0);
  1091. /**
  1092. * 切出次数
  1093. */
  1094. pepd.setTarget38(0.0);
  1095. /**
  1096. * 平均切入风速
  1097. */
  1098. pepd.setTarget39(0.0);
  1099. /**
  1100. * 平均切出风速
  1101. */
  1102. pepd.setTarget40(0.0);
  1103. /**
  1104. * 最大切出风速
  1105. */
  1106. pepd.setTarget41(0.0);
  1107. /**
  1108. * 最小切入风速
  1109. */
  1110. pepd.setTarget42(0.0);
  1111. /**
  1112. * 额定功率
  1113. */
  1114. pepd.setTarget43(0.0);
  1115. /**
  1116. * 额定风速
  1117. */
  1118. pepd.setTarget44(0.0);
  1119. /**
  1120. * 设备利用小时
  1121. */
  1122. pepd.setTarget45(0.0);
  1123. /**
  1124. * 30分钟内故障消除次数
  1125. */
  1126. pepd.setTarget46(0.0);
  1127. /**
  1128. * 6小时内故障消除次数
  1129. */
  1130. pepd.setTarget47(0.0);
  1131. /**
  1132. * 12小时内故障消除次数
  1133. */
  1134. pepd.setTarget48(0.0);
  1135. /**
  1136. * 24小时内故障消除次数
  1137. */
  1138. pepd.setTarget49(0.0);
  1139. /**
  1140. * 72小时内故障消除次数
  1141. */
  1142. pepd.setTarget50(0.0);
  1143. /**
  1144. * 168小时内故障消除次数
  1145. */
  1146. pepd.setTarget51(0.0);
  1147. /**
  1148. * 168小时外故障消除次数
  1149. */
  1150. pepd.setTarget52(0.0);
  1151. /**
  1152. * 故障消缺总次数
  1153. */
  1154. pepd.setTarget53(0.0);
  1155. /**
  1156. * 日等效可利用系数
  1157. */
  1158. pepd.setTarget54(0.0);
  1159. /**
  1160. * 日设备可利用率
  1161. */
  1162. pepd.setTarget55(0.0);
  1163. /**
  1164. * 日负荷率
  1165. */
  1166. pepd.setTarget56(0.0);
  1167. /**
  1168. * 日功率一致性系数
  1169. */
  1170. pepd.setTarget57(0.0);
  1171. /**
  1172. * 日拟合优度
  1173. */
  1174. pepd.setTarget58(0.0);
  1175. /**
  1176. * 日曲线偏差率
  1177. */
  1178. pepd.setTarget59(0.0);
  1179. /**
  1180. * 故障消缺及时率
  1181. */
  1182. pepd.setTarget60(0.0);
  1183. /**
  1184. * 状态转换及时率
  1185. */
  1186. pepd.setTarget61(0.0);
  1187. /**
  1188. * 复位及时率
  1189. */
  1190. pepd.setTarget62(0.0);
  1191. /**
  1192. * 日MTBF
  1193. */
  1194. pepd.setTarget63(0.0);
  1195. /**
  1196. * 日MTTR
  1197. */
  1198. pepd.setTarget64(0.0);
  1199. /**
  1200. * 日MTTF
  1201. */
  1202. pepd.setTarget65(0.0);
  1203. /**
  1204. * 备用1
  1205. */
  1206. pepd.setTarget66(0.0);
  1207. /**
  1208. * 备用2
  1209. */
  1210. pepd.setTarget67(0.0);
  1211. /**
  1212. * 备用3
  1213. */
  1214. pepd.setTarget68(0.0);
  1215. /**
  1216. * 备用4
  1217. */
  1218. pepd.setTarget69(0.0);
  1219. /**
  1220. * 备用5
  1221. */
  1222. pepd.setTarget70(0.0);
  1223. /**
  1224. * 备用6
  1225. */
  1226. pepd.setTarget71(0.0);
  1227. /**
  1228. * 备用7
  1229. */
  1230. pepd.setTarget72(0.0);
  1231. /**
  1232. * 备用8
  1233. */
  1234. pepd.setTarget73(0.0);
  1235. /**
  1236. * 备用9
  1237. */
  1238. pepd.setTarget74(0.0);
  1239. /**
  1240. * 备用10
  1241. */
  1242. pepd.setTarget75(0.0);
  1243. /**
  1244. * 备用11
  1245. */
  1246. pepd.setTarget76(0.0);
  1247. /**
  1248. * 备用12
  1249. */
  1250. pepd.setTarget77(0.0);
  1251. /**
  1252. * 备用13
  1253. */
  1254. pepd.setTarget78(0.0);
  1255. /**
  1256. * 备用14
  1257. */
  1258. pepd.setTarget79(0.0);
  1259. /**
  1260. * 备用15
  1261. */
  1262. pepd.setTarget80(0.0);
  1263. /**
  1264. * 备用16
  1265. */
  1266. pepd.setTarget81(0.0);
  1267. /**
  1268. * 备用17
  1269. */
  1270. pepd.setTarget82(0.0);
  1271. /**
  1272. * 备用18
  1273. */
  1274. pepd.setTarget83(0.0);
  1275. /**
  1276. * 备用19
  1277. */
  1278. pepd.setTarget84(0.0);
  1279. /**
  1280. * 备用20
  1281. */
  1282. pepd.setTarget85(0.0);
  1283. /**
  1284. * 备用21
  1285. */
  1286. pepd.setTarget86(0.0);
  1287. /**
  1288. * 备用22
  1289. */
  1290. pepd.setTarget87(0.0);
  1291. /**
  1292. * 备用23
  1293. */
  1294. pepd.setTarget88(0.0);
  1295. /**
  1296. * 备用24
  1297. */
  1298. pepd.setTarget89(0.0);
  1299. /**
  1300. * 备用25
  1301. */
  1302. pepd.setTarget90(0.0);
  1303. /**
  1304. * 备用26
  1305. */
  1306. pepd.setTarget91(0.0);
  1307. /**
  1308. * 备用27
  1309. */
  1310. pepd.setTarget92(0.0);
  1311. /**
  1312. * 备用28
  1313. */
  1314. pepd.setTarget93(0.0);
  1315. /**
  1316. * 备用29
  1317. */
  1318. pepd.setTarget94(0.0);
  1319. /**
  1320. * 备用30
  1321. */
  1322. pepd.setTarget95(0.0);
  1323. /**
  1324. * 备用31
  1325. */
  1326. pepd.setTarget96(0.0);
  1327. /**
  1328. * 备用32
  1329. */
  1330. pepd.setTarget97(0.0);
  1331. /**
  1332. * 备用33
  1333. */
  1334. pepd.setTarget98(0.0);
  1335. /**
  1336. * 备用34
  1337. */
  1338. pepd.setTarget99(0.0);
  1339. /**
  1340. * 备用35
  1341. */
  1342. pepd.setTarget100(0.0);
  1343. pepd.setTarget101(0.0);
  1344. pepd.setTarget102(0.0);
  1345. pepd.setTarget103(0.0);
  1346. pepd.setTarget104(0.0);
  1347. pepd.setTarget105(0.0);
  1348. pepd.setTarget106(0.0);
  1349. pepd.setTarget107(0.0);
  1350. pepd.setTarget108(0.0);
  1351. pepd.setTarget109(0.0);
  1352. pepd.setTarget110(0.0);
  1353. pepd.setTarget111(0.0);
  1354. pepd.setTarget112(0.0);
  1355. pepd.setTarget113(0.0);
  1356. pepd.setTarget114(0.0);
  1357. pepd.setTarget115(0.0);
  1358. pepd.setTarget116(0.0);
  1359. pepd.setTarget117(0.0);
  1360. pepd.setTarget118(0.0);
  1361. pepd.setTarget119(0.0);
  1362. pepd.setTarget120(0.0);
  1363. pepd.setTarget121(0.0);
  1364. pepd.setTarget122(0.0);
  1365. pepd.setTarget123(0.0);
  1366. pepd.setTarget124(0.0);
  1367. pepd.setTarget125(0.0);
  1368. pepd.setTarget126(0.0);
  1369. pepd.setTarget127(0.0);
  1370. pepd.setTarget128(0.0);
  1371. pepd.setTarget129(0.0);
  1372. pepd.setTarget130(0.0);
  1373. pepd.setTarget131(0.0);
  1374. pepd.setTarget132(0.0);
  1375. pepd.setTarget133(0.0);
  1376. pepd.setTarget134(0.0);
  1377. pepd.setTarget135(0.0);
  1378. pepd.setTarget136(0.0);
  1379. pepd.setTarget137(0.0);
  1380. pepd.setTarget138(0.0);
  1381. pepd.setTarget139(0.0);
  1382. pepd.setTarget140(0.0);
  1383. pepd.setTarget141(0.0);
  1384. pepd.setTarget142(0.0);
  1385. pepd.setTarget143(0.0);
  1386. pepd.setTarget144(0.0);
  1387. pepd.setTarget145(0.0);
  1388. pepd.setTarget146(0.0);
  1389. pepd.setTarget147(0.0);
  1390. pepd.setTarget148(0.0);
  1391. pepd.setTarget149(0.0);
  1392. pepd.setTarget150(0.0);
  1393. pepd.setTarget151(0.0);
  1394. pepd.setTarget152(0.0);
  1395. pepd.setTarget153(0.0);
  1396. pepd.setTarget154(0.0);
  1397. pepd.setTarget155(0.0);
  1398. pepd.setTarget156(0.0);
  1399. pepd.setTarget157(0.0);
  1400. pepd.setTarget158(0.0);
  1401. pepd.setTarget159(0.0);
  1402. pepd.setTarget160(0.0);
  1403. pepd.setTarget161(0.0);
  1404. pepd.setTarget162(0.0);
  1405. pepd.setTarget163(0.0);
  1406. pepd.setTarget164(0.0);
  1407. pepd.setTarget165(0.0);
  1408. pepd.setTarget166(0.0);
  1409. pepd.setTarget167(0.0);
  1410. pepd.setTarget168(0.0);
  1411. pepd.setTarget169(0.0);
  1412. pepd.setTarget170(0.0);
  1413. pepd.setTarget171(0.0);
  1414. pepd.setTarget172(0.0);
  1415. pepd.setTarget173(0.0);
  1416. pepd.setTarget174(0.0);
  1417. pepd.setTarget175(0.0);
  1418. pepd.setTarget176(0.0);
  1419. pepd.setTarget177(0.0);
  1420. pepd.setTarget178(0.0);
  1421. pepd.setTarget179(0.0);
  1422. pepd.setTarget180(0.0);
  1423. pepd.setTarget181(0.0);
  1424. pepd.setTarget182(0.0);
  1425. pepd.setTarget183(0.0);
  1426. pepd.setTarget184(0.0);
  1427. pepd.setTarget185(0.0);
  1428. pepd.setTarget186(0.0);
  1429. pepd.setTarget187(0.0);
  1430. pepd.setTarget188(0.0);
  1431. pepd.setTarget189(0.0);
  1432. pepd.setTarget190(0.0);
  1433. pepd.setTarget191(0.0);
  1434. pepd.setTarget192(0.0);
  1435. pepd.setTarget193(0.0);
  1436. pepd.setTarget194(0.0);
  1437. pepd.setTarget195(0.0);
  1438. pepd.setTarget196(0.0);
  1439. pepd.setTarget197(0.0);
  1440. pepd.setTarget198(0.0);
  1441. pepd.setTarget199(0.0);
  1442. pepd.setTarget200(0.0);
  1443. }
  1444. public static void initial(ProEconEqOriginalMonth pepd) {
  1445. /**
  1446. * SCADA发电量(千瓦时)
  1447. */
  1448. pepd.setTarget01(0.0);
  1449. /**
  1450. * 试运行SCADA发电量(千瓦时)
  1451. */
  1452. pepd.setTarget02(0.0);
  1453. /**
  1454. * 日最大风速
  1455. */
  1456. pepd.setTarget03(0.0);
  1457. /**
  1458. * 日最小风速
  1459. */
  1460. pepd.setTarget04(0.0);
  1461. /**
  1462. * 日最大功率
  1463. */
  1464. pepd.setTarget05(0.0);
  1465. /**
  1466. * 日最小功率
  1467. */
  1468. pepd.setTarget06(0.0);
  1469. /**
  1470. * 日平均功率
  1471. */
  1472. pepd.setTarget07(0.0);
  1473. /**
  1474. * 日平均风速
  1475. */
  1476. pepd.setTarget08(0.0);
  1477. /**
  1478. * 日设计理论发电量(千瓦时)
  1479. */
  1480. pepd.setTarget09(0.0);
  1481. /**
  1482. * 日实际理论发电量(千瓦时)
  1483. */
  1484. pepd.setTarget10(0.0);
  1485. /**
  1486. * 日智慧风电理论发电量(千瓦时)
  1487. */
  1488. pepd.setTarget11(0.0);
  1489. /**
  1490. * 风能利用率
  1491. */
  1492. pepd.setTarget12(0.0);
  1493. /**
  1494. * 损失电量(千瓦时)
  1495. */
  1496. pepd.setTarget13(0.0);
  1497. /**
  1498. * 故障损失时长(小时)
  1499. */
  1500. pepd.setTarget14(0.0);
  1501. /**
  1502. * 故障次数
  1503. */
  1504. pepd.setTarget15(0.0);
  1505. /**
  1506. * 故障损失电量
  1507. */
  1508. pepd.setTarget16(0.0);
  1509. /**
  1510. * 故障损失率
  1511. */
  1512. pepd.setTarget17(0.0);
  1513. /**
  1514. * 检修损失时长(小时)
  1515. */
  1516. pepd.setTarget18(0.0);
  1517. /**
  1518. * 检修次数
  1519. */
  1520. pepd.setTarget19(0.0);
  1521. /**
  1522. * 检修损失电量
  1523. */
  1524. pepd.setTarget20(0.0);
  1525. /**
  1526. * 检修损失率
  1527. */
  1528. pepd.setTarget21(0.0);
  1529. /**
  1530. * 性能损失时长(小时)
  1531. */
  1532. pepd.setTarget22(0.0);
  1533. /**
  1534. * 性能损失次数
  1535. */
  1536. pepd.setTarget23(0.0);
  1537. /**
  1538. * 性能损失电量
  1539. */
  1540. pepd.setTarget24(0.0);
  1541. /**
  1542. * 性能损失率
  1543. */
  1544. pepd.setTarget25(0.0);
  1545. /**
  1546. * 限电时长(小时)
  1547. */
  1548. pepd.setTarget26(0.0);
  1549. /**
  1550. * 限电次数
  1551. */
  1552. pepd.setTarget27(0.0);
  1553. /**
  1554. * 限电损失电量
  1555. */
  1556. pepd.setTarget28(0.0);
  1557. /**
  1558. * 限电损失率
  1559. */
  1560. pepd.setTarget29(0.0);
  1561. /**
  1562. * 弃风率
  1563. */
  1564. pepd.setTarget30(0.0);
  1565. /**
  1566. * 弃发比
  1567. */
  1568. pepd.setTarget31(0.0);
  1569. /**
  1570. * 受累损失时长(小时)
  1571. */
  1572. pepd.setTarget32(0.0);
  1573. /**
  1574. * 受累次数
  1575. */
  1576. pepd.setTarget33(0.0);
  1577. /**
  1578. * 受累损失电量
  1579. */
  1580. pepd.setTarget34(0.0);
  1581. /**
  1582. * 受累损失率
  1583. */
  1584. pepd.setTarget35(0.0);
  1585. /**
  1586. * 统计小时
  1587. */
  1588. pepd.setTarget36(0.0);
  1589. /**
  1590. * 切入次数
  1591. */
  1592. pepd.setTarget37(0.0);
  1593. /**
  1594. * 切出次数
  1595. */
  1596. pepd.setTarget38(0.0);
  1597. /**
  1598. * 平均切入风速
  1599. */
  1600. pepd.setTarget39(0.0);
  1601. /**
  1602. * 平均切出风速
  1603. */
  1604. pepd.setTarget40(0.0);
  1605. /**
  1606. * 最大切出风速
  1607. */
  1608. pepd.setTarget41(0.0);
  1609. /**
  1610. * 最小切入风速
  1611. */
  1612. pepd.setTarget42(0.0);
  1613. /**
  1614. * 额定功率
  1615. */
  1616. pepd.setTarget43(0.0);
  1617. /**
  1618. * 额定风速
  1619. */
  1620. pepd.setTarget44(0.0);
  1621. /**
  1622. * 设备利用小时
  1623. */
  1624. pepd.setTarget45(0.0);
  1625. /**
  1626. * 30分钟内故障消除次数
  1627. */
  1628. pepd.setTarget46(0.0);
  1629. /**
  1630. * 6小时内故障消除次数
  1631. */
  1632. pepd.setTarget47(0.0);
  1633. /**
  1634. * 12小时内故障消除次数
  1635. */
  1636. pepd.setTarget48(0.0);
  1637. /**
  1638. * 24小时内故障消除次数
  1639. */
  1640. pepd.setTarget49(0.0);
  1641. /**
  1642. * 72小时内故障消除次数
  1643. */
  1644. pepd.setTarget50(0.0);
  1645. /**
  1646. * 168小时内故障消除次数
  1647. */
  1648. pepd.setTarget51(0.0);
  1649. /**
  1650. * 168小时外故障消除次数
  1651. */
  1652. pepd.setTarget52(0.0);
  1653. /**
  1654. * 故障消缺总次数
  1655. */
  1656. pepd.setTarget53(0.0);
  1657. /**
  1658. * 日等效可利用系数
  1659. */
  1660. pepd.setTarget54(0.0);
  1661. /**
  1662. * 日设备可利用率
  1663. */
  1664. pepd.setTarget55(0.0);
  1665. /**
  1666. * 日负荷率
  1667. */
  1668. pepd.setTarget56(0.0);
  1669. /**
  1670. * 日功率一致性系数
  1671. */
  1672. pepd.setTarget57(0.0);
  1673. /**
  1674. * 日拟合优度
  1675. */
  1676. pepd.setTarget58(0.0);
  1677. /**
  1678. * 日曲线偏差率
  1679. */
  1680. pepd.setTarget59(0.0);
  1681. /**
  1682. * 故障消缺及时率
  1683. */
  1684. pepd.setTarget60(0.0);
  1685. /**
  1686. * 状态转换及时率
  1687. */
  1688. pepd.setTarget61(0.0);
  1689. /**
  1690. * 复位及时率
  1691. */
  1692. pepd.setTarget62(0.0);
  1693. /**
  1694. * 日MTBF
  1695. */
  1696. pepd.setTarget63(0.0);
  1697. /**
  1698. * 日MTTR
  1699. */
  1700. pepd.setTarget64(0.0);
  1701. /**
  1702. * 日MTTF
  1703. */
  1704. pepd.setTarget65(0.0);
  1705. /**
  1706. * 备用1
  1707. */
  1708. pepd.setTarget66(0.0);
  1709. /**
  1710. * 备用2
  1711. */
  1712. pepd.setTarget67(0.0);
  1713. /**
  1714. * 备用3
  1715. */
  1716. pepd.setTarget68(0.0);
  1717. /**
  1718. * 备用4
  1719. */
  1720. pepd.setTarget69(0.0);
  1721. /**
  1722. * 备用5
  1723. */
  1724. pepd.setTarget70(0.0);
  1725. /**
  1726. * 备用6
  1727. */
  1728. pepd.setTarget71(0.0);
  1729. /**
  1730. * 备用7
  1731. */
  1732. pepd.setTarget72(0.0);
  1733. /**
  1734. * 备用8
  1735. */
  1736. pepd.setTarget73(0.0);
  1737. /**
  1738. * 备用9
  1739. */
  1740. pepd.setTarget74(0.0);
  1741. /**
  1742. * 备用10
  1743. */
  1744. pepd.setTarget75(0.0);
  1745. /**
  1746. * 备用11
  1747. */
  1748. pepd.setTarget76(0.0);
  1749. /**
  1750. * 备用12
  1751. */
  1752. pepd.setTarget77(0.0);
  1753. /**
  1754. * 备用13
  1755. */
  1756. pepd.setTarget78(0.0);
  1757. /**
  1758. * 备用14
  1759. */
  1760. pepd.setTarget79(0.0);
  1761. /**
  1762. * 备用15
  1763. */
  1764. pepd.setTarget80(0.0);
  1765. /**
  1766. * 备用16
  1767. */
  1768. pepd.setTarget81(0.0);
  1769. /**
  1770. * 备用17
  1771. */
  1772. pepd.setTarget82(0.0);
  1773. /**
  1774. * 备用18
  1775. */
  1776. pepd.setTarget83(0.0);
  1777. /**
  1778. * 备用19
  1779. */
  1780. pepd.setTarget84(0.0);
  1781. /**
  1782. * 备用20
  1783. */
  1784. pepd.setTarget85(0.0);
  1785. /**
  1786. * 备用21
  1787. */
  1788. pepd.setTarget86(0.0);
  1789. /**
  1790. * 备用22
  1791. */
  1792. pepd.setTarget87(0.0);
  1793. /**
  1794. * 备用23
  1795. */
  1796. pepd.setTarget88(0.0);
  1797. /**
  1798. * 备用24
  1799. */
  1800. pepd.setTarget89(0.0);
  1801. /**
  1802. * 备用25
  1803. */
  1804. pepd.setTarget90(0.0);
  1805. /**
  1806. * 备用26
  1807. */
  1808. pepd.setTarget91(0.0);
  1809. /**
  1810. * 备用27
  1811. */
  1812. pepd.setTarget92(0.0);
  1813. /**
  1814. * 备用28
  1815. */
  1816. pepd.setTarget93(0.0);
  1817. /**
  1818. * 备用29
  1819. */
  1820. pepd.setTarget94(0.0);
  1821. /**
  1822. * 备用30
  1823. */
  1824. pepd.setTarget95(0.0);
  1825. /**
  1826. * 备用31
  1827. */
  1828. pepd.setTarget96(0.0);
  1829. /**
  1830. * 备用32
  1831. */
  1832. pepd.setTarget97(0.0);
  1833. /**
  1834. * 备用33
  1835. */
  1836. pepd.setTarget98(0.0);
  1837. /**
  1838. * 备用34
  1839. */
  1840. pepd.setTarget99(0.0);
  1841. /**
  1842. * 备用35
  1843. */
  1844. pepd.setTarget100(0.0);
  1845. pepd.setTarget101(0.0);
  1846. pepd.setTarget102(0.0);
  1847. pepd.setTarget103(0.0);
  1848. pepd.setTarget104(0.0);
  1849. pepd.setTarget105(0.0);
  1850. pepd.setTarget106(0.0);
  1851. pepd.setTarget107(0.0);
  1852. pepd.setTarget108(0.0);
  1853. pepd.setTarget109(0.0);
  1854. pepd.setTarget110(0.0);
  1855. pepd.setTarget111(0.0);
  1856. pepd.setTarget112(0.0);
  1857. pepd.setTarget113(0.0);
  1858. pepd.setTarget114(0.0);
  1859. pepd.setTarget115(0.0);
  1860. pepd.setTarget116(0.0);
  1861. pepd.setTarget117(0.0);
  1862. pepd.setTarget118(0.0);
  1863. pepd.setTarget119(0.0);
  1864. pepd.setTarget120(0.0);
  1865. pepd.setTarget121(0.0);
  1866. pepd.setTarget122(0.0);
  1867. pepd.setTarget123(0.0);
  1868. pepd.setTarget124(0.0);
  1869. pepd.setTarget125(0.0);
  1870. pepd.setTarget126(0.0);
  1871. pepd.setTarget127(0.0);
  1872. pepd.setTarget128(0.0);
  1873. pepd.setTarget129(0.0);
  1874. pepd.setTarget130(0.0);
  1875. pepd.setTarget131(0.0);
  1876. pepd.setTarget132(0.0);
  1877. pepd.setTarget133(0.0);
  1878. pepd.setTarget134(0.0);
  1879. pepd.setTarget135(0.0);
  1880. pepd.setTarget136(0.0);
  1881. pepd.setTarget137(0.0);
  1882. pepd.setTarget138(0.0);
  1883. pepd.setTarget139(0.0);
  1884. pepd.setTarget140(0.0);
  1885. pepd.setTarget141(0.0);
  1886. pepd.setTarget142(0.0);
  1887. pepd.setTarget143(0.0);
  1888. pepd.setTarget144(0.0);
  1889. pepd.setTarget145(0.0);
  1890. pepd.setTarget146(0.0);
  1891. pepd.setTarget147(0.0);
  1892. pepd.setTarget148(0.0);
  1893. pepd.setTarget149(0.0);
  1894. pepd.setTarget150(0.0);
  1895. pepd.setTarget151(0.0);
  1896. pepd.setTarget152(0.0);
  1897. pepd.setTarget153(0.0);
  1898. pepd.setTarget154(0.0);
  1899. pepd.setTarget155(0.0);
  1900. pepd.setTarget156(0.0);
  1901. pepd.setTarget157(0.0);
  1902. pepd.setTarget158(0.0);
  1903. pepd.setTarget159(0.0);
  1904. pepd.setTarget160(0.0);
  1905. pepd.setTarget161(0.0);
  1906. pepd.setTarget162(0.0);
  1907. pepd.setTarget163(0.0);
  1908. pepd.setTarget164(0.0);
  1909. pepd.setTarget165(0.0);
  1910. pepd.setTarget166(0.0);
  1911. pepd.setTarget167(0.0);
  1912. pepd.setTarget168(0.0);
  1913. pepd.setTarget169(0.0);
  1914. pepd.setTarget170(0.0);
  1915. pepd.setTarget171(0.0);
  1916. pepd.setTarget172(0.0);
  1917. pepd.setTarget173(0.0);
  1918. pepd.setTarget174(0.0);
  1919. pepd.setTarget175(0.0);
  1920. pepd.setTarget176(0.0);
  1921. pepd.setTarget177(0.0);
  1922. pepd.setTarget178(0.0);
  1923. pepd.setTarget179(0.0);
  1924. pepd.setTarget180(0.0);
  1925. pepd.setTarget181(0.0);
  1926. pepd.setTarget182(0.0);
  1927. pepd.setTarget183(0.0);
  1928. pepd.setTarget184(0.0);
  1929. pepd.setTarget185(0.0);
  1930. pepd.setTarget186(0.0);
  1931. pepd.setTarget187(0.0);
  1932. pepd.setTarget188(0.0);
  1933. pepd.setTarget189(0.0);
  1934. pepd.setTarget190(0.0);
  1935. pepd.setTarget191(0.0);
  1936. pepd.setTarget192(0.0);
  1937. pepd.setTarget193(0.0);
  1938. pepd.setTarget194(0.0);
  1939. pepd.setTarget195(0.0);
  1940. pepd.setTarget196(0.0);
  1941. pepd.setTarget197(0.0);
  1942. pepd.setTarget198(0.0);
  1943. pepd.setTarget199(0.0);
  1944. pepd.setTarget200(0.0);
  1945. }
  1946. public static void initial(ProEconEqOriginalYear pepd) {
  1947. /**
  1948. * SCADA发电量(千瓦时)
  1949. */
  1950. pepd.setTarget01(0.0);
  1951. /**
  1952. * 试运行SCADA发电量(千瓦时)
  1953. */
  1954. pepd.setTarget02(0.0);
  1955. /**
  1956. * 日最大风速
  1957. */
  1958. pepd.setTarget03(0.0);
  1959. /**
  1960. * 日最小风速
  1961. */
  1962. pepd.setTarget04(0.0);
  1963. /**
  1964. * 日最大功率
  1965. */
  1966. pepd.setTarget05(0.0);
  1967. /**
  1968. * 日最小功率
  1969. */
  1970. pepd.setTarget06(0.0);
  1971. /**
  1972. * 日平均功率
  1973. */
  1974. pepd.setTarget07(0.0);
  1975. /**
  1976. * 日平均风速
  1977. */
  1978. pepd.setTarget08(0.0);
  1979. /**
  1980. * 日设计理论发电量(千瓦时)
  1981. */
  1982. pepd.setTarget09(0.0);
  1983. /**
  1984. * 日实际理论发电量(千瓦时)
  1985. */
  1986. pepd.setTarget10(0.0);
  1987. /**
  1988. * 日智慧风电理论发电量(千瓦时)
  1989. */
  1990. pepd.setTarget11(0.0);
  1991. /**
  1992. * 风能利用率
  1993. */
  1994. pepd.setTarget12(0.0);
  1995. /**
  1996. * 损失电量(千瓦时)
  1997. */
  1998. pepd.setTarget13(0.0);
  1999. /**
  2000. * 故障损失时长(小时)
  2001. */
  2002. pepd.setTarget14(0.0);
  2003. /**
  2004. * 故障次数
  2005. */
  2006. pepd.setTarget15(0.0);
  2007. /**
  2008. * 故障损失电量
  2009. */
  2010. pepd.setTarget16(0.0);
  2011. /**
  2012. * 故障损失率
  2013. */
  2014. pepd.setTarget17(0.0);
  2015. /**
  2016. * 检修损失时长(小时)
  2017. */
  2018. pepd.setTarget18(0.0);
  2019. /**
  2020. * 检修次数
  2021. */
  2022. pepd.setTarget19(0.0);
  2023. /**
  2024. * 检修损失电量
  2025. */
  2026. pepd.setTarget20(0.0);
  2027. /**
  2028. * 检修损失率
  2029. */
  2030. pepd.setTarget21(0.0);
  2031. /**
  2032. * 性能损失时长(小时)
  2033. */
  2034. pepd.setTarget22(0.0);
  2035. /**
  2036. * 性能损失次数
  2037. */
  2038. pepd.setTarget23(0.0);
  2039. /**
  2040. * 性能损失电量
  2041. */
  2042. pepd.setTarget24(0.0);
  2043. /**
  2044. * 性能损失率
  2045. */
  2046. pepd.setTarget25(0.0);
  2047. /**
  2048. * 限电时长(小时)
  2049. */
  2050. pepd.setTarget26(0.0);
  2051. /**
  2052. * 限电次数
  2053. */
  2054. pepd.setTarget27(0.0);
  2055. /**
  2056. * 限电损失电量
  2057. */
  2058. pepd.setTarget28(0.0);
  2059. /**
  2060. * 限电损失率
  2061. */
  2062. pepd.setTarget29(0.0);
  2063. /**
  2064. * 弃风率
  2065. */
  2066. pepd.setTarget30(0.0);
  2067. /**
  2068. * 弃发比
  2069. */
  2070. pepd.setTarget31(0.0);
  2071. /**
  2072. * 受累损失时长(小时)
  2073. */
  2074. pepd.setTarget32(0.0);
  2075. /**
  2076. * 受累次数
  2077. */
  2078. pepd.setTarget33(0.0);
  2079. /**
  2080. * 受累损失电量
  2081. */
  2082. pepd.setTarget34(0.0);
  2083. /**
  2084. * 受累损失率
  2085. */
  2086. pepd.setTarget35(0.0);
  2087. /**
  2088. * 统计小时
  2089. */
  2090. pepd.setTarget36(0.0);
  2091. /**
  2092. * 切入次数
  2093. */
  2094. pepd.setTarget37(0.0);
  2095. /**
  2096. * 切出次数
  2097. */
  2098. pepd.setTarget38(0.0);
  2099. /**
  2100. * 平均切入风速
  2101. */
  2102. pepd.setTarget39(0.0);
  2103. /**
  2104. * 平均切出风速
  2105. */
  2106. pepd.setTarget40(0.0);
  2107. /**
  2108. * 最大切出风速
  2109. */
  2110. pepd.setTarget41(0.0);
  2111. /**
  2112. * 最小切入风速
  2113. */
  2114. pepd.setTarget42(0.0);
  2115. /**
  2116. * 额定功率
  2117. */
  2118. pepd.setTarget43(0.0);
  2119. /**
  2120. * 额定风速
  2121. */
  2122. pepd.setTarget44(0.0);
  2123. /**
  2124. * 设备利用小时
  2125. */
  2126. pepd.setTarget45(0.0);
  2127. /**
  2128. * 30分钟内故障消除次数
  2129. */
  2130. pepd.setTarget46(0.0);
  2131. /**
  2132. * 6小时内故障消除次数
  2133. */
  2134. pepd.setTarget47(0.0);
  2135. /**
  2136. * 12小时内故障消除次数
  2137. */
  2138. pepd.setTarget48(0.0);
  2139. /**
  2140. * 24小时内故障消除次数
  2141. */
  2142. pepd.setTarget49(0.0);
  2143. /**
  2144. * 72小时内故障消除次数
  2145. */
  2146. pepd.setTarget50(0.0);
  2147. /**
  2148. * 168小时内故障消除次数
  2149. */
  2150. pepd.setTarget51(0.0);
  2151. /**
  2152. * 168小时外故障消除次数
  2153. */
  2154. pepd.setTarget52(0.0);
  2155. /**
  2156. * 故障消缺总次数
  2157. */
  2158. pepd.setTarget53(0.0);
  2159. /**
  2160. * 日等效可利用系数
  2161. */
  2162. pepd.setTarget54(0.0);
  2163. /**
  2164. * 日设备可利用率
  2165. */
  2166. pepd.setTarget55(0.0);
  2167. /**
  2168. * 日负荷率
  2169. */
  2170. pepd.setTarget56(0.0);
  2171. /**
  2172. * 日功率一致性系数
  2173. */
  2174. pepd.setTarget57(0.0);
  2175. /**
  2176. * 日拟合优度
  2177. */
  2178. pepd.setTarget58(0.0);
  2179. /**
  2180. * 日曲线偏差率
  2181. */
  2182. pepd.setTarget59(0.0);
  2183. /**
  2184. * 故障消缺及时率
  2185. */
  2186. pepd.setTarget60(0.0);
  2187. /**
  2188. * 状态转换及时率
  2189. */
  2190. pepd.setTarget61(0.0);
  2191. /**
  2192. * 复位及时率
  2193. */
  2194. pepd.setTarget62(0.0);
  2195. /**
  2196. * 日MTBF
  2197. */
  2198. pepd.setTarget63(0.0);
  2199. /**
  2200. * 日MTTR
  2201. */
  2202. pepd.setTarget64(0.0);
  2203. /**
  2204. * 日MTTF
  2205. */
  2206. pepd.setTarget65(0.0);
  2207. /**
  2208. * 备用1
  2209. */
  2210. pepd.setTarget66(0.0);
  2211. /**
  2212. * 备用2
  2213. */
  2214. pepd.setTarget67(0.0);
  2215. /**
  2216. * 备用3
  2217. */
  2218. pepd.setTarget68(0.0);
  2219. /**
  2220. * 备用4
  2221. */
  2222. pepd.setTarget69(0.0);
  2223. /**
  2224. * 备用5
  2225. */
  2226. pepd.setTarget70(0.0);
  2227. /**
  2228. * 备用6
  2229. */
  2230. pepd.setTarget71(0.0);
  2231. /**
  2232. * 备用7
  2233. */
  2234. pepd.setTarget72(0.0);
  2235. /**
  2236. * 备用8
  2237. */
  2238. pepd.setTarget73(0.0);
  2239. /**
  2240. * 备用9
  2241. */
  2242. pepd.setTarget74(0.0);
  2243. /**
  2244. * 备用10
  2245. */
  2246. pepd.setTarget75(0.0);
  2247. /**
  2248. * 备用11
  2249. */
  2250. pepd.setTarget76(0.0);
  2251. /**
  2252. * 备用12
  2253. */
  2254. pepd.setTarget77(0.0);
  2255. /**
  2256. * 备用13
  2257. */
  2258. pepd.setTarget78(0.0);
  2259. /**
  2260. * 备用14
  2261. */
  2262. pepd.setTarget79(0.0);
  2263. /**
  2264. * 备用15
  2265. */
  2266. pepd.setTarget80(0.0);
  2267. /**
  2268. * 备用16
  2269. */
  2270. pepd.setTarget81(0.0);
  2271. /**
  2272. * 备用17
  2273. */
  2274. pepd.setTarget82(0.0);
  2275. /**
  2276. * 备用18
  2277. */
  2278. pepd.setTarget83(0.0);
  2279. /**
  2280. * 备用19
  2281. */
  2282. pepd.setTarget84(0.0);
  2283. /**
  2284. * 备用20
  2285. */
  2286. pepd.setTarget85(0.0);
  2287. /**
  2288. * 备用21
  2289. */
  2290. pepd.setTarget86(0.0);
  2291. /**
  2292. * 备用22
  2293. */
  2294. pepd.setTarget87(0.0);
  2295. /**
  2296. * 备用23
  2297. */
  2298. pepd.setTarget88(0.0);
  2299. /**
  2300. * 备用24
  2301. */
  2302. pepd.setTarget89(0.0);
  2303. /**
  2304. * 备用25
  2305. */
  2306. pepd.setTarget90(0.0);
  2307. /**
  2308. * 备用26
  2309. */
  2310. pepd.setTarget91(0.0);
  2311. /**
  2312. * 备用27
  2313. */
  2314. pepd.setTarget92(0.0);
  2315. /**
  2316. * 备用28
  2317. */
  2318. pepd.setTarget93(0.0);
  2319. /**
  2320. * 备用29
  2321. */
  2322. pepd.setTarget94(0.0);
  2323. /**
  2324. * 备用30
  2325. */
  2326. pepd.setTarget95(0.0);
  2327. /**
  2328. * 备用31
  2329. */
  2330. pepd.setTarget96(0.0);
  2331. /**
  2332. * 备用32
  2333. */
  2334. pepd.setTarget97(0.0);
  2335. /**
  2336. * 备用33
  2337. */
  2338. pepd.setTarget98(0.0);
  2339. /**
  2340. * 备用34
  2341. */
  2342. pepd.setTarget99(0.0);
  2343. /**
  2344. * 备用35
  2345. */
  2346. pepd.setTarget100(0.0);
  2347. pepd.setTarget101(0.0);
  2348. pepd.setTarget102(0.0);
  2349. pepd.setTarget103(0.0);
  2350. pepd.setTarget104(0.0);
  2351. pepd.setTarget105(0.0);
  2352. pepd.setTarget106(0.0);
  2353. pepd.setTarget107(0.0);
  2354. pepd.setTarget108(0.0);
  2355. pepd.setTarget109(0.0);
  2356. pepd.setTarget110(0.0);
  2357. pepd.setTarget111(0.0);
  2358. pepd.setTarget112(0.0);
  2359. pepd.setTarget113(0.0);
  2360. pepd.setTarget114(0.0);
  2361. pepd.setTarget115(0.0);
  2362. pepd.setTarget116(0.0);
  2363. pepd.setTarget117(0.0);
  2364. pepd.setTarget118(0.0);
  2365. pepd.setTarget119(0.0);
  2366. pepd.setTarget120(0.0);
  2367. pepd.setTarget121(0.0);
  2368. pepd.setTarget122(0.0);
  2369. pepd.setTarget123(0.0);
  2370. pepd.setTarget124(0.0);
  2371. pepd.setTarget125(0.0);
  2372. pepd.setTarget126(0.0);
  2373. pepd.setTarget127(0.0);
  2374. pepd.setTarget128(0.0);
  2375. pepd.setTarget129(0.0);
  2376. pepd.setTarget130(0.0);
  2377. pepd.setTarget131(0.0);
  2378. pepd.setTarget132(0.0);
  2379. pepd.setTarget133(0.0);
  2380. pepd.setTarget134(0.0);
  2381. pepd.setTarget135(0.0);
  2382. pepd.setTarget136(0.0);
  2383. pepd.setTarget137(0.0);
  2384. pepd.setTarget138(0.0);
  2385. pepd.setTarget139(0.0);
  2386. pepd.setTarget140(0.0);
  2387. pepd.setTarget141(0.0);
  2388. pepd.setTarget142(0.0);
  2389. pepd.setTarget143(0.0);
  2390. pepd.setTarget144(0.0);
  2391. pepd.setTarget145(0.0);
  2392. pepd.setTarget146(0.0);
  2393. pepd.setTarget147(0.0);
  2394. pepd.setTarget148(0.0);
  2395. pepd.setTarget149(0.0);
  2396. pepd.setTarget150(0.0);
  2397. pepd.setTarget151(0.0);
  2398. pepd.setTarget152(0.0);
  2399. pepd.setTarget153(0.0);
  2400. pepd.setTarget154(0.0);
  2401. pepd.setTarget155(0.0);
  2402. pepd.setTarget156(0.0);
  2403. pepd.setTarget157(0.0);
  2404. pepd.setTarget158(0.0);
  2405. pepd.setTarget159(0.0);
  2406. pepd.setTarget160(0.0);
  2407. pepd.setTarget161(0.0);
  2408. pepd.setTarget162(0.0);
  2409. pepd.setTarget163(0.0);
  2410. pepd.setTarget164(0.0);
  2411. pepd.setTarget165(0.0);
  2412. pepd.setTarget166(0.0);
  2413. pepd.setTarget167(0.0);
  2414. pepd.setTarget168(0.0);
  2415. pepd.setTarget169(0.0);
  2416. pepd.setTarget170(0.0);
  2417. pepd.setTarget171(0.0);
  2418. pepd.setTarget172(0.0);
  2419. pepd.setTarget173(0.0);
  2420. pepd.setTarget174(0.0);
  2421. pepd.setTarget175(0.0);
  2422. pepd.setTarget176(0.0);
  2423. pepd.setTarget177(0.0);
  2424. pepd.setTarget178(0.0);
  2425. pepd.setTarget179(0.0);
  2426. pepd.setTarget180(0.0);
  2427. pepd.setTarget181(0.0);
  2428. pepd.setTarget182(0.0);
  2429. pepd.setTarget183(0.0);
  2430. pepd.setTarget184(0.0);
  2431. pepd.setTarget185(0.0);
  2432. pepd.setTarget186(0.0);
  2433. pepd.setTarget187(0.0);
  2434. pepd.setTarget188(0.0);
  2435. pepd.setTarget189(0.0);
  2436. pepd.setTarget190(0.0);
  2437. pepd.setTarget191(0.0);
  2438. pepd.setTarget192(0.0);
  2439. pepd.setTarget193(0.0);
  2440. pepd.setTarget194(0.0);
  2441. pepd.setTarget195(0.0);
  2442. pepd.setTarget196(0.0);
  2443. pepd.setTarget197(0.0);
  2444. pepd.setTarget198(0.0);
  2445. pepd.setTarget199(0.0);
  2446. pepd.setTarget200(0.0);
  2447. }
  2448. }