|
|
|
@ -77,7 +77,8 @@ 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).OrderByDescending(u => u.Name)
|
|
|
|
|
.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());
|
|
|
|
@ -586,7 +587,7 @@ public class SysUserService : ISysUserService, IDynamicApiController, ITransient
|
|
|
|
|
return await _sysUserRep.AsQueryable().Filter(null, true).WhereIF(tenantId == 0, x => x.TenantId == Convert.ToInt64(UserManager.TENANT_ID) && x.Status == CommonStatus.ENABLE&&x.IsDeleted==false)
|
|
|
|
|
.WhereIF(tenantId != 0, x => x.TenantId == tenantId)
|
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(name), x => x.Name.Contains(name))
|
|
|
|
|
.OrderByDescending(x => x.Name).ToListAsync();
|
|
|
|
|
.OrderBy(x => x.Name).ToListAsync();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[HttpGet("/sysUser/DecryptPassword")]
|
|
|
|
|