|
@@ -127,7 +127,7 @@ public class ProEconTestingPointServiceImpl extends ServiceImpl<ProEconTestingPo
|
|
|
public List<ProBasicPowerstationPoint> initalSs(String station,String[] setpoints) {
|
|
|
List<ProBasicPowerstationPoint> allpoints = new ArrayList<>();
|
|
|
|
|
|
- List<ProEconTestingPoint> ls = proEconTestingPointService.list().stream().filter(i -> i.getTypeId().equals("zq")).collect(Collectors.toList());
|
|
|
+ List<ProEconTestingPoint> ls = CacheContext.tpls.stream().filter(i -> i.getTypeId().equals("zq")).collect(Collectors.toList());
|
|
|
//获取场站
|
|
|
for (ProBasicPowerstation postation : CacheContext.wpls) {
|
|
|
if (null != station && !"".equals(station) && !station.equals(postation.getId())) {
|
|
@@ -226,8 +226,8 @@ public class ProEconTestingPointServiceImpl extends ServiceImpl<ProEconTestingPo
|
|
|
public List<ProBasicPowerstationPoint> initalWs(String station,String[] setpoints) {
|
|
|
List<ProBasicPowerstationPoint> allpoints = new ArrayList<>();
|
|
|
|
|
|
- List<ProEconTestingPoint> fcs = proEconTestingPointService.list().stream().filter(i -> i.getTypeId().equals("cft")).collect(Collectors.toList());
|
|
|
- List<ProEconTestingPoint> gcs = proEconTestingPointService.list().stream().filter(i -> i.getTypeId().equals("qxz")).collect(Collectors.toList());
|
|
|
+ List<ProEconTestingPoint> fcs = CacheContext.tpls.stream().filter(i -> i.getTypeId().equals("cft")).collect(Collectors.toList());
|
|
|
+ List<ProEconTestingPoint> gcs = CacheContext.tpls.stream().filter(i -> i.getTypeId().equals("qxz")).collect(Collectors.toList());
|
|
|
//获取场站
|
|
|
for (ProBasicPowerstation postation : CacheContext.wpls) {
|
|
|
if (null != station && !"".equals(station) && !station.equals(postation.getId())) {
|
|
@@ -335,7 +335,7 @@ public class ProEconTestingPointServiceImpl extends ServiceImpl<ProEconTestingPo
|
|
|
public List<ProBasicPowerstationPoint> initalSbs(String station,String[] setpoints) {
|
|
|
List<ProBasicPowerstationPoint> allpoints = new ArrayList<>();
|
|
|
|
|
|
- List<ProEconTestingPoint> ls = proEconTestingPointService.list().stream().filter(i -> i.getTypeId().equals("fggl") || i.getTypeId().equals("agc") || i.getTypeId().equals("agcjsfw") ).collect(Collectors.toList());
|
|
|
+ List<ProEconTestingPoint> ls = CacheContext.tpls.stream().filter(i -> i.getTypeId().equals("fggl") || i.getTypeId().equals("agc") || i.getTypeId().equals("agcjsfw") ).collect(Collectors.toList());
|
|
|
//获取场站
|
|
|
for (ProBasicPowerstation postation : CacheContext.wpls) {
|
|
|
if (null != station && !"".equals(station) && !station.equals(postation.getId())) {
|
|
@@ -431,9 +431,9 @@ public class ProEconTestingPointServiceImpl extends ServiceImpl<ProEconTestingPo
|
|
|
|
|
|
List<ProBasicEquipmentPoint> allpoints = new ArrayList<>();
|
|
|
|
|
|
- List<ProEconTestingPoint> fdls = proEconTestingPointService.list().stream().filter(i -> i.getTypeId().equals("fj") || i.getTypeId().equals("fjjsfw")).collect(Collectors.toList());
|
|
|
+ List<ProEconTestingPoint> fdls = CacheContext.tpls.stream().filter(i -> i.getTypeId().equals("fj") || i.getTypeId().equals("fjjsfw")).collect(Collectors.toList());
|
|
|
|
|
|
- List<ProEconTestingPoint> gfls = proEconTestingPointService.list().stream().filter(i -> i.getTypeId().equals("gf") || i.getTypeId().equals("gfjsfw")).collect(Collectors.toList());
|
|
|
+ List<ProEconTestingPoint> gfls = CacheContext.tpls.stream().filter(i -> i.getTypeId().equals("gf") || i.getTypeId().equals("gfjsfw")).collect(Collectors.toList());
|
|
|
|
|
|
for (ProBasicPowerstation wp : CacheContext.wpls) {
|
|
|
|
|
@@ -594,14 +594,14 @@ public class ProEconTestingPointServiceImpl extends ServiceImpl<ProEconTestingPo
|
|
|
|
|
|
public List<ProBasicPowerstationPoint> initalFc() {
|
|
|
|
|
|
- List<ProEconTestingPoint> pointls = proEconTestingPointService.list().stream()
|
|
|
+ List<ProEconTestingPoint> pointls = CacheContext.tpls.stream()
|
|
|
.filter(i -> i.getTypeId().equals(FCJSFW) || i.getTypeId().equals(GCJSFW)).collect(Collectors.toList());
|
|
|
|
|
|
pointls = pointls.stream().filter(DistinctObject.distinctByKey(p->p.getUniformCode())).collect(Collectors.toList());
|
|
|
|
|
|
- List<ProEconTestingPoint> fdpointls = proEconTestingPointService.list().stream()
|
|
|
+ List<ProEconTestingPoint> fdpointls = CacheContext.tpls.stream()
|
|
|
.filter(i -> i.getTypeId().equals(FCJSFW)).collect(Collectors.toList());
|
|
|
- List<ProEconTestingPoint> gfpointls = proEconTestingPointService.list().stream()
|
|
|
+ List<ProEconTestingPoint> gfpointls = CacheContext.tpls.stream()
|
|
|
.filter(i -> i.getTypeId().equals(GCJSFW)).collect(Collectors.toList());
|
|
|
|
|
|
|