@@ -123,8 +123,8 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
page.setCurrent(current);
page.setSize(size);
Stringtable=gateway;
StringBufferquerysql=newStringBuffer("SELECT createdTime ,equipmentNumber,gatewayId,address,valueLabel,equipmentSpecificName,value FROM indicators_%s WHERE isAlarm='1' and value!='0.0' and gatewayId= %s ORDER BY time desc LIMIT %d OFFSET %d ");
StringBufferquerysqlcount=newStringBuffer("SELECT count(value) FROM indicators_%s WHERE isAlarm='1' and value!='0.0' and gatewayId= %s ");
StringBufferquerysql=newStringBuffer("SELECT createdTime ,equipmentNumber,gatewayId,address,valueLabel,equipmentSpecificName,value FROM indicators_%s WHERE isAlarm='1' and value!='0.0' and value!=valueLabel and gatewayId= %s ORDER BY time desc LIMIT %d OFFSET %d ");
StringBufferquerysqlcount=newStringBuffer("SELECT count(value) FROM indicators_%s WHERE isAlarm='1' and value!='0.0' and value!=valueLabel and gatewayId= %s ");
@@ -160,8 +160,8 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
page.setCurrent(current);
page.setSize(size);
Stringtable=gateway;
StringBufferquerysql=newStringBuffer("SELECT createdTime ,gatewayId,address,valueLabel,equipmentSpecificName,value FROM iot_data_%s WHERE isAlarm='1' and value!='0.0' and gatewayId= %s ORDER BY time desc LIMIT %d OFFSET %d ");
StringBufferquerysqlcount=newStringBuffer("SELECT count(value) FROM iot_data_%s WHERE isAlarm='1' and value!='0.0' and gatewayId= %s ");
StringBufferquerysql=newStringBuffer("SELECT createdTime ,gatewayId,address,valueLabel,equipmentSpecificName,value FROM iot_data_%s WHERE isAlarm='1' and value!=valueLabel and value!='0.0' and gatewayId= %s ORDER BY time desc LIMIT %d OFFSET %d ");
StringBufferquerysqlcount=newStringBuffer("SELECT count(value) FROM iot_data_%s WHERE isAlarm='1' and value!='0.0' and value!=valueLabel and gatewayId= %s ");
if(StringUtils.isNotEmpty(equipmentNumber)){
Stringdate=" '%s' and equipmentSpecificName=~/.*%s风机.*/ ";
@@ -1030,7 +1032,6 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
Stringzb1Sql=String.format("SELECT * FROM \"indicators_%s\" WHERE frontModule = '1主变' and systemType = '模拟量' and (displayName = '档位' or displayName = '油面温1' or displayName = '油面温2' or displayName = '绕组温度' ) ",gatewayId);
StringxianSql=String.format("SELECT equipmentIndexName, value, frontModule, unit, displayName FROM \"indicators_%s\" WHERE systemType = '模拟量' and frontModule = '10kVⅡ段母线'",gatewayId);
StringxyxSql=String.format("SELECT value, displayName FROM \"indicators_%s\" WHERE systemType = '模拟量' and frontModule = '35kV前万线' and (displayName = 'Ia' or displayName = 'P' or displayName = 'Q' ",gatewayId);
Stringsql=String.format("SELECT equipmentIndexName, value, frontModule, unit, displayName FROM \"indicators_%s\" WHERE systemType = '%s' and frontModule =~/%s/ and (displayName = 'Ia' or displayName = 'P' or displayName = 'Q') ",gatewayId,"模拟量",map.get("boosterName"));