From 0f6fe2326888870a1e8fde706e84c38d14cddc89 Mon Sep 17 00:00:00 2001 From: wet <1034391973@qq.com> Date: Mon, 12 Dec 2022 10:23:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/BookingOrder/BookingOrderService.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index 21d56ed1..31b2353b 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -292,7 +292,16 @@ namespace Myshipping.Application .Where(u => userlist.Contains((long)u.CreatedUserId)) .OrderBy(PageInputOrder.OrderBuilder(input.SortField,input.descSort)) .ToPagedListAsync(input.PageNo, input.PageSize); - return entities.XnPagedResult(); + var list = entities.Adapt>(); + + foreach (var item in list.Items) + { + var sta = await _repBookingStatus.AsQueryable().Where(x => x.BookingId == item.Id).ToListAsync(); + if (sta != null) { item.bookstatus = sta; } + + + } + return list; }