From 45361e9eb5c2008b4216bbc8ca52ffcd03254da7 Mon Sep 17 00:00:00 2001 From: zzh <1368735060@qq.com> Date: Tue, 20 Oct 2026 10:49:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20/order/update=20=E5=8A=A0=E4=BA=8B?= =?UTF-8?q?=E5=8A=A1=20UoW=EF=BC=8C=E8=B7=9F=E8=B8=AA=E5=8F=B7=E5=8F=98?= =?UTF-8?q?=E6=9B=B4=E5=8F=AF=E5=86=99=20Outbox?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- src/Oms.Application/Services/Orders/OrderService.OrderEdit.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Oms.Application/Services/Orders/OrderService.OrderEdit.cs b/src/Oms.Application/Services/Orders/OrderService.OrderEdit.cs index 2fad81d..88b9ece 100644 --- a/src/Oms.Application/Services/Orders/OrderService.OrderEdit.cs +++ b/src/Oms.Application/Services/Orders/OrderService.OrderEdit.cs @@ -1,5 +1,7 @@ +using System.Data; using System.Globalization; using Fake.Application; +using Fake.UnitOfWork; using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json; using Oms.Application.Dtos.Channels; @@ -24,8 +26,10 @@ public partial class OrderService /// /// 编辑订单详情(基本信息、发件人、收件人)。 + /// 跟踪号变更时会写轨迹 Upsert Outbox,须事务性 UoW。 /// [HttpPost("/order/update")] + [UnitOfWork(IsTransactional = true, IsolationLevel = IsolationLevel.ReadCommitted)] public async Task UpdateOrderDetailAsync(OrderUpdateInput input) { var order = await GetOrderOrThrowAsync(input.Id);