sqls="SELECT \"b\", \"T\", \"h\" FROM \"tdl_policy\".\""+resultWarehouseNoAndTDLSNAndTimeVos.get(a).getGatewayType()+"_"+resultWarehouseNoAndTDLSNAndTimeVos.get(a).getGatewaySN()+"\" WHERE (\"tdl\" = 'TDL-"+resultWarehouseNoAndTDLSNAndTimeVos.get(a).getTDLSN()+"') and time >= '"+resultWarehouseNoAndTDLSNAndTimeVos.get(a).getCreateTime()+"' 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 ";
}else{
sqls="SELECT \"b\", \"T\", \"h\" FROM \"tdl_policy\".\""+resultWarehouseNoAndTDLSNAndTimeVos.get(a).getGatewayType()+"_"+resultWarehouseNoAndTDLSNAndTimeVos.get(a).getGatewaySN()+"\" WHERE (\"tdl\" = 'TDL-"+resultWarehouseNoAndTDLSNAndTimeVos.get(a).getTDLSN()+"') and time >= '"+resultWarehouseNoAndTDLSNAndTimeVos.get(a).getCreateTime()+"' and time<= '"+resultWarehouseNoAndTDLSNAndTimeVos.get(a).getEndTime()+"' 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 ";