|
|
|
@ -90,12 +90,18 @@ public partial class SeaExportService : ISeaExportService
|
|
|
|
|
//.LeftJoin<SysOrg>((a, b, c) => a.SaleOrgId == c.Id, "shippingweb8_dev.sys_org")
|
|
|
|
|
//.LeftJoin<SysOrg>((a, b, c) => a.SaleDeptId == c.Id, "shippingweb8_dev.sys_org")
|
|
|
|
|
.Select((a, b) => new SeaExportRes()
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
//SaleDeptName = c.OrgName,
|
|
|
|
|
},
|
|
|
|
|
true)//true表示 其余字段自动映射,根据字段名字
|
|
|
|
|
//.Select<SeaExportRes>()
|
|
|
|
|
.MergeTable()
|
|
|
|
|
.MergeTable()
|
|
|
|
|
.Mapper(it =>
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
it.BookingStatus = tenantDb.Queryable<BookingStatus>().Where(x => x.BusinessId == it.Id).Select<BookingStatusRes>().ToList();
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
.Where(whereList);
|
|
|
|
|
//.ToQueryPageAsync(request.PageCondition);
|
|
|
|
|
var list = result.ToList();
|
|
|
|
|