|
@@ -76,23 +76,18 @@ public class CacheContext implements CommandLineRunner {
|
|
|
@Resource
|
|
|
private IProBasicOrganizeTreeService proBasicOrganizeTreeService;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private IProEconPowerstationInfoDay7Service proEconPowerstationInfoDay7Service;
|
|
|
+
|
|
|
+ @Resource
|
|
|
+ private IProEconPowerstationInfoDay1Service proEconPowerstationInfoDay1Service;
|
|
|
|
|
|
public static List<ProBasicBranch> bnls = new ArrayList<>();
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
public static List<ProBasicWeatherStation> weawpls = new ArrayList<>();
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- public static List<ProBasicPowerstation> zwpls = new ArrayList<>();
|
|
|
-
|
|
|
public static List<ProBasicCompany> cpls1 = new ArrayList<>();
|
|
|
-
|
|
|
-
|
|
|
|
|
|
+ public static List<ProBasicOrganizeTree> treels = new ArrayList<>();
|
|
|
public static List<ProBasicOrganizeTree> sqls = new ArrayList<>();
|
|
|
public static List<ProBasicOrganizeTree> cpls = new ArrayList<>();
|
|
|
public static List<ProBasicOrganizeTree> rgls = new ArrayList<>();
|
|
@@ -104,15 +99,12 @@ public class CacheContext implements CommandLineRunner {
|
|
|
public static List<ProBasicOrganizeTree> subwpls = new ArrayList<>();
|
|
|
public static List<ProBasicOrganizeTree> wplsf = new ArrayList<>();
|
|
|
public static List<ProBasicOrganizeTree> wplsG = new ArrayList<>();
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ public static List<ProEconPowerstationInfoDay7> station7ls = new ArrayList<>();
|
|
|
+ public static List<ProEconPowerstationInfoDay1> station1ls = new ArrayList<>();
|
|
|
|
|
|
public static Map<String,ProBasicOrganizeTree> sqmap = new HashMap<>();
|
|
|
+ public static Map<String,ProEconPowerstationInfoDay7> station7map = new HashMap<>();
|
|
|
+ public static Map<String,ProEconPowerstationInfoDay1> station1map = new HashMap<>();
|
|
|
public static Map<String,ProBasicOrganizeTree> cpmap = new HashMap<>();
|
|
|
public static Map<String,ProBasicOrganizeTree> rgmap = new HashMap<>();
|
|
|
public static Map<String,ProBasicOrganizeTree> gpmap = new HashMap<>();
|
|
@@ -130,32 +122,14 @@ public class CacheContext implements CommandLineRunner {
|
|
|
public static Map<Object,List<ProBasicOrganizeTree>> rgwtlsmap = new HashMap<>();
|
|
|
public static Map<Object,List<ProBasicOrganizeTree>> sqwtmap = new HashMap<>();
|
|
|
public static Map<Object,List<ProBasicOrganizeTree>> prolinemap = new HashMap<>();
|
|
|
-
|
|
|
public static Map<String,List<ProBasicOrganizeTree>> wpmapls = new HashMap<>();
|
|
|
public static Map<Object,Map<String,ProBasicOrganizeTree>> cmwtmap = new HashMap<>();
|
|
|
public static Map<Object,List<ProBasicOrganizeTree>> wppromap = new HashMap<>();
|
|
|
public static Map<String,String> wtstandardmap = new HashMap<>();
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- public static Map<String,List<ProBasicPowerstation>> stationls = new HashMap<>();
|
|
|
public static Map<String,List<ProBasicBranch>> wtbnmap = new HashMap<>();
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
public static List<ProBasicMeterPoint> meterpoints = new ArrayList<>();
|
|
|
public static Map<String,ProBasicMeterPoint> meterpointMap = new HashMap<>();
|
|
|
-
|
|
|
- public static Map<String,List<ProBasicProject>> projmap = new HashMap<>();
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
public static Map<String, Map<String, ProBasicEquipmentPoint>> bnAimap = new HashMap<>();
|
|
|
public static Map<String, Map<String, ProBasicEquipmentPoint>> wtpAimap = new HashMap<>();
|
|
|
public static Map<String,Map<String, ProBasicPowerstationPoint>> linepointmap =new HashMap<>();
|
|
@@ -167,21 +141,15 @@ public class CacheContext implements CommandLineRunner {
|
|
|
public static Map<String,Map<String, ProBasicPowerstationPoint>> regionpointmap =new HashMap<>();
|
|
|
public static Map<String,Map<String, ProBasicPowerstationPoint>> grouppointmap =new HashMap<>();
|
|
|
|
|
|
- public static Map<String,Map<Double,Double>> zbzglMap = new HashMap<>();
|
|
|
public static Map<String,ProEconEquipmentmodel> modelMap = new HashMap<>();
|
|
|
- public static Map<String,Map<Double,Double>> zzsglMap = new HashMap<>();
|
|
|
public static Map<String,Double> modelpower = new HashMap<>();
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
public static Map<String,Map<Double,ProBasicModelPower>> modelpowermap = new TreeMap<>();
|
|
|
|
|
|
public static List<ProBasicModelPower> mpls=new ArrayList<>();
|
|
|
|
|
|
public static List<ProEconEquipmentmodel> equipmentmodels=new ArrayList<>();
|
|
|
|
|
|
- public static Map<String,List<ProBasicEquipment>> subWtsMap = new HashMap<>();
|
|
|
public static List<ProBasicModelPowerRd> theoreticalPowerList=new ArrayList<>();
|
|
|
public static Map<String, Map<Double,ProBasicModelPowerRd>> theoreticalPowerMap = new HashMap<>();
|
|
|
public static Map<String, Map<Double,ProEconWtPowerCurveFitting>> curveFittingPowerMap = new HashMap<>();
|
|
@@ -232,15 +200,7 @@ public class CacheContext implements CommandLineRunner {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ treels = proBasicOrganizeTreeService.list().stream().filter(i->i.getIsAble()==1).collect(Collectors.toList());
|
|
|
|
|
|
|
|
|
sqls = proBasicOrganizeTreeService.list().stream().filter(i->i.getOrgType().contains("AG") && i.getIsAble()==1).collect(Collectors.toList());
|
|
@@ -252,42 +212,29 @@ public class CacheContext implements CommandLineRunner {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+ station7ls = proEconPowerstationInfoDay7Service.list().stream().filter(i->i.getId()!=null).collect(Collectors.toList());
|
|
|
+ if (!station7ls.isEmpty())
|
|
|
+ {
|
|
|
+ for (ProEconPowerstationInfoDay7 sq : station7ls)
|
|
|
+ {
|
|
|
+ station7map.put(sq.getForeignKeyId(),sq);
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ station1ls = proEconPowerstationInfoDay1Service.list().stream().filter(i->i.getId()!=null).collect(Collectors.toList());
|
|
|
+ if (!station1ls.isEmpty())
|
|
|
+ {
|
|
|
+ for (ProEconPowerstationInfoDay1 sq : station1ls)
|
|
|
+ {
|
|
|
+ station1map.put(sq.getForeignKeyId(),sq);
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
cpls=proBasicOrganizeTreeService.list().stream().filter(i->i.getIsAble().equals(1) && i.getOrgType().contains("ZGS")).collect(Collectors.toList());
|
|
|
if (!cpls.isEmpty())
|
|
|
{
|
|
@@ -316,35 +263,6 @@ public class CacheContext implements CommandLineRunner {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
@@ -375,36 +293,6 @@ public class CacheContext implements CommandLineRunner {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
@@ -440,19 +328,6 @@ public class CacheContext implements CommandLineRunner {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
for(ProBasicOrganizeTree cp:cpls)
|
|
|
{
|
|
@@ -465,16 +340,6 @@ public class CacheContext implements CommandLineRunner {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
wpls = proBasicOrganizeTreeService.list().stream().filter(i->i.getIsAble()==1 && i.getOrgType().contains("STA")).collect(Collectors.toList());
|
|
|
for(ProBasicOrganizeTree wp:wpls)
|
|
|
{
|
|
@@ -488,79 +353,6 @@ public class CacheContext implements CommandLineRunner {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
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|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
pjls = proBasicOrganizeTreeService.list().stream().filter(i-> i.getIsAble()==1 && i.getOrgType().contains("EG")).collect(Collectors.toList());
|
|
|
pjls.stream().forEach(p->{
|
|
@@ -764,20 +495,6 @@ public class CacheContext implements CommandLineRunner {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
subwpls = proBasicOrganizeTreeService.list().stream().filter(i-> i.getIsAble()==1 && i.getOrgType().contains("SBS")).collect(Collectors.toList());
|
|
|
subwpls.stream().forEach(sub->{
|
|
|
|
|
@@ -800,23 +517,6 @@ public class CacheContext implements CommandLineRunner {
|
|
|
|
|
|
});
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
@@ -836,24 +536,6 @@ public class CacheContext implements CommandLineRunner {
|
|
|
linepointmap.put(l.getId(),stringWindpowerstationpointnewMap);
|
|
|
});
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
for(ProBasicOrganizeTree wp:wpls)
|
|
|
{
|
|
@@ -870,15 +552,6 @@ public class CacheContext implements CommandLineRunner {
|
|
|
meterpointMap.put(meterpoint.getId(),meterpoint);
|
|
|
});
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
wpls.stream().forEach(wp->{
|
|
|
|
|
|
wpmap.put(wp.getId(),wp);
|
|
@@ -890,30 +563,6 @@ public class CacheContext implements CommandLineRunner {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
if (!wpls.isEmpty()) {
|
|
|
for (ProBasicOrganizeTree wp : wpls) {
|
|
|
if (wp.getEleType().contains("F")) {
|