screen-api/src/main/resources/mapper/DeviceMapper.xml
@@ -257,7 +257,7 @@ #{id} </foreach> </if> inner JOIN device_map_hierarchy as dm on d.id = dm.device_id left JOIN device_map_hierarchy as dm on d.id = dm.device_id <if test="tableName !=null"> left join history_hourly${tableName} hd on hd.time = #{start} and d.mac = hd.mac </if>