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