|
|
|
@ -113,6 +113,7 @@ namespace Myshipping.Application
|
|
|
|
|
private readonly SqlSugarRepository<DjyCustomer> _djycustomer;
|
|
|
|
|
private readonly SqlSugarRepository<BookingTemplate> _bookingTemplate;
|
|
|
|
|
private readonly SqlSugarRepository<ParaGoodsInfo> _paraGoodsInfoRepository;
|
|
|
|
|
private readonly SqlSugarRepository<ParaContractNoInfo> _paraContractNoInfoRepository;
|
|
|
|
|
private readonly IHttpContextAccessor _httpContextAccessor;
|
|
|
|
|
private readonly IBookingGoodsStatusConfigService _GoodsConfig;
|
|
|
|
|
const string CONST_MAPPING_MODULE = "BOOK_OR_CLOSING";
|
|
|
|
@ -128,7 +129,7 @@ namespace Myshipping.Application
|
|
|
|
|
SqlSugarRepository<BookingOrderUrl> repOrderUrl, SqlSugarRepository<BookingOrderContact> repOrderContact, SqlSugarRepository<BookingSampleBill> repSampleBill, SqlSugarRepository<DjyCustomer> djycustomer,
|
|
|
|
|
SqlSugarRepository<BookingExcelTemplate> excelrep, SqlSugarRepository<DjyUserMailAccount> repUserMail, SqlSugarRepository<BookingGoodsStatus> goodsStatus, SqlSugarRepository<BookingGoodsStatusConfig> goodsStatusConfig,
|
|
|
|
|
SqlSugarRepository<SysTenant> repTenant, SqlSugarRepository<BookingStatus> repBookingStatus, SqlSugarRepository<BookingEDIExt> bookingEDIExt, SqlSugarRepository<BookingServiceItem> serviceItem,
|
|
|
|
|
IHttpContextAccessor httpContextAccessor, IBookingGoodsStatusConfigService GoodsConfig)
|
|
|
|
|
SqlSugarRepository<ParaContractNoInfo> paraContractNoInfoRepository, IHttpContextAccessor httpContextAccessor, IBookingGoodsStatusConfigService GoodsConfig)
|
|
|
|
|
{
|
|
|
|
|
this._logger = logger;
|
|
|
|
|
this._rep = rep;
|
|
|
|
@ -162,6 +163,7 @@ namespace Myshipping.Application
|
|
|
|
|
this._bookingTemplate = bookingTemplate;
|
|
|
|
|
this._djycustomer = djycustomer;
|
|
|
|
|
this._paraGoodsInfoRepository = paraGoodsInfoRepository;
|
|
|
|
|
this._paraContractNoInfoRepository = paraContractNoInfoRepository;
|
|
|
|
|
_httpContextAccessor = httpContextAccessor;
|
|
|
|
|
_GoodsConfig = GoodsConfig;
|
|
|
|
|
}
|
|
|
|
@ -5150,11 +5152,6 @@ namespace Myshipping.Application
|
|
|
|
|
return allData;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///获取下拉前10条接口
|
|
|
|
|
/// </summary>
|
|
|
|
@ -5184,9 +5181,9 @@ namespace Myshipping.Application
|
|
|
|
|
var Customer = _djycustomer.AsQueryable().Filter(null, true).Where(x => x.TenantId == UserManager.TENANT_ID).Take(10).ToList();
|
|
|
|
|
|
|
|
|
|
var Forwarder = _cache.GetAllCodeForwarder().Result.Take(10).ToList();
|
|
|
|
|
var Contractno = _paraGoodsInfoRepository.AsQueryable().OrderBy("GOODS_CODE asc").Take(50).ToList().Select(t => t.Adapt<ParaGoodsShowDto>()).ToList();
|
|
|
|
|
var GoodsName = _paraGoodsInfoRepository.AsQueryable().OrderBy("GOODS_CODE asc").Take(50).ToList().Select(t => t.Adapt<ParaGoodsShowDto>()).ToList();
|
|
|
|
|
var superAdmin = UserManager.IsSuperAdmin;
|
|
|
|
|
|
|
|
|
|
var contractno = _paraContractNoInfoRepository.AsQueryable().Take(10).Select(t => t.Adapt<ParaGoodsCategoryShowDto>()).ToList();
|
|
|
|
|
var User = _repUser.AsQueryable().InnerJoin<SysEmp>((u, e) => u.Id == e.Id)
|
|
|
|
|
.InnerJoin<SysOrg>((u, e, o) => e.OrgId == o.Id)
|
|
|
|
|
.InnerJoin<SysTenant>((u, e, o, t) => u.TenantId == t.Id)
|
|
|
|
@ -5203,13 +5200,20 @@ namespace Myshipping.Application
|
|
|
|
|
Port = Port,
|
|
|
|
|
Template = Template,
|
|
|
|
|
Customer = Customer,
|
|
|
|
|
Contractno = Contractno,
|
|
|
|
|
GoodsName = GoodsName,
|
|
|
|
|
User = User,
|
|
|
|
|
Forwarder = Forwarder,
|
|
|
|
|
Service= Service
|
|
|
|
|
Service = Service,
|
|
|
|
|
contractno = contractno
|
|
|
|
|
};
|
|
|
|
|
return obj;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|