日志数据隔离功能

master
ccongli 1 year ago
parent 6db4c6aab9
commit 3c78855ef6

@ -26,6 +26,9 @@ namespace VOL.Core.Tenancy
case "Sys_User":
multiTenancyString += $" where UserId='{UserContext.Current.UserId}'";
break;
case "Sys_Log":
multiTenancyString += $" where User_Id='{UserContext.Current.UserId}'";
break;
default:
//开启数租户数据隔离,用户只能看到自己的表数据(自己根据需要写条件做租户数据隔离)
multiTenancyString += $" where CreateID='{UserContext.Current.UserId}'";

Loading…
Cancel
Save