fix删除用户后部门、用户角色数据未删除

This commit is contained in:
不做码农
2022-04-26 13:47:06 +08:00
parent b2a6dfd5c0
commit f4f0243d21
3 changed files with 36 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ namespace ZR.Repository.System
/// <returns></returns>
public SysUser SelectUserById(long userId)
{
return Context.Queryable<SysUser>().Where(f => f.UserId == userId).First();
return Context.Queryable<SysUser>().Filter(null, true).Where(f => f.UserId == userId).First();
}
/// <summary>