WpwindDayInfoService.java 52 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172
  1. package com.gyee.runeconomy.service;
  2. import com.gyee.common.util.DateUtils;
  3. import com.gyee.common.vo.benchmark.ValueVo;
  4. import com.gyee.runeconomy.model.auto.ProEconWpwindDayInfo;
  5. import com.gyee.runeconomy.service.auto.IProEconWpwindDayInfoService;
  6. import com.gyee.runeconomy.util.StringUtils;
  7. import org.springframework.stereotype.Service;
  8. import javax.annotation.Resource;
  9. import java.util.*;
  10. import java.util.stream.Collectors;
  11. @Service
  12. public class WpwindDayInfoService {
  13. @Resource
  14. private IProEconWpwindDayInfoService proEconWpwindDayInfoService;
  15. private String jfplday;
  16. private String jfplmonth;
  17. private String jfplyear;
  18. public List<ProEconWpwindDayInfo> getWindpowerstationthewindinfo(String wpId, Date recorddate) {
  19. List<ProEconWpwindDayInfo> list =new ArrayList<>();
  20. if (StringUtils.notEmp(wpId) && StringUtils.notEmp(recorddate)) {
  21. list = proEconWpwindDayInfoService.list().stream().filter(i->
  22. i.getWindpowerstationId().equals(wpId)
  23. && i.getRecordDate().compareTo(DateUtils.truncate(recorddate)) ==0
  24. ).collect(Collectors.toList());
  25. }
  26. return list;
  27. }
  28. public Map<String, Object> wprfxpl(String wpId, String recorddate) {
  29. Map<String, Object> map = new HashMap<String, Object>();
  30. List<ValueVo> vos = new ArrayList<ValueVo>();
  31. if (StringUtils.notEmp(recorddate) && StringUtils.notEmp(wpId)) {
  32. Date date = DateUtils.parseDate(recorddate);
  33. List<ProEconWpwindDayInfo> wtdls = getWindpowerstationthewindinfo(wpId, date);
  34. if (!wtdls.isEmpty()) {
  35. ProEconWpwindDayInfo winfo = wtdls.get(0);
  36. int cb = (int) winfo.getCb().intValue();
  37. int cd = (int) winfo.getCd().intValue();
  38. int cg = (int) winfo.getCg().intValue();
  39. jfplday = "静风频率为" + cb;
  40. jfplmonth = "静风频率为" + cd;
  41. jfplyear = "静风频率为" + cg;
  42. for (int i = 0; i < 16; i++) {
  43. ValueVo vo = new ValueVo();
  44. double temp1=0.0;
  45. double temp2=0.0;
  46. double temp3=0.0;
  47. switch (i) {
  48. case 0:
  49. temp1=null !=winfo.getN4()?winfo.getN4():0.0;
  50. temp2=null !=winfo.getN()?winfo.getN():0.0;
  51. temp3=null !=winfo.getN4()?winfo.getN4():0.0;
  52. vo.setName("N (" + temp1 + "/" + temp2 + ")");
  53. vo.setData1(temp3);
  54. break;
  55. case 1:
  56. temp1=null !=winfo.getNne4()?winfo.getNne4():0.0;
  57. temp2=null !=winfo.getNne()?winfo.getNne():0.0;
  58. temp3=null !=winfo.getNne4()?winfo.getNne4():0.0;
  59. vo.setName("NNE (" + temp1 + "/" + temp2 + ")");
  60. vo.setData1(temp3);
  61. break;
  62. case 2:
  63. temp1=null !=winfo.getNe4()?winfo.getNe4():0.0;
  64. temp2=null !=winfo.getNe()?winfo.getNe():0.0;
  65. temp3=null !=winfo.getNe4()?winfo.getNe4():0.0;
  66. vo.setName("NE (" + temp1 + "/" + temp2 + ")");
  67. vo.setData1(temp3);
  68. break;
  69. case 3:
  70. temp1=null !=winfo.getEne4()?winfo.getEne4():0.0;
  71. temp2=null !=winfo.getEne()?winfo.getEne():0.0;
  72. temp3=null !=winfo.getEne4()?winfo.getEne4():0.0;
  73. vo.setName("ENE (" + temp1 + "/" + temp2 + ")");
  74. vo.setData1(temp3);
  75. break;
  76. case 4:
  77. temp1=null !=winfo.getE4()?winfo.getE4():0.0;
  78. temp2=null !=winfo.getE()?winfo.getE():0.0;
  79. temp3=null !=winfo.getE4()?winfo.getE4():0.0;
  80. vo.setName("E (" + temp1 + "/" + temp2 + ")");
  81. vo.setData1(temp3);
  82. break;
  83. case 5:
  84. temp1=null !=winfo.getEse4()?winfo.getEse4():0.0;
  85. temp2=null !=winfo.getEse()?winfo.getEse():0.0;
  86. temp3=null !=winfo.getEse4()?winfo.getEse4():0.0;
  87. vo.setName("ESE (" + temp1 + "/" + temp2 + ")");
  88. vo.setData1(temp3);
  89. break;
  90. case 6:
  91. temp1=null !=winfo.getSe4()?winfo.getSe4():0.0;
  92. temp2=null !=winfo.getSe()?winfo.getSe():0.0;
  93. temp3=null !=winfo.getSe4()?winfo.getSe4():0.0;
  94. vo.setName("SE (" + temp1 + "/" + temp2 + ")");
  95. vo.setData1(temp3);
  96. break;
  97. case 7:
  98. temp1=null !=winfo.getSse4()?winfo.getSse4():0.0;
  99. temp2=null !=winfo.getSse()?winfo.getSse():0.0;
  100. temp3=null !=winfo.getSse4()?winfo.getSse4():0.0;
  101. vo.setName("SSE (" + temp1 + "/" + temp2 + ")");
  102. vo.setData1(temp3);
  103. break;
  104. case 8:
  105. temp1=null !=winfo.getS4()?winfo.getS4():0.0;
  106. temp2=null !=winfo.getS()?winfo.getS():0.0;
  107. temp3=null !=winfo.getS4()?winfo.getS4():0.0;
  108. vo.setName("S (" + temp1 + "/" + temp2 + ")");
  109. vo.setData1(temp3);
  110. break;
  111. case 9:
  112. temp1=null !=winfo.getSsw4()?winfo.getSsw4():0.0;
  113. temp2=null !=winfo.getSsw()?winfo.getSsw():0.0;
  114. temp3=null !=winfo.getSsw4()?winfo.getSsw4():0.0;
  115. vo.setName("SSW (" + temp1 + "/" + temp2 + ")");
  116. vo.setData1(temp3);
  117. break;
  118. case 10:
  119. temp1=null !=winfo.getSw4()?winfo.getSw4():0.0;
  120. temp2=null !=winfo.getSw()?winfo.getSw():0.0;
  121. temp3=null !=winfo.getSw4()?winfo.getSw4():0.0;
  122. vo.setName("SW (" + temp1 + "/" + temp2 + ")");
  123. vo.setData1(temp3);
  124. break;
  125. case 11:
  126. temp1=null !=winfo.getWsw4()?winfo.getWsw4():0.0;
  127. temp2=null !=winfo.getWsw()?winfo.getWsw():0.0;
  128. temp3=null !=winfo.getWsw4()?winfo.getWsw4():0.0;
  129. vo.setName("WSW (" + temp1 + "/" + temp2 + ")");
  130. vo.setData1(temp3);
  131. break;
  132. case 12:
  133. temp1=null !=winfo.getW4()?winfo.getW4():0.0;
  134. temp2=null !=winfo.getW()?winfo.getW():0.0;
  135. temp3=null !=winfo.getW4()?winfo.getW4():0.0;
  136. vo.setName("W (" + temp1 + "/" + temp2 + ")");
  137. vo.setData1(temp3);
  138. break;
  139. case 13:
  140. temp1=null !=winfo.getWnw4()?winfo.getWnw4():0.0;
  141. temp2=null !=winfo.getWnw()?winfo.getWnw():0.0;
  142. temp3=null !=winfo.getWnw4()?winfo.getWnw4():0.0;
  143. vo.setName("WNW (" + temp1 + "/" + temp2 + ")");
  144. vo.setData1(temp3);
  145. break;
  146. case 14:
  147. temp1=null !=winfo.getNw4()?winfo.getNw4():0.0;
  148. temp2=null !=winfo.getNw()?winfo.getNw():0.0;
  149. temp3=null !=winfo.getNw4()?winfo.getNw4():0.0;
  150. vo.setName("NW (" + temp1 + "/" + temp2 + ")");
  151. vo.setData1(temp3);
  152. break;
  153. case 15:
  154. temp1=null !=winfo.getNnw4()?winfo.getNnw4():0.0;
  155. temp2=null !=winfo.getNnw()?winfo.getNnw():0.0;
  156. temp3=null !=winfo.getNnw4()?winfo.getNnw4():0.0;
  157. vo.setName("NNW (" + temp1 + "/" + temp2 + ")");
  158. vo.setData1(temp3);
  159. break;
  160. default:
  161. break;
  162. }
  163. vos.add(vo);
  164. }
  165. }
  166. map.put("jfpl", jfplday);
  167. map.put("data", vos);
  168. }
  169. return map;
  170. }
  171. public Map<String, Object> wpyfxpl(String wpId, String recorddate) {
  172. Map<String, Object> map = new HashMap<String, Object>();
  173. List<ValueVo> vos = new ArrayList<ValueVo>();
  174. if (StringUtils.notEmp(recorddate) && StringUtils.notEmp(wpId)) {
  175. Date date = DateUtils.parseDate(recorddate);
  176. List<ProEconWpwindDayInfo> wtdls =getWindpowerstationthewindinfo(wpId, date);
  177. if (!wtdls.isEmpty()) {
  178. ProEconWpwindDayInfo winfo = wtdls.get(0);
  179. int cb = (int) winfo.getCb().intValue();
  180. int cd = (int) winfo.getCd().intValue();
  181. int cg = (int) winfo.getCg().intValue();
  182. jfplday = "静风频率为" + cb;
  183. jfplmonth = "静风频率为" + cd;
  184. jfplyear = "静风频率为" + cg;
  185. for (int i = 0; i < 16; i++) {
  186. ValueVo vo = new ValueVo();
  187. double temp1=0.0;
  188. double temp2=0.0;
  189. double temp3=0.0;
  190. switch (i) {
  191. case 0:
  192. temp1=null !=winfo.getN10()?winfo.getN10():0.0;
  193. temp2=null !=winfo.getN7()?winfo.getN7():0.0;
  194. temp3=null !=winfo.getN10()?winfo.getN10():0.0;
  195. vo.setName("N (" + temp1 + "/" + temp2 + ")");
  196. vo.setData1(temp3);
  197. break;
  198. case 1:
  199. temp1=null !=winfo.getNne10()?winfo.getNne10():0.0;
  200. temp2=null !=winfo.getNne7()?winfo.getNne7():0.0;
  201. temp3=null !=winfo.getNne10()?winfo.getNne10():0.0;
  202. vo.setName("NNE (" + temp1 + "/" + temp2 + ")");
  203. vo.setData1(temp3);
  204. break;
  205. case 2:
  206. temp1=null !=winfo.getNe10()?winfo.getNe10():0.0;
  207. temp2=null !=winfo.getNe7()?winfo.getNe7():0.0;
  208. temp3=null !=winfo.getNe10()?winfo.getNe10():0.0;
  209. vo.setName("NE (" + temp1 + "/" + temp2 + ")");
  210. vo.setData1(temp3);
  211. break;
  212. case 3:
  213. temp1=null !=winfo.getEne10()?winfo.getEne10():0.0;
  214. temp2=null !=winfo.getEne7()?winfo.getEne7():0.0;
  215. temp3=null !=winfo.getEne10()?winfo.getEne10():0.0;
  216. vo.setName("ENE (" + temp1 + "/" + temp2 + ")");
  217. vo.setData1(temp3);
  218. break;
  219. case 4:
  220. temp1=null !=winfo.getE10()?winfo.getE10():0.0;
  221. temp2=null !=winfo.getE7()?winfo.getE7():0.0;
  222. temp3=null !=winfo.getE10()?winfo.getE10():0.0;
  223. vo.setName("E (" + temp1 + "/" + temp2 + ")");
  224. vo.setData1(temp3);
  225. break;
  226. case 5:
  227. temp1=null !=winfo.getEse10()?winfo.getEse10():0.0;
  228. temp2=null !=winfo.getEse7()?winfo.getEse7():0.0;
  229. temp3=null !=winfo.getEse10()?winfo.getEse10():0.0;
  230. vo.setName("ESE (" + temp1 + "/" + temp2 + ")");
  231. vo.setData1(temp3);
  232. break;
  233. case 6:
  234. temp1=null !=winfo.getSe10()?winfo.getSe10():0.0;
  235. temp2=null !=winfo.getSe7()?winfo.getSe7():0.0;
  236. temp3=null !=winfo.getSe10()?winfo.getSe10():0.0;
  237. vo.setName("SE (" + temp1 + "/" + temp2 + ")");
  238. vo.setData1(temp3);
  239. break;
  240. case 7:
  241. temp1=null !=winfo.getSse10()?winfo.getSse10():0.0;
  242. temp2=null !=winfo.getSse7()?winfo.getSse7():0.0;
  243. temp3=null !=winfo.getSse10()?winfo.getSse10():0.0;
  244. vo.setName("SSE (" + temp1 + "/" + temp2 + ")");
  245. vo.setData1(temp3);
  246. break;
  247. case 8:
  248. temp1=null !=winfo.getS10()?winfo.getS10():0.0;
  249. temp2=null !=winfo.getS7()?winfo.getS7():0.0;
  250. temp3=null !=winfo.getS10()?winfo.getS10():0.0;
  251. vo.setName("S (" + temp1 + "/" + temp2 + ")");
  252. vo.setData1(temp3);
  253. break;
  254. case 9:
  255. temp1=null !=winfo.getSsw10()?winfo.getSsw10():0.0;
  256. temp2=null !=winfo.getSsw7()?winfo.getSsw7():0.0;
  257. temp3=null !=winfo.getSsw10()?winfo.getSsw10():0.0;
  258. vo.setName("SSW (" + temp1 + "/" + temp2 + ")");
  259. vo.setData1(temp3);
  260. break;
  261. case 10:
  262. temp1=null !=winfo.getSw10()?winfo.getSw10():0.0;
  263. temp2=null !=winfo.getSw7()?winfo.getSw7():0.0;
  264. temp3=null !=winfo.getSw10()?winfo.getSw10():0.0;
  265. vo.setName("SW (" + temp1 + "/" + temp2 + ")");
  266. vo.setData1(temp3);
  267. break;
  268. case 11:
  269. temp1=null !=winfo.getWsw10()?winfo.getWsw10():0.0;
  270. temp2=null !=winfo.getWsw7()?winfo.getWsw7():0.0;
  271. temp3=null !=winfo.getWsw10()?winfo.getWsw10():0.0;
  272. vo.setName("WSW (" + temp1 + "/" + temp2 + ")");
  273. vo.setData1(temp3);
  274. break;
  275. case 12:
  276. temp1=null !=winfo.getW10()?winfo.getW10():0.0;
  277. temp2=null !=winfo.getW7()?winfo.getW7():0.0;
  278. temp3=null !=winfo.getW10()?winfo.getW10():0.0;
  279. vo.setName("W (" + temp1 + "/" + temp2 + ")");
  280. vo.setData1(temp3);
  281. break;
  282. case 13:
  283. temp1=null !=winfo.getWnw10()?winfo.getWnw10():0.0;
  284. temp2=null !=winfo.getWnw7()?winfo.getWnw7():0.0;
  285. temp3=null !=winfo.getWnw10()?winfo.getWnw10():0.0;
  286. vo.setName("WNW (" + temp1 + "/" + temp2 + ")");
  287. vo.setData1(temp3);
  288. break;
  289. case 14:
  290. temp1=null !=winfo.getNw10()?winfo.getNw10():0.0;
  291. temp2=null !=winfo.getNw7()?winfo.getNw7():0.0;
  292. temp3=null !=winfo.getNw10()?winfo.getNw10():0.0;
  293. vo.setName("NW (" + temp1 + "/" + temp2 + ")");
  294. vo.setData1(temp3);
  295. break;
  296. case 15:
  297. temp1=null !=winfo.getNnw10()?winfo.getNnw10():0.0;
  298. temp2=null !=winfo.getNnw7()?winfo.getNnw7():0.0;
  299. temp3=null !=winfo.getNnw10()?winfo.getNnw10():0.0;
  300. vo.setName("NNW (" + temp1 + "/" + temp2 + ")");
  301. vo.setData1(temp3);
  302. break;
  303. default:
  304. break;
  305. }
  306. vos.add(vo);
  307. }
  308. }
  309. map.put("jfpl", jfplmonth);
  310. map.put("data", vos);
  311. }
  312. return map;
  313. }
  314. public Map<String, Object> wpnfxpl(String wpId, String recorddate) {
  315. Map<String, Object> map = new HashMap<String, Object>();
  316. List<ValueVo> vos = new ArrayList<ValueVo>();
  317. if (StringUtils.notEmp(recorddate) && StringUtils.notEmp(wpId)) {
  318. Date date = DateUtils.parseDate(recorddate);
  319. List<ProEconWpwindDayInfo> wtdls = getWindpowerstationthewindinfo(wpId, date);
  320. if (!wtdls.isEmpty()) {
  321. ProEconWpwindDayInfo winfo = wtdls.get(0);
  322. int cb = (int) winfo.getCb().intValue();
  323. int cd = (int) winfo.getCd().intValue();
  324. int cg = (int) winfo.getCg().intValue();
  325. jfplday = "静风频率为" + cb;
  326. jfplmonth = "静风频率为" + cd;
  327. jfplyear = "静风频率为" + cg;
  328. for (int i = 0; i < 16; i++) {
  329. ValueVo vo = new ValueVo();
  330. double temp1=0.0;
  331. double temp2=0.0;
  332. double temp3=0.0;
  333. switch (i) {
  334. case 0:
  335. temp1=null !=winfo.getN16()?winfo.getN16():0.0;
  336. temp2=null !=winfo.getN13()?winfo.getN13():0.0;
  337. temp3=null !=winfo.getN16()?winfo.getN16():0.0;
  338. vo.setName("N (" + temp1 + "/" + temp2 + ")");
  339. vo.setData1(temp3);
  340. break;
  341. case 1:
  342. temp1=null !=winfo.getNne16()?winfo.getNne16():0.0;
  343. temp2=null !=winfo.getNne13()?winfo.getNne13():0.0;
  344. temp3=null !=winfo.getNne16()?winfo.getNne16():0.0;
  345. vo.setName("NNE (" + temp1 + "/" + temp2 + ")");
  346. vo.setData1(temp3);
  347. break;
  348. case 2:
  349. temp1=null !=winfo.getNe16()?winfo.getNe16():0.0;
  350. temp2=null !=winfo.getNe13()?winfo.getNe13():0.0;
  351. temp3=null !=winfo.getNe16()?winfo.getNe16():0.0;
  352. vo.setName("NE (" + temp1 + "/" + temp2 + ")");
  353. vo.setData1(temp3);
  354. break;
  355. case 3:
  356. temp1=null !=winfo.getEne16()?winfo.getEne16():0.0;
  357. temp2=null !=winfo.getEne13()?winfo.getEne13():0.0;
  358. temp3=null !=winfo.getEne16()?winfo.getEne16():0.0;
  359. vo.setName("ENE (" + temp1 + "/" + temp2 + ")");
  360. vo.setData1(temp3);
  361. break;
  362. case 4:
  363. temp1=null !=winfo.getE16()?winfo.getE16():0.0;
  364. temp2=null !=winfo.getE13()?winfo.getE13():0.0;
  365. temp3=null !=winfo.getE16()?winfo.getE16():0.0;
  366. vo.setName("E (" + temp1 + "/" + temp2 + ")");
  367. vo.setData1(temp3);
  368. break;
  369. case 5:
  370. temp1=null !=winfo.getEse16()?winfo.getEse16():0.0;
  371. temp2=null !=winfo.getEse13()?winfo.getEse13():0.0;
  372. temp3=null !=winfo.getEse16()?winfo.getEse16():0.0;
  373. vo.setName("ESE (" + temp1 + "/" + temp2 + ")");
  374. vo.setData1(temp3);
  375. break;
  376. case 6:
  377. temp1=null !=winfo.getSe16()?winfo.getSe16():0.0;
  378. temp2=null !=winfo.getSe13()?winfo.getSe13():0.0;
  379. temp3=null !=winfo.getSe16()?winfo.getSe16():0.0;
  380. vo.setName("SE (" + temp1 + "/" + temp2 + ")");
  381. vo.setData1(temp3);
  382. break;
  383. case 7:
  384. temp1=null !=winfo.getSse16()?winfo.getSse16():0.0;
  385. temp2=null !=winfo.getSse13()?winfo.getSse13():0.0;
  386. temp3=null !=winfo.getSse16()?winfo.getSse16():0.0;
  387. vo.setName("SSE (" + temp1 + "/" + temp2 + ")");
  388. vo.setData1(temp3);
  389. break;
  390. case 8:
  391. temp1=null !=winfo.getS16()?winfo.getS16():0.0;
  392. temp2=null !=winfo.getS13()?winfo.getS13():0.0;
  393. temp3=null !=winfo.getS16()?winfo.getS16():0.0;
  394. vo.setName("S (" + temp1 + "/" + temp2 + ")");
  395. vo.setData1(temp3);
  396. break;
  397. case 9:
  398. temp1=null !=winfo.getSsw16()?winfo.getSsw16():0.0;
  399. temp2=null !=winfo.getSsw13()?winfo.getSsw13():0.0;
  400. temp3=null !=winfo.getSsw16()?winfo.getSsw16():0.0;
  401. vo.setName("SSW (" + temp1 + "/" + temp2 + ")");
  402. vo.setData1(temp3);
  403. break;
  404. case 10:
  405. temp1=null !=winfo.getSw16()?winfo.getSw16():0.0;
  406. temp2=null !=winfo.getSw13()?winfo.getSw13():0.0;
  407. temp3=null !=winfo.getSw16()?winfo.getSw16():0.0;
  408. vo.setName("SW (" + temp1 + "/" + temp2 + ")");
  409. vo.setData1(temp3);
  410. break;
  411. case 11:
  412. temp1=null !=winfo.getWsw16()?winfo.getWsw16():0.0;
  413. temp2=null !=winfo.getWsw13()?winfo.getWsw13():0.0;
  414. temp3=null !=winfo.getWsw16()?winfo.getWsw16():0.0;
  415. vo.setName("WSW (" + temp1 + "/" + temp2 + ")");
  416. vo.setData1(temp3);
  417. break;
  418. case 12:
  419. temp1=null !=winfo.getW16()?winfo.getW16():0.0;
  420. temp2=null !=winfo.getW13()?winfo.getW13():0.0;
  421. temp3=null !=winfo.getW16()?winfo.getW16():0.0;
  422. vo.setName("W (" + temp1 + "/" + temp2 + ")");
  423. vo.setData1(temp3);
  424. break;
  425. case 13:
  426. temp1=null !=winfo.getWnw16()?winfo.getWnw16():0.0;
  427. temp2=null !=winfo.getWnw13()?winfo.getWnw13():0.0;
  428. temp3=null !=winfo.getWnw16()?winfo.getWnw16():0.0;
  429. vo.setName("WNW (" + temp1 + "/" + temp2 + ")");
  430. vo.setData1(temp3);
  431. break;
  432. case 14:
  433. temp1=null !=winfo.getNw16()?winfo.getNw16():0.0;
  434. temp2=null !=winfo.getNw13()?winfo.getNw13():0.0;
  435. temp3=null !=winfo.getNw16()?winfo.getNw16():0.0;
  436. vo.setName("NW (" + temp1 + "/" + temp2 + ")");
  437. vo.setData1(temp3);
  438. break;
  439. case 15:
  440. temp1=null !=winfo.getNnw16()?winfo.getNnw16():0.0;
  441. temp2=null !=winfo.getNnw13()?winfo.getNnw13():0.0;
  442. temp3=null !=winfo.getNnw16()?winfo.getNnw16():0.0;
  443. vo.setName("NNW (" + temp1 + "/" + temp2 + ")");
  444. vo.setData1(temp3);
  445. break;
  446. default:
  447. break;
  448. }
  449. vos.add(vo);
  450. }
  451. }
  452. map.put("jfpl", jfplyear);
  453. map.put("data", vos);
  454. }
  455. return map;
  456. }
  457. public Map<String, Object> wprzdfs(String wpId, String recorddate) {
  458. Map<String, Object> map = new HashMap<String, Object>();
  459. List<ValueVo> vos = new ArrayList<ValueVo>();
  460. if (StringUtils.notEmp(recorddate) && StringUtils.notEmp(wpId)) {
  461. Date date = DateUtils.parseDate(recorddate);
  462. List<ProEconWpwindDayInfo> wtdls = getWindpowerstationthewindinfo(wpId, date);
  463. if (!wtdls.isEmpty()) {
  464. ProEconWpwindDayInfo winfo = wtdls.get(0);
  465. int cb = (int) winfo.getCb().intValue();
  466. int cd = (int) winfo.getCd().intValue();
  467. int cg = (int) winfo.getCg().intValue();
  468. jfplday = "静风频率为" + cb;
  469. jfplmonth = "静风频率为" + cd;
  470. jfplyear = "静风频率为" + cg;
  471. for (int i = 0; i < 16; i++) {
  472. ValueVo vo = new ValueVo();
  473. double temp1 = 0.0;
  474. double temp2 = 0.0;
  475. double temp3 = 0.0;
  476. switch (i) {
  477. case 0:
  478. temp1 = null != winfo.getN4() ? winfo.getN4() : 0.0;
  479. temp2 = null != winfo.getN() ? winfo.getN() : 0.0;
  480. temp3 = null != winfo.getN2() ? winfo.getN2() : 0.0;
  481. vo.setName("N (" + temp1 + "/" + temp2 + ")");
  482. vo.setData1(temp3);
  483. // vo.setName("N(" + winfo.getN4() + "/" + winfo.getN() + ")");
  484. //
  485. // vo.setData1(winfo.getN2());
  486. break;
  487. case 1:
  488. temp1 = null != winfo.getNne4() ? winfo.getNne4() : 0.0;
  489. temp2 = null != winfo.getNne() ? winfo.getNne() : 0.0;
  490. temp3 = null != winfo.getNne2() ? winfo.getNne2() : 0.0;
  491. vo.setName("NNE (" + temp1 + "/" + temp2 + ")");
  492. vo.setData1(temp3);
  493. // vo.setName("NNE(" + winfo.getNne4() + "/" + winfo.getNne() + ")");
  494. //
  495. // vo.setData1(winfo.getNne2());
  496. break;
  497. case 2:
  498. temp1 = null != winfo.getNe4() ? winfo.getNe4() : 0.0;
  499. temp2 = null != winfo.getNe() ? winfo.getNe() : 0.0;
  500. temp3 = null != winfo.getNe2() ? winfo.getNe2() : 0.0;
  501. vo.setName("NE (" + temp1 + "/" + temp2 + ")");
  502. vo.setData1(temp3);
  503. // vo.setName("NE(" + winfo.getNe4() + "/" + winfo.getNe() + ")");
  504. //
  505. // vo.setData1(winfo.getNe2());
  506. break;
  507. case 3:
  508. temp1 = null != winfo.getEne4() ? winfo.getEne4() : 0.0;
  509. temp2 = null != winfo.getEne() ? winfo.getEne() : 0.0;
  510. temp3 = null != winfo.getEne2() ? winfo.getEne2() : 0.0;
  511. vo.setName("ENE (" + temp1 + "/" + temp2 + ")");
  512. vo.setData1(temp3);
  513. // vo.setName("ENE(" + winfo.getEne4() + "/" + winfo.getEne() + ")");
  514. //
  515. // vo.setData1(winfo.getEne2());
  516. break;
  517. case 4:
  518. temp1 = null != winfo.getE4() ? winfo.getE4() : 0.0;
  519. temp2 = null != winfo.getE() ? winfo.getE() : 0.0;
  520. temp3 = null != winfo.getE2() ? winfo.getE2() : 0.0;
  521. vo.setName("E (" + temp1 + "/" + temp2 + ")");
  522. vo.setData1(temp3);
  523. //vo.setName("E(" + winfo.getE4() + "/" + winfo.getE() + ")");
  524. break;
  525. case 5:
  526. temp1 = null != winfo.getEse4() ? winfo.getEse4() : 0.0;
  527. temp2 = null != winfo.getEse() ? winfo.getEse() : 0.0;
  528. temp3 = null != winfo.getEse2() ? winfo.getEse2() : 0.0;
  529. vo.setName("ESE (" + temp1 + "/" + temp2 + ")");
  530. //vo.setName("ESE(" + winfo.getEse4() + "/" + winfo.getEse() + ")");
  531. vo.setData1(temp3);
  532. break;
  533. case 6:
  534. temp1 = null != winfo.getSe4() ? winfo.getSe4() : 0.0;
  535. temp2 = null != winfo.getSe() ? winfo.getSe() : 0.0;
  536. temp3 = null != winfo.getSe2() ? winfo.getSe2() : 0.0;
  537. vo.setName("SE (" + temp1 + "/" + temp2 + ")");
  538. //vo.setName("SE(" + winfo.getSe4() + "/" + winfo.getSe() + ")");
  539. vo.setData1(temp3);
  540. break;
  541. case 7:
  542. temp1 = null != winfo.getSse4() ? winfo.getSse4() : 0.0;
  543. temp2 = null != winfo.getSse() ? winfo.getSse() : 0.0;
  544. temp3 = null != winfo.getSse2() ? winfo.getSse2() : 0.0;
  545. vo.setName("SSE (" + temp1 + "/" + temp2 + ")");
  546. // vo.setName("SSE(" + winfo.getSse4() + "/" + winfo.getSse() + ")");
  547. vo.setData1(temp3);
  548. break;
  549. case 8:
  550. temp1 = null != winfo.getS4() ? winfo.getS4() : 0.0;
  551. temp2 = null != winfo.getS() ? winfo.getS() : 0.0;
  552. temp3 = null != winfo.getS2() ? winfo.getS2() : 0.0;
  553. vo.setName("S (" + temp1 + "/" + temp2 + ")");
  554. //vo.setName("S(" + winfo.getS4() + "/" + winfo.getS() + ")");
  555. vo.setData1(temp3);
  556. break;
  557. case 9:
  558. temp1 = null != winfo.getSsw4() ? winfo.getSsw4() : 0.0;
  559. temp2 = null != winfo.getSsw() ? winfo.getSsw() : 0.0;
  560. temp3 = null != winfo.getSsw2() ? winfo.getSsw2() : 0.0;
  561. vo.setName("SSW (" + temp1 + "/" + temp2 + ")");
  562. vo.setData1(temp3);
  563. // vo.setName("SSW(" + winfo.getSsw4() + "/" + winfo.getSsw() + ")");
  564. // vo.setData1(winfo.getSsw2());
  565. break;
  566. case 10:
  567. temp1 = null != winfo.getSw4() ? winfo.getSw4() : 0.0;
  568. temp2 = null != winfo.getSw() ? winfo.getSw() : 0.0;
  569. temp3 = null != winfo.getSw2() ? winfo.getSw2() : 0.0;
  570. vo.setName("SW (" + temp1 + "/" + temp2 + ")");
  571. vo.setData1(temp3);
  572. // vo.setName("SW(" + winfo.getSw4() + "/" + winfo.getSw() + ")");
  573. //
  574. // vo.setData1(winfo.getSw2());
  575. break;
  576. case 11:
  577. temp1 = null != winfo.getWsw4() ? winfo.getWsw4() : 0.0;
  578. temp2 = null != winfo.getWsw() ? winfo.getWsw() : 0.0;
  579. temp3 = null != winfo.getWsw2() ? winfo.getWsw2() : 0.0;
  580. vo.setName("WSW (" + temp1 + "/" + temp2 + ")");
  581. vo.setData1(temp3);
  582. // vo.setName("WSW(" + winfo.getWsw4() + "/" + winfo.getWsw() + ")");
  583. //
  584. // vo.setData1(winfo.getWsw2());
  585. break;
  586. case 12:
  587. temp1 = null != winfo.getW4() ? winfo.getW4() : 0.0;
  588. temp2 = null != winfo.getW() ? winfo.getW() : 0.0;
  589. temp3 = null != winfo.getW2() ? winfo.getW2() : 0.0;
  590. vo.setName("W (" + temp1 + "/" + temp2 + ")");
  591. vo.setData1(temp3);
  592. // vo.setName("W(" + winfo.getW4() + "/" + winfo.getW() + ")");
  593. //
  594. // vo.setData1(winfo.getW2());
  595. break;
  596. case 13:
  597. temp1 = null != winfo.getWnw4() ? winfo.getWnw4() : 0.0;
  598. temp2 = null != winfo.getWnw() ? winfo.getWnw() : 0.0;
  599. temp3 = null != winfo.getWnw2() ? winfo.getWnw2() : 0.0;
  600. vo.setName("WNW (" + temp1 + "/" + temp2 + ")");
  601. vo.setData1(temp3);
  602. // vo.setName("WNW(" + winfo.getWnw4() + "/" + winfo.getWnw() + ")");
  603. //
  604. // vo.setData1(winfo.getWnw2());
  605. break;
  606. case 14:
  607. temp1 = null != winfo.getNw4() ? winfo.getNw4() : 0.0;
  608. temp2 = null != winfo.getNw() ? winfo.getNw() : 0.0;
  609. temp3 = null != winfo.getNw2() ? winfo.getNw2() : 0.0;
  610. vo.setName("NW (" + temp1 + "/" + temp2 + ")");
  611. vo.setData1(temp3);
  612. // vo.setName("NW(" + winfo.getNw4() + "/" + winfo.getNw() + ")");
  613. //
  614. // vo.setData1(winfo.getNw2());
  615. break;
  616. case 15:
  617. temp1 = null != winfo.getNnw4() ? winfo.getNnw4() : 0.0;
  618. temp2 = null != winfo.getNnw() ? winfo.getNnw() : 0.0;
  619. temp3 = null != winfo.getNnw2() ? winfo.getNnw2() : 0.0;
  620. vo.setName("NNW (" + temp1 + "/" + temp2 + ")");
  621. vo.setData1(temp3);
  622. // vo.setName("NNW(" + winfo.getNnw4() + "/" + winfo.getNnw() + ")");
  623. //
  624. // vo.setData1(winfo.getNnw2());
  625. break;
  626. default:
  627. break;
  628. }
  629. vos.add(vo);
  630. }
  631. }
  632. }
  633. map.put("jfpl", jfplday);
  634. map.put("data", vos);
  635. return map;
  636. }
  637. public Map<String, Object> wpyzdfs(String wpId, String recorddate) {
  638. Map<String, Object> map = new HashMap<String, Object>();
  639. List<ValueVo> vos = new ArrayList<ValueVo>();
  640. if (StringUtils.notEmp(recorddate) && StringUtils.notEmp(wpId)) {
  641. Date date = DateUtils.parseDate(recorddate);
  642. List<ProEconWpwindDayInfo> wtdls =getWindpowerstationthewindinfo(wpId, date);
  643. if (!wtdls.isEmpty()) {
  644. ProEconWpwindDayInfo winfo = wtdls.get(0);
  645. int cb = (int) winfo.getCb().intValue();
  646. int cd = (int) winfo.getCd().intValue();
  647. int cg = (int) winfo.getCg().intValue();
  648. jfplday = "静风频率为" + cb;
  649. jfplmonth = "静风频率为" + cd;
  650. jfplyear = "静风频率为" + cg;
  651. for (int i = 0; i < 16; i++) {
  652. ValueVo vo = new ValueVo();
  653. double temp1 = 0.0;
  654. double temp2 = 0.0;
  655. double temp3 = 0.0;
  656. switch (i) {
  657. case 0:
  658. temp1 = null != winfo.getN10() ? winfo.getN10() : 0.0;
  659. temp2 = null != winfo.getN7() ? winfo.getN7() : 0.0;
  660. temp3 = null != winfo.getN8() ? winfo.getN8() : 0.0;
  661. vo.setName("N (" + temp1 + "/" + temp2 + ")");
  662. vo.setData1(temp3);
  663. break;
  664. case 1:
  665. temp1 = null != winfo.getNne10() ? winfo.getNne10() : 0.0;
  666. temp2 = null != winfo.getNne7() ? winfo.getNne7() : 0.0;
  667. temp3 = null != winfo.getNne8() ? winfo.getNne8() : 0.0;
  668. vo.setName("NNE (" + temp1 + "/" + temp2 + ")");
  669. vo.setData1(temp3);
  670. break;
  671. case 2:
  672. temp1 = null != winfo.getNe10() ? winfo.getNe10() : 0.0;
  673. temp2 = null != winfo.getNe7() ? winfo.getNe7() : 0.0;
  674. temp3 = null != winfo.getNe8() ? winfo.getNe8() : 0.0;
  675. vo.setName("NE (" + temp1 + "/" + temp2 + ")");
  676. vo.setData1(temp3);
  677. break;
  678. case 3:
  679. temp1 = null != winfo.getEne10() ? winfo.getEne10() : 0.0;
  680. temp2 = null != winfo.getEne7() ? winfo.getEne7() : 0.0;
  681. temp3 = null != winfo.getEne8() ? winfo.getEne8() : 0.0;
  682. vo.setName("ENE (" + temp1 + "/" + temp2 + ")");
  683. vo.setData1(temp3);
  684. break;
  685. case 4:
  686. temp1 = null != winfo.getE10() ? winfo.getE10() : 0.0;
  687. temp2 = null != winfo.getE7() ? winfo.getE7() : 0.0;
  688. temp3 = null != winfo.getE8() ? winfo.getE8() : 0.0;
  689. vo.setName("E (" + temp1 + "/" + temp2 + ")");
  690. vo.setData1(temp3);
  691. break;
  692. case 5:
  693. temp1 = null != winfo.getEse10() ? winfo.getEse10() : 0.0;
  694. temp2 = null != winfo.getEse7() ? winfo.getEse7() : 0.0;
  695. temp3 = null != winfo.getEse8() ? winfo.getEse8() : 0.0;
  696. vo.setName("ESE (" + temp1 + "/" + temp2 + ")");
  697. vo.setData1(temp3);
  698. break;
  699. case 6:
  700. temp1 = null != winfo.getSe10() ? winfo.getSe10() : 0.0;
  701. temp2 = null != winfo.getSe7() ? winfo.getSe7() : 0.0;
  702. temp3 = null != winfo.getSe8() ? winfo.getSe8() : 0.0;
  703. vo.setName("SE (" + temp1 + "/" + temp2 + ")");
  704. vo.setData1(temp3);
  705. break;
  706. case 7:
  707. temp1 = null != winfo.getSse10() ? winfo.getSse10() : 0.0;
  708. temp2 = null != winfo.getSse7() ? winfo.getSse7() : 0.0;
  709. temp3 = null != winfo.getSse8() ? winfo.getSse8() : 0.0;
  710. vo.setName("SSE (" + temp1 + "/" + temp2 + ")");
  711. vo.setData1(temp3);
  712. break;
  713. case 8:
  714. temp1 = null != winfo.getS10() ? winfo.getS10() : 0.0;
  715. temp2 = null != winfo.getS7() ? winfo.getS7() : 0.0;
  716. temp3 = null != winfo.getS8() ? winfo.getS8() : 0.0;
  717. vo.setName("S (" + temp1 + "/" + temp2 + ")");
  718. vo.setData1(temp3);
  719. break;
  720. case 9:
  721. temp1 = null != winfo.getSsw10() ? winfo.getSsw10() : 0.0;
  722. temp2 = null != winfo.getSsw7() ? winfo.getSsw7() : 0.0;
  723. temp3 = null != winfo.getSsw8() ? winfo.getSsw8() : 0.0;
  724. vo.setName("SSW (" + temp1 + "/" + temp2 + ")");
  725. vo.setData1(temp3);
  726. break;
  727. case 10:
  728. temp1 = null != winfo.getSw10() ? winfo.getSw10() : 0.0;
  729. temp2 = null != winfo.getSw7() ? winfo.getSw7() : 0.0;
  730. temp3 = null != winfo.getSw8() ? winfo.getSw8() : 0.0;
  731. vo.setName("SW (" + temp1 + "/" + temp2 + ")");
  732. vo.setData1(temp3);
  733. break;
  734. case 11:
  735. temp1 = null != winfo.getWsw10() ? winfo.getWsw10() : 0.0;
  736. temp2 = null != winfo.getWsw7() ? winfo.getWsw7() : 0.0;
  737. temp3 = null != winfo.getWsw8() ? winfo.getWsw8() : 0.0;
  738. vo.setName("WSW (" + temp1 + "/" + temp2 + ")");
  739. vo.setData1(temp3);
  740. break;
  741. case 12:
  742. temp1 = null != winfo.getW10() ? winfo.getW10() : 0.0;
  743. temp2 = null != winfo.getW7() ? winfo.getW7() : 0.0;
  744. temp3 = null != winfo.getW8() ? winfo.getW8() : 0.0;
  745. vo.setName("W (" + temp1 + "/" + temp2 + ")");
  746. vo.setData1(temp3);
  747. break;
  748. case 13:
  749. temp1 = null != winfo.getWnw10() ? winfo.getWnw10() : 0.0;
  750. temp2 = null != winfo.getWnw7() ? winfo.getWnw7() : 0.0;
  751. temp3 = null != winfo.getWnw8() ? winfo.getWnw8() : 0.0;
  752. vo.setName("WNW (" + temp1 + "/" + temp2 + ")");
  753. vo.setData1(temp3);
  754. break;
  755. case 14:
  756. temp1 = null != winfo.getNw10() ? winfo.getNw10() : 0.0;
  757. temp2 = null != winfo.getNw7() ? winfo.getNw7() : 0.0;
  758. temp3 = null != winfo.getNw8() ? winfo.getNw8() : 0.0;
  759. vo.setName("NW (" + temp1 + "/" + temp2 + ")");
  760. vo.setData1(temp3);
  761. break;
  762. case 15:
  763. temp1 = null != winfo.getNnw10() ? winfo.getNnw10() : 0.0;
  764. temp2 = null != winfo.getNnw7() ? winfo.getNnw7() : 0.0;
  765. temp3 = null != winfo.getNnw8() ? winfo.getNnw8() : 0.0;
  766. vo.setName("NNW (" + temp1 + "/" + temp2 + ")");
  767. vo.setData1(temp3);
  768. break;
  769. default:
  770. break;
  771. }
  772. vos.add(vo);
  773. }
  774. }
  775. map.put("jfpl", jfplmonth);
  776. map.put("data", vos);
  777. }
  778. return map;
  779. }
  780. public Map<String, Object> wpnzdfs(String wpId, String recorddate) {
  781. Map<String, Object> map = new HashMap<String, Object>();
  782. List<ValueVo> vos = new ArrayList<ValueVo>();
  783. if (StringUtils.notEmp(recorddate) && StringUtils.notEmp(wpId)) {
  784. Date date = DateUtils.parseDate(recorddate);
  785. List<ProEconWpwindDayInfo> wtdls =getWindpowerstationthewindinfo(wpId, date);
  786. if (!wtdls.isEmpty()) {
  787. ProEconWpwindDayInfo winfo = wtdls.get(0);
  788. int cb = (int) winfo.getCb().intValue();
  789. int cd = (int) winfo.getCd().intValue();
  790. int cg = (int) winfo.getCg().intValue();
  791. jfplday = "静风频率为" + cb;
  792. jfplmonth = "静风频率为" + cd;
  793. jfplyear = "静风频率为" + cg;
  794. for (int i = 0; i < 16; i++) {
  795. ValueVo vo = new ValueVo();
  796. double temp1 = 0.0;
  797. double temp2 = 0.0;
  798. double temp3 = 0.0;
  799. switch (i) {
  800. case 0:
  801. temp1 = null != winfo.getN16() ? winfo.getN16() : 0.0;
  802. temp2 = null != winfo.getN13() ? winfo.getN13() : 0.0;
  803. temp3 = null != winfo.getN14() ? winfo.getN14() : 0.0;
  804. vo.setName("N (" + temp1 + "/" + temp2 + ")");
  805. vo.setData1(temp3);
  806. break;
  807. case 1:
  808. temp1 = null != winfo.getNne16() ? winfo.getNne16() : 0.0;
  809. temp2 = null != winfo.getNne13() ? winfo.getNne13() : 0.0;
  810. temp3 = null != winfo.getNne14() ? winfo.getNne14() : 0.0;
  811. vo.setName("NNE (" + temp1 + "/" + temp2 + ")");
  812. vo.setData1(temp3);
  813. break;
  814. case 2:
  815. temp1 = null != winfo.getNe16() ? winfo.getNe16() : 0.0;
  816. temp2 = null != winfo.getNe13() ? winfo.getNe13() : 0.0;
  817. temp3 = null != winfo.getNe14() ? winfo.getNe14() : 0.0;
  818. vo.setName("NE (" + temp1 + "/" + temp2 + ")");
  819. vo.setData1(temp3);
  820. break;
  821. case 3:
  822. temp1 = null != winfo.getEne16() ? winfo.getEne16() : 0.0;
  823. temp2 = null != winfo.getEne13() ? winfo.getEne13() : 0.0;
  824. temp3 = null != winfo.getEne14() ? winfo.getEne14() : 0.0;
  825. vo.setName("ENE (" + temp1 + "/" + temp2 + ")");
  826. vo.setData1(temp3);
  827. break;
  828. case 4:
  829. temp1 = null != winfo.getE16() ? winfo.getE16() : 0.0;
  830. temp2 = null != winfo.getE13() ? winfo.getE13() : 0.0;
  831. temp3 = null != winfo.getE14() ? winfo.getE14() : 0.0;
  832. vo.setName("E (" + temp1 + "/" + temp2 + ")");
  833. vo.setData1(temp3);
  834. break;
  835. case 5:
  836. temp1 = null != winfo.getEse16() ? winfo.getEse16() : 0.0;
  837. temp2 = null != winfo.getEse13() ? winfo.getEse13() : 0.0;
  838. temp3 = null != winfo.getEse14() ? winfo.getEse14() : 0.0;
  839. vo.setName("ESE (" + temp1 + "/" + temp2 + ")");
  840. vo.setData1(temp3);
  841. break;
  842. case 6:
  843. temp1 = null != winfo.getSe16() ? winfo.getSe16() : 0.0;
  844. temp2 = null != winfo.getSe13() ? winfo.getSe13() : 0.0;
  845. temp3 = null != winfo.getSe14() ? winfo.getSe14() : 0.0;
  846. vo.setName("SE (" + temp1 + "/" + temp2 + ")");
  847. vo.setData1(temp3);
  848. break;
  849. case 7:
  850. temp1 = null != winfo.getSse16() ? winfo.getSse16() : 0.0;
  851. temp2 = null != winfo.getSse13() ? winfo.getSse13() : 0.0;
  852. temp3 = null != winfo.getSse14() ? winfo.getSse14() : 0.0;
  853. vo.setName("SSE (" + temp1 + "/" + temp2 + ")");
  854. vo.setData1(temp3);
  855. break;
  856. case 8:
  857. temp1 = null != winfo.getS16() ? winfo.getS16() : 0.0;
  858. temp2 = null != winfo.getS13() ? winfo.getS13() : 0.0;
  859. temp3 = null != winfo.getS14() ? winfo.getS14() : 0.0;
  860. vo.setName("S (" + temp1 + "/" + temp2 + ")");
  861. vo.setData1(temp3);
  862. break;
  863. case 9:
  864. temp1 = null != winfo.getSsw16() ? winfo.getSsw16() : 0.0;
  865. temp2 = null != winfo.getSsw13() ? winfo.getSsw13() : 0.0;
  866. temp3 = null != winfo.getSsw14() ? winfo.getSsw14() : 0.0;
  867. vo.setName("SSW (" + temp1 + "/" + temp2 + ")");
  868. vo.setData1(temp3);
  869. break;
  870. case 10:
  871. temp1 = null != winfo.getSw16() ? winfo.getSw16() : 0.0;
  872. temp2 = null != winfo.getSw13() ? winfo.getSw13() : 0.0;
  873. temp3 = null != winfo.getSw14() ? winfo.getSw14() : 0.0;
  874. vo.setName("SW (" + temp1 + "/" + temp2 + ")");
  875. vo.setData1(temp3);
  876. break;
  877. case 11:
  878. temp1 = null != winfo.getWsw16() ? winfo.getWsw16() : 0.0;
  879. temp2 = null != winfo.getWsw13() ? winfo.getWsw13() : 0.0;
  880. temp3 = null != winfo.getWsw14() ? winfo.getWsw14() : 0.0;
  881. vo.setName("WSW (" + temp1 + "/" + temp2 + ")");
  882. vo.setData1(temp3);
  883. break;
  884. case 12:
  885. temp1 = null != winfo.getW16() ? winfo.getW16() : 0.0;
  886. temp2 = null != winfo.getW13() ? winfo.getW13() : 0.0;
  887. temp3 = null != winfo.getW14() ? winfo.getW14() : 0.0;
  888. vo.setName("W (" + temp1 + "/" + temp2 + ")");
  889. vo.setData1(temp3);
  890. break;
  891. case 13:
  892. temp1 = null != winfo.getWnw16() ? winfo.getWnw16() : 0.0;
  893. temp2 = null != winfo.getWnw13() ? winfo.getWnw13() : 0.0;
  894. temp3 = null != winfo.getWnw14() ? winfo.getWnw14() : 0.0;
  895. vo.setName("WNW (" + temp1 + "/" + temp2 + ")");
  896. vo.setData1(temp3);
  897. break;
  898. case 14:
  899. temp1 = null != winfo.getNw16() ? winfo.getNw16() : 0.0;
  900. temp2 = null != winfo.getNw13() ? winfo.getNw13() : 0.0;
  901. temp3 = null != winfo.getNw14() ? winfo.getNw14() : 0.0;
  902. vo.setName("NW (" + temp1 + "/" + temp2 + ")");
  903. vo.setData1(temp3);
  904. break;
  905. case 15:
  906. temp1 = null != winfo.getNnw16() ? winfo.getNnw16() : 0.0;
  907. temp2 = null != winfo.getNnw13() ? winfo.getNnw13() : 0.0;
  908. temp3 = null != winfo.getNnw14() ? winfo.getNnw14() : 0.0;
  909. vo.setName("NNW (" + temp1 + "/" + temp2 + ")");
  910. vo.setData1(temp3);
  911. break;
  912. default:
  913. break;
  914. }
  915. vos.add(vo);
  916. }
  917. }
  918. map.put("jfpl", jfplyear);
  919. map.put("data", vos);
  920. }
  921. return map;
  922. }
  923. }