[後端] 修改權限列表判斷

This commit is contained in:
dev02 2023-12-01 10:50:32 +08:00
parent 5921479a43
commit 91f04e6122

View File

@ -523,7 +523,7 @@ namespace Backend.Controllers
var sqlString = @$" SELECT ap.AuthCode, ap.MainName, ap.SubName, ap.ShowView FROM auth_page ap var sqlString = @$" SELECT ap.AuthCode, ap.MainName, ap.SubName, ap.ShowView FROM auth_page ap
WHERE ap.AuthType='{post.SelectedAuthType}' WHERE ap.AuthType='{post.SelectedAuthType}'
{buildingGuid} {buildingGuid}
and ap.subname is not null and ap.showview is not null and ap.subname is not null and ap.showview is not null and ap.mainname is not null
AND ap.AuthCode NOT IN ( AND ap.AuthCode NOT IN (
SELECT ra.AuthCode FROM role_auth ra SELECT ra.AuthCode FROM role_auth ra
LEFT JOIN auth_page ap ON ra.AuthCode = ap.AuthCode LEFT JOIN auth_page ap ON ra.AuthCode = ap.AuthCode