optimize
wet 2 years ago
parent b629451ec7
commit 1e687e3325

@ -5663,7 +5663,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<ParaGoodsShowDto>()).ToList();
var YFXY = _paraContractNoInfoRepository.AsQueryable().OrderBy("CONTRACT_NO asc").Take(10).ToList().Select(t => t.Adapt<ParaContractNoShowDto>()).ToList(); ;
var User = await _repUser.AsQueryable().Filter(null, true).Where(x => x.TenantId == UserManager.TENANT_ID && x.Status == CommonStatus.ENABLE && x.IsDeleted == false).OrderByDescending(x => x.Name).ToListAsync();
var User = await _repUser.AsQueryable().Filter(null, true).Where(x => x.TenantId == UserManager.TENANT_ID && x.Status == CommonStatus.ENABLE && x.IsDeleted == false).ToListAsync();
var Service = _cache.GetAllCodeService().Result.Take(10).ToList();
dynamic obj = new
{
@ -5679,7 +5679,7 @@ namespace Myshipping.Application
WTDW = WTDW,
DCDL = DCDL,
GoodsName = GoodsName,
User = User.OrderByDescending(x => x.Name).ToList(),
User = User.OrderBy(x => x.Name).ToList(),
Forwarder = Forwarder,
Service = Service,
contractno = YFXY,

Loading…
Cancel
Save