Stringsql=String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ",tableName,idxBizFanPointProcessVariableClassification.getIndexAddress(),startTime,endTime);
// String sql = String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ", tableName, idxBizFanPointProcessVariableClassification.getIndexAddress(), startTime, endTime);
Stringsql=String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ",tableName,idxBizPvPointProcessVariableClassification.getIndexAddress(),startTime,endTime);
/* String sql = String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ", tableName, idxBizPvPointProcessVariableClassification.getIndexAddress(), startTime, endTime);
Stringsql1=String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ",tableName,idxBizFanPointProcessVariableClassification.getIndexAddress(),startTime,endTime);
// String sql1 = String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ", tableName, idxBizFanPointProcessVariableClassification.getIndexAddress(), startTime, endTime);
Stringsql=String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ",tableName,idxBizFanPointVarCorrelation.getProcessIndexAddress(),startTime,endTime);
// String sql = String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ", tableName, idxBizFanPointVarCorrelation.getProcessIndexAddress(), startTime, endTime);
Stringsql1=String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ",tableName,idxBizPvPointProcessVariableClassification.getIndexAddress(),startTime,endTime);
// String sql1 = String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ", tableName, idxBizPvPointProcessVariableClassification.getIndexAddress(), startTime, endTime);
Stringsql=String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ",tableName,idxBizPvPointVarCorrelation.getProcessIndexAddress(),startTime,endTime);
//String sql = String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ", tableName, idxBizPvPointVarCorrelation.getProcessIndexAddress(), startTime, endTime);
Stringsql0=String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ",tableName,IdxBizFanPointProcessVariableClassification.getIndexAddress(),startTime,endTime);
// String sql0 = String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ", tableName, IdxBizFanPointProcessVariableClassification.getIndexAddress(), startTime, endTime);
// String sql = String.format("select value from %s where address='%s' and where time >= '%s' and where time <= '%s' ", tableName, IdxBizFanPointProcessVariableClassification.getIndexAddress(), startTime, endTime);
Stringsql=String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ",tableName,list.get(0).getProcessIndexAddress(),startTime,endTime);
Stringsql1=String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ",tableName,list.get(1).getProcessIndexAddress(),startTime,endTime);
Stringsql2=String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ",tableName,list.get(2).getProcessIndexAddress(),startTime,endTime);
// String sql = String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ", tableName, list.get(0).getProcessIndexAddress(), startTime, endTime);
// String sql1 = String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ", tableName, list.get(1).getProcessIndexAddress(), startTime, endTime);
// String sql2 = String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ", tableName, list.get(2).getProcessIndexAddress(), startTime, endTime);
Stringsql0=String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ",tableName,idxBizPvPointProcessVariableClassification.getIndexAddress(),startTime,endTime);
//String sql0 = String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ", tableName, idxBizPvPointProcessVariableClassification.getIndexAddress(), startTime, endTime);
Stringsql=String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ",tableName,list.get(0).getProcessIndexAddress(),startTime,endTime);
Stringsql1=String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ",tableName,list.get(1).getProcessIndexAddress(),startTime,endTime);
Stringsql2=String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ",tableName,list.get(2).getProcessIndexAddress(),startTime,endTime);
// String sql = String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ", tableName, list.get(0).getProcessIndexAddress(), startTime, endTime);
// String sql1 = String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ", tableName, list.get(1).getProcessIndexAddress(), startTime, endTime);
// String sql2 = String.format("select value from %s where address='%s' and time >= '%s' and time <= '%s' ", tableName, list.get(2).getProcessIndexAddress(), startTime, endTime);
sql=String.format("select * from iot_data_%s where address ='%s' and time > '%s' and time < '%s' ;",idxBizFanPointProcessVariableClassification.getGatewayId(),idxBizFanPointProcessVariableClassification.getIndexAddress(),getUtcTimeString(startTime),getUtcTimeString(endTime));
sql=String.format("select * from iot_data_%s where address ='%s' and time > '%s' and time < '%s' ;",idxBizPvPointProcessVariableClassification.getGatewayId(),idxBizPvPointProcessVariableClassification.getIndexAddress(),getUtcTimeString(startTime),getUtcTimeString(endTime));
@Select("select `value` from iot_data.indicator_data where address=#{address} and createdtime >= #{startTime} and createdtime <= #{endTime} and gateway_id =#{gatewayId}")