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);