|
@@ -19,6 +19,8 @@ import javax.annotation.Resource;
|
|
|
import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
+import static com.gyee.runeconomy.init.CacheContext.pjls;
|
|
|
+
|
|
|
@Service
|
|
|
public class MonitorService {
|
|
|
private static Logger logger = LoggerFactory.getLogger(MonitorService.class);
|
|
@@ -111,7 +113,7 @@ public class MonitorService {
|
|
|
double gl = 0.0;
|
|
|
ProBasicPowerstationPoint glvalue = proBasicPowerstationPointService.getPowerstationPoint(id, ContantXk.SSZGL);
|
|
|
gl = edosUtil.getRealData(glvalue).getPointValueInDouble();
|
|
|
- xx.put("gl", gl);
|
|
|
+ xx.put("gl", MathUtil.twoBit(gl));
|
|
|
}else if (CacheContext.wpmap.containsKey(id) && id.endsWith("GDC_STA")){
|
|
|
xx.put("zczjts", Double.valueOf(wp.getJrquantityZc()));
|
|
|
xx.put("jzzjts", Double.valueOf(wp.getJrquantityJz()));
|
|
@@ -119,7 +121,7 @@ public class MonitorService {
|
|
|
double gl = 0.0;
|
|
|
ProBasicPowerstationPoint glvalue = proBasicPowerstationPointService.getPowerstationPoint(id, ContantXk.SSZGL);
|
|
|
gl = edosUtil.getRealData(glvalue).getPointValueInDouble();
|
|
|
- xx.put("gl", gl);
|
|
|
+ xx.put("gl", MathUtil.twoBit(gl));
|
|
|
}
|
|
|
station.put(id, xx);
|
|
|
}
|
|
@@ -130,19 +132,26 @@ public class MonitorService {
|
|
|
|
|
|
|
|
|
|
|
|
- Map<String, Double> xl = new LinkedHashMap<>();
|
|
|
+
|
|
|
Map<String, Object> xlmap = new LinkedHashMap<>();
|
|
|
+
|
|
|
if (!wpls1.isEmpty()) {
|
|
|
- for (ProBasicLine ls : CacheContext.lnls) {
|
|
|
+ double xlgl = 0.0;
|
|
|
+ double i = 0;
|
|
|
+ for (ProBasicLine ls : CacheContext.lnls) {
|
|
|
+ Map<String, Double> xl = new LinkedHashMap<>();
|
|
|
String lineid = ls.getId();
|
|
|
- double xlgl = 0.0;
|
|
|
+ i++;
|
|
|
ProBasicPowerstationPoint xlglvalue = proBasicPowerstationPointService.getPowerstationPoint(lineid, ContantXk.SSZGL);
|
|
|
xlgl = edosUtil.getRealData(xlglvalue).getPointValueInDouble();
|
|
|
- xl.put("xlgl", xlgl);
|
|
|
+ xl.put("i",i);
|
|
|
+ xl.put("xlgl", MathUtil.twoBit(xlgl));
|
|
|
xlmap.put(lineid, xl);
|
|
|
}
|
|
|
}
|
|
|
map.put("xlmap", xlmap);
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -334,12 +343,12 @@ public class MonitorService {
|
|
|
jym = edosUtil.getRealData(jymvalue).getPointValueInDouble();
|
|
|
|
|
|
}
|
|
|
- qt.put("aqts", aqts);
|
|
|
- qt.put("sjgl", sjgl);
|
|
|
- qt.put("jys", jys);
|
|
|
- qt.put("jym", jym);
|
|
|
- qt.put("co2", co2);
|
|
|
- qt.put("so2", so2);
|
|
|
+ qt.put("aqts", MathUtil.twoBit(aqts));
|
|
|
+ qt.put("sjgl", MathUtil.twoBit(sjgl));
|
|
|
+ qt.put("jys", MathUtil.twoBit(jys));
|
|
|
+ qt.put("jym", MathUtil.twoBit(jym));
|
|
|
+ qt.put("co2", MathUtil.twoBit(co2));
|
|
|
+ qt.put("so2", MathUtil.twoBit(so2));
|
|
|
|
|
|
map.put("qt", qt);
|
|
|
|