optimize
wet 2 years ago
parent 250a1fa7ec
commit 3b97a08078

@ -77,7 +77,7 @@ 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<UserOutput>("u.*,t.Name As TenantName ").ToDataFilter("u", "Id", FilterType.User).OrderByDescending(u => u.Name)
.Select<UserOutput>("u.*,t.Name As TenantName ").ToDataFilter("u", "Id", FilterType.User)
.OrderBy(PageInputOrder.OrderBuilder(input.SortField, input.DescSort)).
ToPagedListAsync(input.PageNo, input.PageSize);

Loading…
Cancel
Save