From 8f11de034b1546b64a3be49cc162f37497de5f83 Mon Sep 17 00:00:00 2001 From: wet <1034391973@qq.com> Date: Tue, 14 Mar 2023 10:11:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/BookingOrder/BookingOrderService.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index 18d861e5..84c6f368 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -4595,23 +4595,23 @@ namespace Myshipping.Application var statuslog = await _repStatuslog.AsQueryable().Filter(null, true).Where(x => x.BookingId == bookingId).OrderByDescending(x => x.OpTime).ToListAsync(); var dto = statuslog.Adapt>(); - var statuslogdetail = _statuslogdetail.AsQueryable(); + var statuslogdetail =await _statuslogdetail.AsQueryable().ToListAsync(); foreach (var item in dto) { - var detail =await statuslogdetail.Where(x => x.PId == item.Id).ToListAsync(); + var detail = statuslogdetail.Where(x => x.PId == item.Id).ToList(); item.detail = detail.Adapt>(); } allData.statuslog = dto; - var bookinglog = _bookinglog.AsQueryable(); + var bookinglog =await _bookinglog.AsQueryable().ToListAsync(); List list = new List(); - var main = await bookinglog.Where(u => u.BookingId == bookingId).ToListAsync(); + var main = bookinglog.Where(u => u.BookingId == bookingId).ToList(); list = main.Adapt>(); if (list != null) { - var bookinglogdetail = _bookinglogdetail.AsQueryable(); + var bookinglogdetail = await _bookinglogdetail.AsQueryable().ToListAsync(); foreach (var item in list) { - var details = await bookinglogdetail.Where(x => x.PId == item.Id).ToListAsync(); + var details = bookinglogdetail.Where(x => x.PId == item.Id).ToList(); item.details = details; } }