|
|
|
@ -64,13 +64,13 @@ namespace DS.WMS.Core.Application.Method
|
|
|
|
|
|
|
|
|
|
internal ISugarQueryable<InvoiceApplicationDto> CreateListQuery()
|
|
|
|
|
{
|
|
|
|
|
var query1 = TenantDb.Queryable<InvoiceApplication>().Where(x => x.Status == InvoiceApplicationStatus.AuditSubmittd)
|
|
|
|
|
var query1 = TenantDb.Queryable<InvoiceApplication>()
|
|
|
|
|
.InnerJoin<ApplicationDetail>((a, d) => a.Id == d.ApplicationId)
|
|
|
|
|
.InnerJoin<FeeRecord>((a, d, f) => d.RecordId == f.Id)
|
|
|
|
|
.LeftJoin<SeaExport>((a, d, f, s) => f.BusinessId == s.Id)
|
|
|
|
|
.LeftJoin<InfoClientBank>((a, d, f, s, b) => a.CustomerBankId == b.Id)
|
|
|
|
|
//.LeftJoin<SeaExport>((a, d, f, s) => f.BusinessId == s.Id)
|
|
|
|
|
//.LeftJoin<InfoClientBank>((a, d, f, s, b) => a.CustomerBankId == b.Id)
|
|
|
|
|
.GroupBy(a => a.Id)
|
|
|
|
|
.Select((a, d, s, b) => new InvoiceApplicationDto
|
|
|
|
|
.Select((a, d, f) => new InvoiceApplicationDto
|
|
|
|
|
{
|
|
|
|
|
Id = a.Id,
|
|
|
|
|
ApplicationNO = a.ApplicationNO,
|
|
|
|
|