|
@@ -437,10 +437,12 @@ public class RealtimeService {
|
|
|
AtomicReference<Double> zssglsyz = new AtomicReference<>((double) 0);
|
|
|
|
|
|
ProBasicPowerstationPoint ssfsWpPoint = null;
|
|
|
- if (project.getSpare4().equals("1")) {
|
|
|
- ssfsWpPoint = proBasicWppointMap.get(ContantXk.SSPJFS);
|
|
|
- } else if (project.getSpare4().equals("2")) {
|
|
|
- ssfsWpPoint = proBasicWppointMap.get(ContantXk.SSPJGZD);
|
|
|
+ if (null != project.getSpare4()){
|
|
|
+ if (project.getSpare4().equals("1")) {
|
|
|
+ ssfsWpPoint = proBasicWppointMap.get(ContantXk.SSPJFS);
|
|
|
+ } else if (project.getSpare4().equals("2")) {
|
|
|
+ ssfsWpPoint = proBasicWppointMap.get(ContantXk.SSPJGZD);
|
|
|
+ }
|
|
|
}
|
|
|
ProBasicPowerstationPoint ssglWpPoint = proBasicWppointMap.get(ContantXk.SSZGL);
|
|
|
ProBasicPowerstationPoint llglWpPoint = proBasicWppointMap.get(ContantXk.SSZLLGL);
|
|
@@ -538,7 +540,9 @@ public class RealtimeService {
|
|
|
// return v;
|
|
|
// });
|
|
|
});
|
|
|
- projectResultList.add(PointUtil.createPointData(currentDate, zssbf.get() / proBasicLines.size(), ssfsWpPoint.getNemCode(), ssfsWpPoint.getName()));
|
|
|
+ if (null != ssfsWpPoint){
|
|
|
+ projectResultList.add(PointUtil.createPointData(currentDate, zssbf.get() / proBasicLines.size(), ssfsWpPoint.getNemCode(), ssfsWpPoint.getName()));
|
|
|
+ }
|
|
|
projectResultList.add(PointUtil.createPointData(currentDate, zssgl.get(), ssglWpPoint.getNemCode(), ssglWpPoint.getName()));
|
|
|
projectResultList.add(PointUtil.createPointData(currentDate, zssglsyz.get(), ssglsyzWpPoint.getNemCode(), ssglsyzWpPoint.getName()));
|
|
|
projectResultList.add(PointUtil.createPointData(currentDate, zllgl.get(), llglWpPoint.getNemCode(), llglWpPoint.getName()));
|
|
@@ -581,10 +585,12 @@ public class RealtimeService {
|
|
|
Map<String, ProBasicPowerstationPoint> basicWppointMap = propointmap.get(pj.getId());
|
|
|
|
|
|
ProBasicPowerstationPoint ssbfPoint = null;
|
|
|
- if (pj.getSpare4().equals("1")) {
|
|
|
- ssbfPoint = basicWppointMap.get(ContantXk.SSPJFS);
|
|
|
- } else if (pj.getSpare4().equals("2")) {
|
|
|
- ssbfPoint = basicWppointMap.get(ContantXk.SSPJGZD);
|
|
|
+ if (null != pj.getSpare4()){
|
|
|
+ if (pj.getSpare4().equals("1")) {
|
|
|
+ ssbfPoint = basicWppointMap.get(ContantXk.SSPJFS);
|
|
|
+ } else if (pj.getSpare4().equals("2")) {
|
|
|
+ ssbfPoint = basicWppointMap.get(ContantXk.SSPJGZD);
|
|
|
+ }
|
|
|
}
|
|
|
ProBasicPowerstationPoint ssglPoint = basicWppointMap.get(ContantXk.SSZGL);
|
|
|
ProBasicPowerstationPoint ssglsyzPoint = basicWppointMap.get(ContantXk.SSZGLSYZ);
|