Stringsql1="SELECT DISTINCT value FROM iot_data_"+gatewayId+" WHERE equipmentIndexName = '有功功率' and equipmentSpecificName =~/"+name+"/ and time >='"+time+"'GROUP BY time(2m)";
Stringsql=" SELECT equipmentNumber, equipmentSpecificName FROM indicators_"+gatewayId+" WHERE frontModule = '"+frontModule+"' and equipmentNumber !=''";
if(null!=equipmentNumber){
sql=" SELECT equipmentNumber, equipmentSpecificName FROM indicators_"+gatewayId+" WHERE equipmentNumber =~/"+equipmentNumber+"/ and frontModule = '"+frontModule+"'";