diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index 4de4e053..65b81de9 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -5662,7 +5662,7 @@ namespace Myshipping.Application var Forwarder = _cache.GetAllCodeForwarder().Result.Take(10).ToList(); var GoodsName = _paraGoodsInfoRepository.AsQueryable().OrderBy("GOODS_CODE asc").Take(50).ToList().Select(t => t.Adapt()).ToList(); var YFXY = _paraContractNoInfoRepository.AsQueryable().OrderBy("CONTRACT_NO asc").Take(10).ToList().Select(t => t.Adapt()).ToList(); ; - var User = _repUser.AsQueryable().Filter(null, true).Where(x => x.TenantId == UserManager.TENANT_ID).Take(10).OrderBy(x=>x.Name).ToListAsync(); + var User = _repUser.AsQueryable().Filter(null, true).Where(x => x.TenantId == UserManager.TENANT_ID).Take(10).OrderByDescending(x=>x.Name).ToListAsync(); var Service = _cache.GetAllCodeService().Result.Take(10).ToList(); dynamic obj = new { diff --git a/Myshipping.Core/Service/User/SysUserService.cs b/Myshipping.Core/Service/User/SysUserService.cs index 581ad687..48862e51 100644 --- a/Myshipping.Core/Service/User/SysUserService.cs +++ b/Myshipping.Core/Service/User/SysUserService.cs @@ -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) .WhereIF(tenantId != 0, x => x.TenantId == tenantId) .WhereIF(!string.IsNullOrWhiteSpace(name), x => x.Name.Contains(name)) - .OrderBy(x => x.Name).ToListAsync(); + .OrderByDescending(x => x.Name).ToListAsync(); } [HttpGet("/sysUser/DecryptPassword")]