|
@@ -4,6 +4,7 @@ package com.gyee.frame.service.peranalysis;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.TypeReference;
|
|
import com.alibaba.fastjson.TypeReference;
|
|
import com.gyee.frame.common.cache.IGlobalCache;
|
|
import com.gyee.frame.common.cache.IGlobalCache;
|
|
|
|
+import com.gyee.frame.common.spring.InitialRunner;
|
|
import com.gyee.frame.model.auto.WindpowerstationPG;
|
|
import com.gyee.frame.model.auto.WindpowerstationPG;
|
|
import com.gyee.frame.model.auto.Windpowerstationpointnew;
|
|
import com.gyee.frame.model.auto.Windpowerstationpointnew;
|
|
import com.gyee.frame.model.custom.DNAVal;
|
|
import com.gyee.frame.model.custom.DNAVal;
|
|
@@ -47,9 +48,7 @@ public class EBApersisService {
|
|
List<WindpowerstationPG> list = windpowerstationPGService.findWindpowerstationPG(companyid, regionid, station);
|
|
List<WindpowerstationPG> list = windpowerstationPGService.findWindpowerstationPG(companyid, regionid, station);
|
|
for (WindpowerstationPG wp : list) {
|
|
for (WindpowerstationPG wp : list) {
|
|
EBAPerSisVo vo = new EBAPerSisVo();
|
|
EBAPerSisVo vo = new EBAPerSisVo();
|
|
- String wpString = JSONObject.toJSONString(globalCache.get(wp.getId()));
|
|
|
|
- Map<String, Windpowerstationpointnew> stringMapMap = JSONObject.parseObject(wpString, new TypeReference<Map<String, Windpowerstationpointnew>>() {
|
|
|
|
- });
|
|
|
|
|
|
+ Map<String, Windpowerstationpointnew> stringMapMap = InitialRunner.wpPointmap.get(wp.getId());
|
|
|
|
|
|
String[] points = {stringMapMap.get("YPJFS").getCode(),
|
|
String[] points = {stringMapMap.get("YPJFS").getCode(),
|
|
stringMapMap.get("YFDL").getCode(),
|
|
stringMapMap.get("YFDL").getCode(),
|