sqls="SELECT count("+field+") FROM \"tdl_policy\".\""+device+"\" WHERE \"tdl\"='"+devList.get(i)+"' and time>="+startTime+" and time <="+resultCircuitVo.getEndTime()*1000000l;
sqls="SELECT count("+field+") FROM \"tdl_policy\".\""+device+"\" WHERE \"event\" = '"+event+"' and \"tdl\"='"+devList.get(i)+"' and time>="+startTime+" and time <="+resultCircuitVo.getEndTime()*1000000l;
}else{
sqls="SELECT count("+field+") FROM \"tdl_policy\".\""+device+"\" WHERE \"tdl\"='"+devList.get(i)+"' and time>="+startTime+" and time <="+System.currentTimeMillis()*1000000l;
sqls="SELECT count("+field+") FROM \"tdl_policy\".\""+device+"\" WHERE \"event\" = '"+event+"' and \"tdl\"='"+devList.get(i)+"' and time>="+startTime+" and time <="+System.currentTimeMillis()*1000000l;