@@ -242,7 +242,6 @@ public class WarehouseController {
...
@@ -242,7 +242,6 @@ public class WarehouseController {
continue;
continue;
}
}
Stringtdl=list.get(j).getTdl().replace(",","\' or \"tdl\" = \'");
Stringtdl=list.get(j).getTdl().replace(",","\' or \"tdl\" = \'");
// sql = "SELECT \"T\",\"h\" FROM \"tdl_policy\".\"WTD93LG_17110194\" where \"tdl\" = \'TDL-1706190193608\' or \"tdl\" = \'TDL-1701110082608\' GROUP BY \"tdl\" order by time desc limit 1";
sql="SELECT \"T\",\"h\" FROM \"tdl_policy\".\""+list.get(j).getDevice()+"\" where \"tdl\" = \'"+tdl+"\' and time >="+list.get(j).getStartTime()+" GROUP BY \"tdl\" order by time desc limit 1";
sql="SELECT \"T\",\"h\" FROM \"tdl_policy\".\""+list.get(j).getDevice()+"\" where \"tdl\" = \'"+tdl+"\' and time >="+list.get(j).getStartTime()+" GROUP BY \"tdl\" order by time desc limit 1";
}
}
if(StringUtils.isEmpty(sql)){
if(StringUtils.isEmpty(sql)){
...
@@ -368,9 +367,9 @@ public class WarehouseController {
...
@@ -368,9 +367,9 @@ public class WarehouseController {