[後端] 修改前台getdevice 樓層判斷
This commit is contained in:
parent
91f04e6122
commit
881366d53f
@ -610,7 +610,7 @@ namespace FrontendWebApi.ApiControllers
|
||||
{(string.IsNullOrEmpty(singleSubSql) ? $"and di.device_name_tag = '{post.sub_system_tag}'" : singleSubSql)}
|
||||
limit 1000
|
||||
) di on di.device_name_tag = d.device_name_tag
|
||||
left join floor f on d.device_floor_tag = f.full_name and f.deleted = 0
|
||||
left join floor f on d.device_floor_tag = f.full_name and f.deleted = 0 and d.device_building_tag = f.building_tag
|
||||
{disasterjoinsql}
|
||||
LEFT JOIN building_menu bm ON d.device_building_tag = bm.building_tag AND d.device_system_tag = bm.main_system_tag AND d.device_name_tag = bm.sub_system_tag
|
||||
where d.deleted = 0 and d.is_link = 1 and d.device_building_tag = '{post.building_tag}' {sWhere}
|
||||
|
Loading…
Reference in New Issue
Block a user