瀏覽代碼

权限用户信息查询语句优化

zhontai 3 年之前
父節點
當前提交
9f8d528455
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      Admin.Core.Service/Admin/Auth/AuthService.cs

+ 1 - 2
Admin.Core.Service/Admin/Auth/AuthService.cs

@@ -125,8 +125,7 @@ namespace Admin.Core.Service.Admin.Auth
             {
                 var authUserInfoOutput = new AuthUserInfoOutput { };
                 //用户信息
-                authUserInfoOutput.User = await _userRepository.Select.WhereDynamic(User.Id)
-                    .ToOneAsync<AuthUserProfileDto>();
+                authUserInfoOutput.User = await _userRepository.GetAsync<AuthUserProfileDto>(User.Id);
 
                 //用户菜单
                 authUserInfoOutput.Menus = await _permissionRepository.Select