|
@@ -10,6 +10,7 @@ import com.gyee.frame.model.auto.Windpowerstationpointnew;
|
|
|
import com.gyee.frame.model.custom.DNAVal;
|
|
|
import com.gyee.frame.model.custom.EBAPerSisVo;
|
|
|
import com.gyee.frame.service.WindpowerstationPGService;
|
|
|
+import com.gyee.frame.util.DoubleUtils;
|
|
|
import com.gyee.frame.util.IRealTimeDataBaseUtil;
|
|
|
import com.gyee.frame.util.RealTimeDataBaseFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -33,7 +34,7 @@ public class EBApersisService {
|
|
|
private WindpowerstationPGService windpowerstationPGService;
|
|
|
|
|
|
|
|
|
- public List<EBAPerSisVo> getElePerAnalysisList(String companyid, String regionid, String station, Date beginDate, Date endDate) throws Exception {
|
|
|
+ public List<EBAPerSisVo> getEBApersisList(String companyid, String regionid, String station, Date beginDate, Date endDate) throws Exception {
|
|
|
|
|
|
if(endDate.getTime()>new Date().getTime()){
|
|
|
endDate = new Date();
|
|
@@ -50,6 +51,13 @@ public class EBApersisService {
|
|
|
EBAPerSisVo vo = new EBAPerSisVo();
|
|
|
Map<String, Windpowerstationpointnew> stringMapMap = InitialRunner.wpPointmap.get(wp.getId());
|
|
|
|
|
|
+ if (null == stringMapMap || stringMapMap.size() <= 0
|
|
|
+ || null == stringMapMap.get("YPJFS").getCode() || null == stringMapMap.get("YFDL")
|
|
|
+ || null == stringMapMap.get("GZSSDL") || null == stringMapMap.get("WHSSDL")
|
|
|
+ || null == stringMapMap.get("XNSSDL") || null == stringMapMap.get("XDSSDL")
|
|
|
+ || null == stringMapMap.get("SLSSDL") || null == stringMapMap.get("FNLYL")) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
String[] points = {stringMapMap.get("YPJFS").getCode(),
|
|
|
stringMapMap.get("YFDL").getCode(),
|
|
|
stringMapMap.get("GZSSDL").getCode(),
|
|
@@ -57,7 +65,7 @@ public class EBApersisService {
|
|
|
stringMapMap.get("XNSSDL").getCode(),
|
|
|
stringMapMap.get("XDSSDL").getCode(),
|
|
|
stringMapMap.get("SLSSDL").getCode(),
|
|
|
- stringMapMap.get("YPJFS").getCode() };
|
|
|
+ stringMapMap.get("FNLYL").getCode()};
|
|
|
|
|
|
DNAVal[] jkvalues = realApiUtil.getHistMatrix(points, newend);
|
|
|
vo.setStation(wp.getId());
|
|
@@ -69,7 +77,7 @@ public class EBApersisService {
|
|
|
vo.setXnssdl(jkvalues[4].DValue); //性能损失电量
|
|
|
vo.setXdssdl(jkvalues[5].DValue); //限电损失电量
|
|
|
vo.setSlssdl(jkvalues[6].DValue);//受累损失电量
|
|
|
- vo.setFnlyl(jkvalues[7].DValue);//风能利用率
|
|
|
+ vo.setFnlyl(DoubleUtils.keepPrecision(jkvalues[7].DValue,4));//风能利用率
|
|
|
vos.add(vo);
|
|
|
}
|
|
|
|