[後端] 修改getAlarmRecordFilterPanel api

This commit is contained in:
dev02 2023-05-22 15:24:16 +08:00
parent 568a9e7e53
commit 9026166004

View File

@ -50,14 +50,14 @@ namespace FrontendWebApi.ApiControllers
b.building_tag, b.building_tag,
b.full_name AS building_name, b.full_name AS building_name,
v1.system_value, v1.system_value,
v1.system_key AS main_system_name v1.system_key
FROM building_menu bm FROM building_menu bm
INNER JOIN ( INNER JOIN (
SELECT SELECT
ap.building_tag, ap.ShowView ap.building_tag, ap.ShowView
FROM role_auth ra FROM role_auth ra
JOIN auth_page ap ON ra.AuthCode = ap.AuthCode JOIN auth_page ap ON ra.AuthCode = ap.AuthCode
JOIN userinfo u ON u.role_guid = ra.role_guid WHERE u.account = 'Bajascript' JOIN userinfo u ON u.role_guid = ra.role_guid WHERE u.account = @Account
AND ap.building_tag IS NOT NULL AND ap.building_tag IS NOT NULL
) ap ON bm.building_tag = ap.building_tag ) ap ON bm.building_tag = ap.building_tag
LEFT JOIN building b ON bm.building_tag = b.building_tag LEFT JOIN building b ON bm.building_tag = b.building_tag