|
|
|
@ -40,20 +40,14 @@ namespace DS.WMS.Core.Application.Method
|
|
|
|
|
|
|
|
|
|
if (!request.QueryCondition.IsNullOrEmpty())
|
|
|
|
|
{
|
|
|
|
|
var whereList = Db.ConfigQuery.Context.Utilities.JsonToConditionalModels(request.QueryCondition);
|
|
|
|
|
|
|
|
|
|
//设置了状态筛选
|
|
|
|
|
if (request.OtherQueryCondition.HasValue)
|
|
|
|
|
{
|
|
|
|
|
if (request.OtherQueryCondition.Value)
|
|
|
|
|
query = query.Where(x => x.Status == InvoiceApplicationStatus.AuditPassed || x.Status == InvoiceApplicationStatus.AuditRejected);
|
|
|
|
|
else
|
|
|
|
|
query = query.Where(x => x.Status == InvoiceApplicationStatus.AuditSubmittd);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var whereList = request.GetConditionalModels(Db);
|
|
|
|
|
query = query.Where(whereList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//设置了状态筛选
|
|
|
|
|
if (request.OtherQueryCondition.GetValueOrDefault())
|
|
|
|
|
query = query.Where(a => a.Status == InvoiceApplicationStatus.AuditSubmittd);
|
|
|
|
|
|
|
|
|
|
var result = await query.GroupBy(x => x.Id).ToQueryPageAsync(request.PageCondition);
|
|
|
|
|
if (result.Data.Count > 0)
|
|
|
|
|
{
|
|
|
|
@ -75,6 +69,7 @@ namespace DS.WMS.Core.Application.Method
|
|
|
|
|
.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)
|
|
|
|
|
.GroupBy(a => a.Id)
|
|
|
|
|
.Select((a, d, s, b) => new InvoiceApplicationDto
|
|
|
|
|
{
|
|
|
|
|
Id = a.Id,
|
|
|
|
|