diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/HistoryResultServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/HistoryResultServiceImpl.java index 174df189b..d92a06aa3 100644 --- a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/HistoryResultServiceImpl.java +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/HistoryResultServiceImpl.java @@ -526,9 +526,11 @@ public class HistoryResultServiceImpl implements HistoryResultService { case 40: //谐波电压含有率 if (number == 1) { + targetName = "基波电压幅值"; sql = "SELECT time as time, v_1 as aValue ," + InfluxDBTableConstant.PHASIC_TYPE + " FROM data_harmrate_v WHERE " + stringBuilder + " and (phasic_type ='A' or phasic_type ='B' or phasic_type ='C') order by time asc tz('Asia/Shanghai');"; } else { + targetName = "谐波电压含有率"; sql = "SELECT time as time, v_" + number + " as aValue ," + InfluxDBTableConstant.PHASIC_TYPE + " FROM data_harmrate_v WHERE " + stringBuilder + " and (phasic_type ='A' or phasic_type ='B' or phasic_type ='C') order by time asc tz('Asia/Shanghai');"; if (number < 26) { @@ -545,14 +547,16 @@ public class HistoryResultServiceImpl implements HistoryResultService { phasicType.add("CA相"); } unit.add("%"); - targetName = "谐波电压含有率"; + break; case 41: //谐波电流含有率 if (number == 1) { + targetName = "谐波电流幅值"; sql = "SELECT time as time, i_1 as aValue ," + InfluxDBTableConstant.PHASIC_TYPE + " FROM data_harmrate_i WHERE " + stringBuilder + " and (phasic_type ='A' or phasic_type ='B' or phasic_type ='C') order by time asc tz('Asia/Shanghai');"; } else { + targetName = "谐波电流含有率"; sql = "SELECT time as time, i_" + number + " as aValue ," + InfluxDBTableConstant.PHASIC_TYPE + " FROM data_harmrate_i WHERE " + stringBuilder + " and (phasic_type ='A' or phasic_type ='B' or phasic_type ='C') order by time asc tz('Asia/Shanghai');"; } @@ -560,7 +564,7 @@ public class HistoryResultServiceImpl implements HistoryResultService { phasicType.add("B相"); phasicType.add("C相"); unit.add("%"); - targetName = "谐波电流含有率"; + break; case 42: //谐波电压幅值 @@ -582,28 +586,34 @@ public class HistoryResultServiceImpl implements HistoryResultService { } if (number == 1) { unit.add(pqsDeviceUnit.getVfundEffective()); + targetName = "基波电压幅值"; + } else { unit.add("V"); + targetName = "谐波电压幅值"; + } - targetName = "谐波电压幅值"; break; case 43: //谐波电流幅值 if (number == 1) { sql = "SELECT time as time, i_1 as aValue ," + InfluxDBTableConstant.PHASIC_TYPE + " FROM data_i WHERE " + stringBuilder + " and (phasic_type ='A' or phasic_type ='B' or phasic_type ='C') order by time asc tz('Asia/Shanghai');"; + targetName = "基波电流幅值"; + } else { sql = "SELECT time as time, i_" + number + " as aValue ," + InfluxDBTableConstant.PHASIC_TYPE + " FROM data_i WHERE " + stringBuilder + " and (phasic_type ='A' or phasic_type ='B' or phasic_type ='C') order by time asc tz('Asia/Shanghai');"; if (number < 26) { topLimit = PubUtils.getValueByMethod(overlimit, "getIharm", number); } + targetName = "谐波电流幅值"; + } phasicType.add("A相"); phasicType.add("B相"); phasicType.add("C相"); unit.add("A"); - targetName = "谐波电流幅值"; break; case 44: //谐波电压相角 @@ -615,31 +625,37 @@ public class HistoryResultServiceImpl implements HistoryResultService { " and (phasic_type ='A' or phasic_type ='B' or phasic_type ='C') order by time asc tz('Asia/Shanghai');"; } if (ptType == 0) { + targetName = "基波电压相角"; + phasicType.add("A相"); phasicType.add("B相"); phasicType.add("C相"); } else { + targetName = "谐波电压相角"; + phasicType.add("AB相"); phasicType.add("BC相"); phasicType.add("CA相"); } unit.add("°"); - targetName = "谐波电压相角"; break; case 45: //谐波电流相角 if (number == 1) { sql = "SELECT time as time, i_1 as aValue ," + InfluxDBTableConstant.PHASIC_TYPE + " FROM data_harmphasic_i WHERE " + stringBuilder + " and (phasic_type ='A' or phasic_type ='B' or phasic_type ='C') order by time asc tz('Asia/Shanghai');"; + targetName = "基波电流相角"; + } else { sql = "SELECT time as time, i_" + number + " as aValue ," + InfluxDBTableConstant.PHASIC_TYPE + " FROM data_harmphasic_i WHERE " + stringBuilder + " and (phasic_type ='A' or phasic_type ='B' or phasic_type ='C') order by time asc tz('Asia/Shanghai');"; + targetName = "谐波电流相角"; + } phasicType.add("A相"); phasicType.add("B相"); phasicType.add("C相"); unit.add("°"); - targetName = "谐波电流相角"; break; case 46: //间谐波电压含有率