// 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(i).getDevice()+"\" where \"tdl\" = \'"+t+"\' GROUP BY \"tdl\" order by time desc limit 1";
select warehouseNo, w.img,warehouseName,CONCAT_WS("-",c.country,c.city) regions, (select count(id) from tdldevice t where t.warehouse_id = w.id ) count
select warehouseNo, warehouseName,CONCAT_WS("-",c.country,c.city) regions,c.country,c.city, (select count(id) from tdldevice t where t.warehouse_id = w.id ) count,property,type,hardwareLevel,areaPlanIndoor
from warehouse w ,company c ,city ct
where c.id=w.company_id
and ct.id = w.city_id
...
...
@@ -225,24 +225,17 @@
<iftest="city!=null">
AND ct.city like CONCAT(CONCAT('%',#{city,jdbcType=VARCHAR}), '%')
</if>
<iftest="property!=null">
AND property=#{property,jdbcType=VARCHAR}
</if>
<iftest="type!=null">
AND type=#{type,jdbcType=VARCHAR}
</if>
<iftest="hardwareLevel!=null">
AND hardwareLevel=#{hardwareLevel,jdbcType=VARCHAR}