|
|
|
@ -13559,7 +13559,7 @@ namespace Myshipping.Application
|
|
|
|
|
3、是合票的,找到主票和其他分票,并返回当前订单的完整详情。
|
|
|
|
|
*/
|
|
|
|
|
var orderList = await _rep.AsQueryable().Filter(null, true)
|
|
|
|
|
.Where(a => (a.MBLNO == mblNo || a.CUSTNO == mblNo) && a.IsDeleted == false).ToListAsync();
|
|
|
|
|
.Where(a => (a.MBLNO == mblNo || a.CUSTNO == mblNo) && a.IsDeleted == false && (a.ParentId == null || a.ParentId == 0)).ToListAsync();
|
|
|
|
|
|
|
|
|
|
var currOrder = orderList.FirstOrDefault(a => a.MBLNO == mblNo);
|
|
|
|
|
|
|
|
|
@ -13583,7 +13583,7 @@ namespace Myshipping.Application
|
|
|
|
|
|
|
|
|
|
//找到所有相关的分票
|
|
|
|
|
var list = await _rep.AsQueryable().Filter(null, true)
|
|
|
|
|
.Where(a => a.CUSTNO == mblNo && a.IsDeleted == false && a.Id != currOrder.Id).ToListAsync();
|
|
|
|
|
.Where(a => a.CUSTNO == mblNo && a.IsDeleted == false && a.Id != currOrder.Id && (a.ParentId == null || a.ParentId == 0)).ToListAsync();
|
|
|
|
|
|
|
|
|
|
model.otherOrderList = list.Select(b => new SeaExportOrderExtensionSubInfo
|
|
|
|
|
{
|
|
|
|
@ -13606,7 +13606,7 @@ namespace Myshipping.Application
|
|
|
|
|
|
|
|
|
|
//找到所有相关的分票
|
|
|
|
|
var list = await _rep.AsQueryable().Filter(null, true)
|
|
|
|
|
.Where(a => a.HBLNO == currOrder.HBLNO && a.IsDeleted == false && a.Id != currOrder.Id).ToListAsync();
|
|
|
|
|
.Where(a => a.HBLNO == currOrder.HBLNO && a.IsDeleted == false && a.Id != currOrder.Id && (a.ParentId == null || a.ParentId == 0)).ToListAsync();
|
|
|
|
|
|
|
|
|
|
model.otherOrderList = list.Select(b => new SeaExportOrderExtensionSubInfo
|
|
|
|
|
{
|
|
|
|
|