From 47c553b3195ae20a14c25e25b714dc9684e3b36d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?old=E6=98=93?= <156663459@qq.com> Date: Mon, 22 Jan 2024 16:17:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98bug=20fixed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- New_College.Services/V_OrderInfoServices.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/New_College.Services/V_OrderInfoServices.cs b/New_College.Services/V_OrderInfoServices.cs index c388015..72e7ae8 100644 --- a/New_College.Services/V_OrderInfoServices.cs +++ b/New_College.Services/V_OrderInfoServices.cs @@ -336,11 +336,11 @@ namespace New_College.Services if (cc) { var oldorderlist = await _dal.Query(c => c.Id != model.Id && c.CustomerId == model.CustomerId); - oldorderlist.ForEach(c => + oldorderlist.ForEach(async c => { c.Status = EnumOrderType.Cancel; + await _dal.Update(c); }); - await _dal.Update(oldorderlist); _unitOfWork.CommitTran(); status = true;