فهرست منبع

山西大同受累功能修改

xieshengjie 2 سال پیش
والد
کامیت
c498562fd9

+ 1 - 0
web/gdsx-ghost/src/main/java/com/gyee/ghost/model/auto/Involved.java

@@ -47,5 +47,6 @@ public class Involved extends Model {
 
     private Double faultduration;
 
+    private Double impactcapacity;
 
 }

+ 4 - 0
web/gdsx-ghost/src/main/java/com/gyee/ghost/service/auto/GhostService.java

@@ -560,7 +560,10 @@ public class GhostService {
         Long end = involvedVo.getEnd();
         List<Line> lines = involvedVo.getLines();
         Double ssdl = involvedVo.getSsdl();
+        Double impactcapacity = involvedVo.getImpactcapacity();
         String type = involvedVo.getType();
+
+
         List<Involved> resultList = new ArrayList<>();
         double zcapacity = lines.stream().mapToDouble(line -> lineMap.get(line.getId()).getCapacity()).sum();
         lines.stream().forEach(line->{
@@ -576,6 +579,7 @@ public class GhostService {
             involved.setEnddate(DateUtils.parseLongToDate(end));
             involved.setFaulttype(type);
             involved.setPowerloss(ssdl*(lineMap.get(line.getId()).getCapacity()/zcapacity));
+            involved.setImpactcapacity(impactcapacity*(lineMap.get(line.getId()).getCapacity()/zcapacity));
             double hours = DateUtils.hoursDiff2(DateUtils.parseLongToDate(begin), DateUtils.parseLongToDate(end));
             involved.setFaultduration(hours);
             resultList.add(involved);

+ 1 - 0
web/gdsx-ghost/src/main/java/com/gyee/ghost/vo/InvolvedVo.java

@@ -17,6 +17,7 @@ public class InvolvedVo {
     public Double ssdl;  //损失电量
     public List<Line> lines;   //勾选线路
     public String type;  //类型
+    public Double impactcapacity;  //影响容量
 
 
 }