sqls="SELECT \"tdl\",\"p\",\"T\",\"h\",\"a0\",\"a1\",\"ta\",\"bdlng\",\"bdlat\", FROM \"tdl_policy\".\""+device+"\" WHERE time >="+startTime+" and time <="+resultCircuitVo.getEndTime()*1000000l+" ORDER BY time ";
sqls="SELECT \"tdl\",\"p\",\"T\",\"h\",\"a0\",\"a1\",\"ta\",\"bdlng\",\"bdlat\" FROM \"tdl_policy\".\""+device+"\" WHERE time >="+startTime+" and time <="+resultCircuitVo.getEndTime()*1000000l+" ORDER BY time ";
}else{
}else{
sqls="SELECT \"tdl\",\"p\",\"T\",\"h\",\"a0\",\"a1\",\"ta\",\"bdlng\",\"bdlat\" FROM \"tdl_policy\".\""+device+"\" WHERE time >="+startTime+" and time <="+System.currentTimeMillis()*1000000l+" ORDER BY time ";
sqls="SELECT \"tdl\",\"p\",\"T\",\"h\",\"a0\",\"a1\",\"ta\",\"bdlng\",\"bdlat\" FROM \"tdl_policy\".\""+device+"\" WHERE time >="+startTime+" and time <="+System.currentTimeMillis()*1000000l+" ORDER BY time ";
sqls="SELECT \"b\", \"T\", \"h\" FROM \"tdl_policy\".\""+resultWarehouseNoAndTDLSNAndTimeVo.getGatewayType()+"_"+resultWarehouseNoAndTDLSNAndTimeVo.getGatewaySN()+"\" WHERE (\"tdl\" = 'TDL-"+resultWarehouseNoAndTDLSNAndTimeVo.getTDLSN()+"') and time >= "+resultWarehouseNoAndTDLSNAndTimeVo.getCreateTime()*1000000+" ORDER BY time ";
sqls="SELECT \"b\", \"T\", \"h\" FROM \"tdl_policy\".\""+resultWarehouseNoAndTDLSNAndTimeVo.getGatewayType()+"_"+resultWarehouseNoAndTDLSNAndTimeVo.getGatewaySN()+"\" WHERE (\"tdl\" = 'TDL-"+resultWarehouseNoAndTDLSNAndTimeVo.getTDLSN()+"') and time >= "+resultWarehouseNoAndTDLSNAndTimeVo.getCreateTime()*1000000+" and time<= "+resultWarehouseNoAndTDLSNAndTimeVo.getEndTime()*1000000+" ORDER BY time ";
Stringsqls="SELECT \"b\", \"T\", \"h\" FROM \"tdl_policy\".\""+resultWarehouseNoAndTDLSNAndTimeVo.getGatewayType()+"_"+resultWarehouseNoAndTDLSNAndTimeVo.getGatewaySN()+"\" WHERE (\"tdl\" = 'TDL-"+resultWarehouseNoAndTDLSNAndTimeVo.getTDLSN()+"') and time >= "+startTime+" and time<= "+stopTime+" ORDER BY time ";