From 14d0c0099f2113b50022b270cd0d28570b246704 Mon Sep 17 00:00:00 2001 From: wet <1034391973@qq.com> Date: Tue, 3 Jan 2023 15:20:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E8=B8=AA?= 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 8720bd62..cf5bfc87 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -834,7 +834,7 @@ namespace Myshipping.Application public async Task> GetBookingStatusLog(long Id) { - var statuslog = await _repStatuslog.AsQueryable().Filter(null, true).Where(x => x.BookingId == Id).ToListAsync(); + var statuslog = await _repStatuslog.AsQueryable().Filter(null, true).Where(x => x.BookingId == Id&&(x.Category== "yunzong"|| x.Category == "dingyue")).ToListAsync(); var dto = statuslog.Adapt>(); foreach (var item in dto) { @@ -852,7 +852,7 @@ namespace Myshipping.Application public async Task> GetBookingStatus(long Id) { - var dto = await _repBookingStatus.AsQueryable().Filter(null, true).Where(x => x.BookingId == Id).ToListAsync(); + var dto = await _repBookingStatus.AsQueryable().Where(x => x.BookingId == Id).ToListAsync(); return dto; } @@ -948,7 +948,7 @@ namespace Myshipping.Application }); var bookingStatusLog = new BookingStatusLog(); bookingStatusLog.BookingId = Convert.ToInt64(item.BusinessId); - bookingStatusLog.Category = "ship"; + bookingStatusLog.Category = "dingyue"; bookingStatusLog.CreatedTime = DateTime.Now; if (string.IsNullOrWhiteSpace(item.YardCode) && !string.IsNullOrWhiteSpace(item.CARRIERID)) { @@ -1012,8 +1012,8 @@ namespace Myshipping.Application public async Task AddBookingStatusLog(List all) { //清空原有数据 - var old = await _repStatuslog.AsQueryable().Where(x => x.BookingId == all[0].BookingId && x.Category == "ship").ToListAsync(); - await _repStatuslog.DeleteAsync(x => x.BookingId == all[0].BookingId && x.Category == "ship"); + var old = await _repStatuslog.AsQueryable().Where(x => x.BookingId == all[0].BookingId && x.Category == "yunzong").ToListAsync(); + await _repStatuslog.DeleteAsync(x => x.BookingId == all[0].BookingId && x.Category == "yunzong"); foreach (var ot in old) { await _statuslogdetail.DeleteAsync(x => x.PId == ot.Id); @@ -1025,7 +1025,7 @@ namespace Myshipping.Application //新增数据 var bookingStatusLog = new BookingStatusLog(); bookingStatusLog.BookingId = item.BookingId; - bookingStatusLog.Category = "ship"; + bookingStatusLog.Category = "yunzong"; bookingStatusLog.CreatedTime = DateTime.Now; bookingStatusLog.Status = item.Status; bookingStatusLog.OpTime = item.OpTime;