|
@@ -12,6 +12,7 @@ import com.gyee.power.fitting.model.custom.TsDoubleData;
|
|
|
import com.gyee.power.fitting.service.ProBasicEquipmentPointService;
|
|
|
import com.gyee.power.fitting.service.ProBasicEquipmentService;
|
|
|
import com.gyee.power.fitting.service.ProEconEquipmentmodelService;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@@ -81,11 +82,13 @@ public class InverterAnalysis2 {
|
|
|
Map<String, Double> dxfdsData = new HashMap<>();
|
|
|
double dxfdsSum = 0;//等效发电时之和
|
|
|
TsDoubleData endData, startData;
|
|
|
- String ims;
|
|
|
+ String ims, p;
|
|
|
double dxfds;
|
|
|
for (String s : inverterIds) {
|
|
|
- endData = endSection.get(s);
|
|
|
- startData = startSection.get(s);
|
|
|
+ p = epMap.get(s);
|
|
|
+ if (StringUtils.isEmpty(p)) continue;
|
|
|
+ endData = endSection.get(p);
|
|
|
+ startData = startSection.get(p);
|
|
|
ims = inverterModelMap.get(s);
|
|
|
if (endData == null || startData == null || ims == null) {
|
|
|
dxfds = 0;
|