|
@@ -7,6 +7,7 @@ package com.gyee.generation.service.realtimelibrary;
|
|
|
import com.gyee.common.contant.ContantXk;
|
|
|
import com.gyee.common.model.PointData;
|
|
|
import com.gyee.common.util.DateUtils;
|
|
|
+import com.gyee.common.util.DoubleUtils;
|
|
|
import com.gyee.common.util.algorithm.Underdelivery;
|
|
|
import com.gyee.generation.init.CacheContext;
|
|
|
import com.gyee.generation.model.auto.*;
|
|
@@ -98,8 +99,9 @@ public class RealtimeService {
|
|
|
}
|
|
|
wtResultList.add(ssbfPointDate);
|
|
|
if (theoreticalPowerMap.containsKey(wt.getModelId())){
|
|
|
- if (theoreticalPowerMap.get(wt.getModelId()).containsKey(ssbf)){
|
|
|
- ProBasicModelPowerRd basicModelPowerRd = theoreticalPowerMap.get(wt.getModelId()).get(ssbf);
|
|
|
+ double v = DoubleUtils.keepPrecision(ssbf, 2);
|
|
|
+ if (theoreticalPowerMap.get(wt.getModelId()).containsKey(v)){
|
|
|
+ ProBasicModelPowerRd basicModelPowerRd = theoreticalPowerMap.get(wt.getModelId()).get(v);
|
|
|
wtResultList.add(PointUtil.createPointData(currentDate, basicModelPowerRd.getTheoryPower(), llglPoint.getNemCode(), llglPoint.getName()));
|
|
|
wtResultList.add(PointUtil.createPointData(currentDate, basicModelPowerRd.getEnsurePower(), bzglPoint.getNemCode(), bzglPoint.getName()));
|
|
|
}else {
|