|
@@ -700,42 +700,90 @@ public class HtAnalogDataServiceImpl extends AbstractCrudService<HtAnalogDataMap
|
|
|
checkList.add(SingleLoopReportList.get(0).getAvgIb());
|
|
|
checkList.add(SingleLoopReportList.get(0).getAvgIc());
|
|
|
//电流不平衡(平均)
|
|
|
- singleLoopReportOneVo.setAvgElBalun(checkBalun(checkList)*100);
|
|
|
+ Double AvgElBalun = checkBalun(checkList) * 100;
|
|
|
+ singleLoopReportOneVo.setAvgElBalun(AvgElBalun);
|
|
|
+ if (AvgElBalun<15){
|
|
|
+ singleLoopReportOneVo.setAvgElBalunStatus(true);
|
|
|
+ }else {
|
|
|
+ singleLoopReportOneVo.setAvgElBalunStatus(false);
|
|
|
+ }
|
|
|
|
|
|
checkList.clear();
|
|
|
checkList.add(SingleLoopReportList.get(0).getMaxIa());
|
|
|
checkList.add(SingleLoopReportList.get(0).getMaxIb());
|
|
|
checkList.add(SingleLoopReportList.get(0).getMaxIc());
|
|
|
//电流不平衡(最大)
|
|
|
- singleLoopReportOneVo.setMaxElBalun(checkBalun(checkList)*100);
|
|
|
+ Double MaxElBalun = checkBalun(checkList) * 100;
|
|
|
+ singleLoopReportOneVo.setMaxElBalun(MaxElBalun);
|
|
|
+ if (MaxElBalun<15){
|
|
|
+ singleLoopReportOneVo.setMaxElBalunStatus(true);
|
|
|
+ }else {
|
|
|
+ singleLoopReportOneVo.setMaxElBalunStatus(false);
|
|
|
+ }
|
|
|
|
|
|
checkList.clear();
|
|
|
checkList.add(SingleLoopReportList.get(0).getMinIa());
|
|
|
checkList.add(SingleLoopReportList.get(0).getMinIb());
|
|
|
checkList.add(SingleLoopReportList.get(0).getMinIc());
|
|
|
//电流不平衡(最小)
|
|
|
- singleLoopReportOneVo.setMinElBalun(checkBalun(checkList)*100);
|
|
|
+ Double MinElBalun = checkBalun(checkList) * 100;
|
|
|
+ singleLoopReportOneVo.setMinElBalun(MinElBalun);
|
|
|
+ if (MinElBalun<15){
|
|
|
+ singleLoopReportOneVo.setMinElBalunStatus(true);
|
|
|
+ }else {
|
|
|
+ singleLoopReportOneVo.setMinElBalunStatus(false);
|
|
|
+ }
|
|
|
+ if (AvgElBalun<15&&MaxElBalun<15&&MinElBalun<15){
|
|
|
+ singleLoopReportOneVo.setElBalunStatus(true);
|
|
|
+ }else {
|
|
|
+ singleLoopReportOneVo.setElBalunStatus(false);
|
|
|
+ }
|
|
|
|
|
|
checkList.clear();
|
|
|
checkList.add(SingleLoopReportList.get(0).getAvgUa());
|
|
|
checkList.add(SingleLoopReportList.get(0).getAvgUb());
|
|
|
checkList.add(SingleLoopReportList.get(0).getAvgUc());
|
|
|
//电压不平衡(平均)
|
|
|
- singleLoopReportOneVo.setAvgVtBalun(checkBalun(checkList)*100);
|
|
|
+ Double AvgVtBalun = checkBalun(checkList) * 100;
|
|
|
+ singleLoopReportOneVo.setAvgVtBalun(AvgVtBalun);
|
|
|
+ if (AvgVtBalun<15){
|
|
|
+ singleLoopReportOneVo.setAvgVtBalunStatus(true);
|
|
|
+ }else {
|
|
|
+ singleLoopReportOneVo.setAvgVtBalunStatus(false);
|
|
|
+ }
|
|
|
|
|
|
checkList.clear();
|
|
|
checkList.add(SingleLoopReportList.get(0).getMaxUa());
|
|
|
checkList.add(SingleLoopReportList.get(0).getMaxUb());
|
|
|
checkList.add(SingleLoopReportList.get(0).getMaxUc());
|
|
|
//电压不平衡(最大)
|
|
|
- singleLoopReportOneVo.setMaxVtBalun(checkBalun(checkList)*100);
|
|
|
+ Double MaxVtBalun = checkBalun(checkList) * 100;
|
|
|
+ singleLoopReportOneVo.setMaxVtBalun(MaxVtBalun);
|
|
|
+ if (MaxVtBalun<15){
|
|
|
+ singleLoopReportOneVo.setMaxVtBalunStatus(true);
|
|
|
+ }else {
|
|
|
+ singleLoopReportOneVo.setMaxVtBalunStatus(false);
|
|
|
+ }
|
|
|
|
|
|
checkList.clear();
|
|
|
checkList.add(SingleLoopReportList.get(0).getMinUa());
|
|
|
checkList.add(SingleLoopReportList.get(0).getMinUb());
|
|
|
checkList.add(SingleLoopReportList.get(0).getMinUc());
|
|
|
//电压不平衡(最小)
|
|
|
- singleLoopReportOneVo.setMinVtBalun(checkBalun(checkList)*100);
|
|
|
+ Double MinVtBalun = checkBalun(checkList) * 100;
|
|
|
+ singleLoopReportOneVo.setMinVtBalun(MinVtBalun);
|
|
|
+ if (MinVtBalun<15){
|
|
|
+ singleLoopReportOneVo.setMinVtBalunStatus(true);
|
|
|
+ }else {
|
|
|
+ singleLoopReportOneVo.setMinVtBalunStatus(false);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (AvgVtBalun<15&&MaxVtBalun<15&&MinVtBalun<15){
|
|
|
+ singleLoopReportOneVo.setVtBalunStatus(true);
|
|
|
+ }else {
|
|
|
+ singleLoopReportOneVo.setVtBalunStatus(false);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
double voltageLevel = Double.parseDouble(singleLoopReportOneVo.getVoltageLevel());
|
|
|
double voltageLevelWanting = voltageLevel / 100 * 7;
|
|
@@ -744,66 +792,156 @@ public class HtAnalogDataServiceImpl extends AbstractCrudService<HtAnalogDataMap
|
|
|
checkList.clear();
|
|
|
checkList.add(SingleLoopReportList.get(0).getAvgUa());
|
|
|
checkList.add(voltageLevel);
|
|
|
- Double AvgUaQR = VoltageQr(checkList,voltageLevel);
|
|
|
- singleLoopReportOneVo.setAvgUa(df.format(SingleLoopReportList.get(0).getAvgUa())+"V("+df.format(AvgUaQR)+"%)");
|
|
|
+ Double AvgUaQR = Double.valueOf(df.format(VoltageQr(checkList,voltageLevel)));
|
|
|
+ singleLoopReportOneVo.setAvgUa(df.format(SingleLoopReportList.get(0).getAvgUa())+"kV("+AvgUaQR+"%)");
|
|
|
+ if (AvgUaQR<7.00){
|
|
|
+ singleLoopReportOneVo.setAvgUaStatus(true);
|
|
|
+ }else {
|
|
|
+ singleLoopReportOneVo.setAvgUaStatus(false);
|
|
|
+ }
|
|
|
//B相电压合格率(平均)
|
|
|
checkList.clear();
|
|
|
checkList.add(SingleLoopReportList.get(0).getAvgUb());
|
|
|
checkList.add(voltageLevel);
|
|
|
- Double AvgUbQR = VoltageQr(checkList,voltageLevel);
|
|
|
- singleLoopReportOneVo.setAvgUb(df.format(SingleLoopReportList.get(0).getAvgUb())+"V("+df.format(AvgUbQR)+"%)");
|
|
|
+ Double AvgUbQR = Double.valueOf(df.format(VoltageQr(checkList,voltageLevel)));
|
|
|
+ singleLoopReportOneVo.setAvgUb(df.format(SingleLoopReportList.get(0).getAvgUb())+"kV("+AvgUbQR+"%)");
|
|
|
+ if (AvgUbQR<7.00){
|
|
|
+ singleLoopReportOneVo.setAvgUbStatus(true);
|
|
|
+ }else {
|
|
|
+ singleLoopReportOneVo.setAvgUbStatus(false);
|
|
|
+ }
|
|
|
//C相电压合格率(平均)
|
|
|
checkList.clear();
|
|
|
checkList.add(SingleLoopReportList.get(0).getAvgUc());
|
|
|
checkList.add(voltageLevel);
|
|
|
- Double AvgUcQR = VoltageQr(checkList,voltageLevel);
|
|
|
- singleLoopReportOneVo.setAvgUc(df.format(SingleLoopReportList.get(0).getAvgUc())+"V("+df.format(AvgUcQR)+"%)");
|
|
|
+ Double AvgUcQR = Double.valueOf(df.format(VoltageQr(checkList,voltageLevel)));
|
|
|
+ singleLoopReportOneVo.setAvgUc(df.format(SingleLoopReportList.get(0).getAvgUc())+"kV("+AvgUcQR+"%)");
|
|
|
+ if (AvgUcQR<7.00){
|
|
|
+ singleLoopReportOneVo.setAvgUcStatus(true);
|
|
|
+ }else {
|
|
|
+ singleLoopReportOneVo.setAvgUcStatus(false);
|
|
|
+ }
|
|
|
//A相电压合格率(最大)
|
|
|
checkList.clear();
|
|
|
checkList.add(SingleLoopReportList.get(0).getMaxUa());
|
|
|
checkList.add(voltageLevel);
|
|
|
- Double MaxUaQR = VoltageQr(checkList,voltageLevel);
|
|
|
- singleLoopReportOneVo.setMaxUa(df.format(SingleLoopReportList.get(0).getMaxUa())+"V("+df.format(MaxUaQR)+"%)");
|
|
|
+ Double MaxUaQR = Double.valueOf(df.format(VoltageQr(checkList,voltageLevel)));
|
|
|
+ singleLoopReportOneVo.setMaxUa(df.format(SingleLoopReportList.get(0).getMaxUa())+"kV("+MaxUaQR+"%)");
|
|
|
+ if (MaxUaQR<7.00){
|
|
|
+ singleLoopReportOneVo.setMaxUaStatus(true);
|
|
|
+ }else {
|
|
|
+ singleLoopReportOneVo.setMaxUaStatus(false);
|
|
|
+ }
|
|
|
//B相电压合格率(最大)
|
|
|
checkList.clear();
|
|
|
checkList.add(SingleLoopReportList.get(0).getMaxUb());
|
|
|
checkList.add(voltageLevel);
|
|
|
- Double MaxUbQR = VoltageQr(checkList,voltageLevel);
|
|
|
- singleLoopReportOneVo.setMaxUb(df.format(SingleLoopReportList.get(0).getMaxUb())+"V("+df.format(MaxUbQR)+"%)");
|
|
|
+ Double MaxUbQR = Double.valueOf(df.format(VoltageQr(checkList,voltageLevel)));
|
|
|
+ singleLoopReportOneVo.setMaxUb(df.format(SingleLoopReportList.get(0).getMaxUb())+"kV("+MaxUbQR+"%)");
|
|
|
+ if (MaxUbQR<7.00){
|
|
|
+ singleLoopReportOneVo.setMaxUbStatus(true);
|
|
|
+ }else {
|
|
|
+ singleLoopReportOneVo.setMaxUbStatus(false);
|
|
|
+ }
|
|
|
//C相电压合格率(最大)
|
|
|
checkList.clear();
|
|
|
checkList.add(SingleLoopReportList.get(0).getMaxUc());
|
|
|
checkList.add(voltageLevel);
|
|
|
- Double MaxUcQR = VoltageQr(checkList,voltageLevel);
|
|
|
- singleLoopReportOneVo.setMaxUc(df.format(SingleLoopReportList.get(0).getMaxUc())+"V("+df.format(MaxUcQR)+"%)");
|
|
|
+ Double MaxUcQR = Double.valueOf(df.format(VoltageQr(checkList,voltageLevel)));
|
|
|
+ singleLoopReportOneVo.setMaxUc(df.format(SingleLoopReportList.get(0).getMaxUc())+"kV("+MaxUcQR+"%)");
|
|
|
+ if (MaxUcQR<7.00){
|
|
|
+ singleLoopReportOneVo.setMaxUcStatus(true);
|
|
|
+ }else {
|
|
|
+ singleLoopReportOneVo.setMaxUcStatus(false);
|
|
|
+ }
|
|
|
//A相电压合格率(最小)
|
|
|
checkList.clear();
|
|
|
checkList.add(SingleLoopReportList.get(0).getMinUa());
|
|
|
checkList.add(voltageLevel);
|
|
|
- Double MinUaQR = VoltageQr(checkList,voltageLevel);
|
|
|
- singleLoopReportOneVo.setMinUa(df.format(SingleLoopReportList.get(0).getMinUa())+"V("+df.format(MinUaQR)+"%)");
|
|
|
+ Double MinUaQR = Double.valueOf(df.format(VoltageQr(checkList,voltageLevel)));
|
|
|
+ singleLoopReportOneVo.setMinUa(df.format(SingleLoopReportList.get(0).getMinUa())+"kV("+MinUaQR+"%)");
|
|
|
+ if (MinUaQR<7.00){
|
|
|
+ singleLoopReportOneVo.setMinUaStatus(true);
|
|
|
+ }else {
|
|
|
+ singleLoopReportOneVo.setMinUaStatus(false);
|
|
|
+ }
|
|
|
//B相电压合格率(最小)
|
|
|
checkList.clear();
|
|
|
checkList.add(SingleLoopReportList.get(0).getMinUb());
|
|
|
checkList.add(voltageLevel);
|
|
|
- Double MinUbQR = VoltageQr(checkList,voltageLevel);
|
|
|
- singleLoopReportOneVo.setMinUb(df.format(SingleLoopReportList.get(0).getMinUb())+"V("+df.format(MinUbQR)+"%)");
|
|
|
+ Double MinUbQR = Double.valueOf(df.format(VoltageQr(checkList,voltageLevel)));
|
|
|
+ singleLoopReportOneVo.setMinUb(df.format(SingleLoopReportList.get(0).getMinUb())+"kV("+MinUbQR+"%)");
|
|
|
+ if (MinUbQR<7.00){
|
|
|
+ singleLoopReportOneVo.setMinUbStatus(true);
|
|
|
+ }else {
|
|
|
+ singleLoopReportOneVo.setMinUbStatus(false);
|
|
|
+ }
|
|
|
//C相电压合格率(最小)
|
|
|
checkList.clear();
|
|
|
checkList.add(SingleLoopReportList.get(0).getMinUc());
|
|
|
checkList.add(voltageLevel);
|
|
|
- Double MinUcQR = VoltageQr(checkList,voltageLevel);
|
|
|
- singleLoopReportOneVo.setMinUc(df.format(SingleLoopReportList.get(0).getMinUc())+"V("+df.format(MinUcQR)+"%)");
|
|
|
+ Double MinUcQR = Double.valueOf(df.format(VoltageQr(checkList,voltageLevel)));
|
|
|
+ singleLoopReportOneVo.setMinUc(df.format(SingleLoopReportList.get(0).getMinUc())+"kV("+MinUcQR+"%)");
|
|
|
+ if (MinUcQR<7.00){
|
|
|
+ singleLoopReportOneVo.setMinUcStatus(true);
|
|
|
+ }else {
|
|
|
+ singleLoopReportOneVo.setMinUcStatus(false);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (AvgUaQR<7.00&&MaxUaQR<7.00&&MinUaQR<7.00){
|
|
|
+ singleLoopReportOneVo.setUaStatus(true);
|
|
|
+ }else {
|
|
|
+ singleLoopReportOneVo.setUaStatus(false);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (AvgUbQR<7.00&&MaxUbQR<7.00&&MinUbQR<7.00){
|
|
|
+ singleLoopReportOneVo.setUbStatus(true);
|
|
|
+ }else {
|
|
|
+ singleLoopReportOneVo.setUbStatus(false);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (AvgUcQR<7.00&&MaxUcQR<7.00&&MinUcQR<7.00){
|
|
|
+ singleLoopReportOneVo.setUcStatus(true);
|
|
|
+ }else {
|
|
|
+ singleLoopReportOneVo.setUcStatus(false);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
//频率(平均)
|
|
|
- Double cAvgF = 50.00 - SingleLoopReportList.get(0).getAvgF();
|
|
|
- singleLoopReportOneVo.setAvgF(df.format(SingleLoopReportList.get(0).getAvgF())+"Hz("+df.format(cAvgF)+"Hz)");
|
|
|
+ Double cAvgF = Double.valueOf(df.format(50.00 - SingleLoopReportList.get(0).getAvgF()));
|
|
|
+ singleLoopReportOneVo.setAvgF(df.format(SingleLoopReportList.get(0).getAvgF())+"Hz("+cAvgF+"Hz)");
|
|
|
+ if (SingleLoopReportList.get(0).getAvgF()<50.2&&SingleLoopReportList.get(0).getAvgF()>49.8){
|
|
|
+ singleLoopReportOneVo.setAvgFStatus(true);
|
|
|
+ }else {
|
|
|
+ singleLoopReportOneVo.setAvgFStatus(false);
|
|
|
+ }
|
|
|
//频率(最大)
|
|
|
- Double cMaxF = 50.00 - SingleLoopReportList.get(0).getMaxF();
|
|
|
- singleLoopReportOneVo.setMaxF(df.format(SingleLoopReportList.get(0).getMaxF())+"Hz("+df.format(cMaxF)+"Hz)");
|
|
|
+ Double cMaxF = Double.valueOf(df.format(50.00 - SingleLoopReportList.get(0).getMaxF()));
|
|
|
+ singleLoopReportOneVo.setMaxF(df.format(SingleLoopReportList.get(0).getMaxF())+"Hz("+cMaxF+"Hz)");
|
|
|
+ if (SingleLoopReportList.get(0).getMaxF()<50.2&&SingleLoopReportList.get(0).getMaxF()>49.8){
|
|
|
+ singleLoopReportOneVo.setMaxFStatus(true);
|
|
|
+ }else {
|
|
|
+ singleLoopReportOneVo.setMaxFStatus(false);
|
|
|
+ }
|
|
|
//频率(最小)
|
|
|
- Double cMinF = 50.00 - SingleLoopReportList.get(0).getMinF();
|
|
|
- singleLoopReportOneVo.setMinF(df.format(SingleLoopReportList.get(0).getMinF())+"Hz("+df.format(cMinF)+"Hz)");
|
|
|
+ Double cMinF = Double.valueOf(df.format(50.00 - SingleLoopReportList.get(0).getMinF()));
|
|
|
+ singleLoopReportOneVo.setMinF(df.format(SingleLoopReportList.get(0).getMinF())+"Hz("+cMinF+"Hz)");
|
|
|
+ if (SingleLoopReportList.get(0).getMinF()<50.2&&SingleLoopReportList.get(0).getMinF()>49.8){
|
|
|
+ singleLoopReportOneVo.setMaxFStatus(true);
|
|
|
+ }else {
|
|
|
+ singleLoopReportOneVo.setMinFStatus(false);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (singleLoopReportOneVo.getAvgFStatus()==true&&singleLoopReportOneVo.getMaxFStatus()==true&&singleLoopReportOneVo.getMaxFStatus()==true){
|
|
|
+ singleLoopReportOneVo.setFStatus(true);
|
|
|
+ }else {
|
|
|
+ singleLoopReportOneVo.setFStatus(false);
|
|
|
+ }
|
|
|
+ if (SingleLoopReportList.get(0).getCos()<0.9){
|
|
|
+ singleLoopReportOneVo.setCosStatus(true);
|
|
|
+ }else {
|
|
|
+ singleLoopReportOneVo.setCosStatus(false);
|
|
|
+ }
|
|
|
|
|
|
int OverrunUa = 0;
|
|
|
int OverrunUb = 0;
|
|
@@ -887,7 +1025,7 @@ public class HtAnalogDataServiceImpl extends AbstractCrudService<HtAnalogDataMap
|
|
|
singleLoopReportOneVo.setMhz(50.00);
|
|
|
singleLoopReportOneVo.setFToplimit(50.2);
|
|
|
singleLoopReportOneVo.setFLowerLimit(49.8);
|
|
|
- singleLoopReportOneVo.setAppraise(15.00);
|
|
|
+ singleLoopReportOneVo.setAppraise(0.9);
|
|
|
singleLoopReportOneVo.setBalanceToplimit(15.00);
|
|
|
singleLoopReportOneVo.setBalanceLowerLimit(15.00);
|
|
|
return singleLoopReportOneVo;
|