From 26bd7b11959f4223ae2dfd3e63582135487fbb34 Mon Sep 17 00:00:00 2001 From: zhangxiaofeng <1939543722@qq.com> Date: Fri, 12 Apr 2024 13:46:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=B2=E5=88=A0=E9=99=A4=E7=9A=84=E8=AE=A2?= =?UTF-8?q?=E8=88=B1=E6=8F=90=E7=A4=BA=E6=97=A0=E6=B3=95=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/BookingOrder/BookingOrderService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index 73fd8830..0c5d644b 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -1755,6 +1755,10 @@ namespace Myshipping.Application }; var mlist = await _rep.AsQueryable().Filter(null, true).Where(x => x.Id == input.Id).FirstAsync(); + if (mlist.IsDeleted) + { + throw Oops.Bah("当前单据为【已删除】状态,无法修改"); + } if (!string.IsNullOrEmpty(reqId)) {