sql="SELECT \"lng\",\"lat\" FROM \"tdl_policy\".\""+device+"\"where \"lng\"!=0 and \"lat\"!=0 and time >= "+startTime+" ORDER BY time desc limit 1";
}else{
sql="SELECT \"lng\",\"lat\" FROM \"tdl_policy\".\""+device+"\"where \"lng\"!=0 and \"lat\"!=0 and time >= "+startTime+" and time<= "+circuitVos.get(i).getEndTime()*1000000l+" ORDER BY time desc limit 1";