|
|
|
@ -96,13 +96,14 @@ namespace DS.WMS.Core.Application.Method
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public async Task<DataResult<List<BizInvoiceApplication>>> GetBizListAsync(PageRequest<FeeRange?> request)
|
|
|
|
|
public async Task<DataResult<List<BizInvoiceApplication>>> GetBizListAsync(PageRequest<InvoiceApplicationQuery?> request)
|
|
|
|
|
{
|
|
|
|
|
var query = CreateBizQuery(request.GetConditionalModels(Db));
|
|
|
|
|
if (request.OtherQueryCondition.HasValue)
|
|
|
|
|
if (request.OtherQueryCondition != null)
|
|
|
|
|
{
|
|
|
|
|
FeeRange feeRange = request.OtherQueryCondition.Value;
|
|
|
|
|
switch (feeRange)
|
|
|
|
|
if (request.OtherQueryCondition.FeeRange.HasValue)
|
|
|
|
|
{
|
|
|
|
|
switch (request.OtherQueryCondition.FeeRange)
|
|
|
|
|
{
|
|
|
|
|
case FeeRange.Unsettled:
|
|
|
|
|
query = query.Where(x => x.SettlementAmount == 0);
|
|
|
|
@ -136,6 +137,14 @@ namespace DS.WMS.Core.Application.Method
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (!string.IsNullOrEmpty(request.OtherQueryCondition.Number))
|
|
|
|
|
{
|
|
|
|
|
query = query.Where(x => x.MBLNO.Contains(request.OtherQueryCondition.Number) ||
|
|
|
|
|
x.CustomerNo.Contains(request.OtherQueryCondition.Number) ||
|
|
|
|
|
x.CustomerNum.Contains(request.OtherQueryCondition.Number) ||
|
|
|
|
|
x.BookingNo.Contains(request.OtherQueryCondition.Number));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var result = await query.ToQueryPageAsync(request.PageCondition);
|
|
|
|
|
if (result.Data.Count > 0)
|
|
|
|
@ -191,7 +200,7 @@ namespace DS.WMS.Core.Application.Method
|
|
|
|
|
SaleName = s.Sale,//揽货人
|
|
|
|
|
Vessel = s.Vessel,//船名
|
|
|
|
|
Voyage = s.Voyage,//航次
|
|
|
|
|
BookingNO = s.BookingNo,
|
|
|
|
|
BookingNo = s.BookingNo,
|
|
|
|
|
StlName = s.StlName,
|
|
|
|
|
OrderAmount = SqlFunc.Subqueryable<FeeRecord>().Where(f => f.BusinessId == s.BusinessId).Sum(f => f.OrderAmount),
|
|
|
|
|
InvoiceAmount = SqlFunc.Subqueryable<FeeRecord>().Where(f => f.BusinessId == s.BusinessId).Sum(f => f.InvoiceAmount),
|
|
|
|
|