diff --git a/FrontendWebApi/ApiControllers/AlarmRecordController.cs b/FrontendWebApi/ApiControllers/AlarmRecordController.cs index 033a8ca..5daf8be 100644 --- a/FrontendWebApi/ApiControllers/AlarmRecordController.cs +++ b/FrontendWebApi/ApiControllers/AlarmRecordController.cs @@ -50,14 +50,14 @@ namespace FrontendWebApi.ApiControllers b.building_tag, b.full_name AS building_name, v1.system_value, - v1.system_key AS main_system_name + v1.system_key FROM building_menu bm INNER JOIN ( SELECT ap.building_tag, ap.ShowView FROM role_auth ra 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 ) ap ON bm.building_tag = ap.building_tag LEFT JOIN building b ON bm.building_tag = b.building_tag