From f3f03c3b40172977b51d4414dd5935835bd931c8 Mon Sep 17 00:00:00 2001 From: wet <1034391973@qq.com> Date: Thu, 18 May 2023 17:32:50 +0800 Subject: [PATCH] 1 --- Myshipping.Core/Service/User/SysUserService.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Myshipping.Core/Service/User/SysUserService.cs b/Myshipping.Core/Service/User/SysUserService.cs index 23a5bed6..25240fb8 100644 --- a/Myshipping.Core/Service/User/SysUserService.cs +++ b/Myshipping.Core/Service/User/SysUserService.cs @@ -77,15 +77,15 @@ public class SysUserService : ISysUserService, IDynamicApiController, ITransient o.Pids.Contains(pid.Trim())) .WhereIF(Enum.IsDefined(typeof(CommonStatus), input.SearchStatus), (u, e, o) => u.Status == input.SearchStatus) .Where((u, e, o) => u.AdminType == AdminType.None) - .Select("u.*,t.Name As TenantName ").ToDataFilter("u", "Id", FilterType.User) + .Select("u.*,t.Name As TenantName,o.name as orgName ").ToDataFilter("u", "Id", FilterType.User) .OrderBy(PageInputOrder.OrderBuilder(input.SortField, input.DescSort)). ToPagedListAsync(input.PageNo, input.PageSize); - var empInfos = await _sysEmpService.GetEmpInfo(users.Items.Select(m => long.Parse(m.Id)).ToList()); - foreach (var user in users.Items) - { - user.SysEmpInfo = empInfos.FirstOrDefault(m => m.Id == long.Parse(user.Id)); - } + //var empInfos = await _sysEmpService.GetEmpInfo(users.Items.Select(m => long.Parse(m.Id)).ToList()); + //foreach (var user in users.Items) + //{ + // user.SysEmpInfo = empInfos.FirstOrDefault(m => m.Id == long.Parse(user.Id)); + //} //foreach (var user in users.Items) //{