fix: /order/update 加事务 UoW,跟踪号变更可写 Outbox
Some checks failed
Build and Deploy / deploy (push) Failing after 58s
Some checks failed
Build and Deploy / deploy (push) Failing after 58s
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
e931606a75
commit
45361e9eb5
@ -1,5 +1,7 @@
|
|||||||
|
using System.Data;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using Fake.Application;
|
using Fake.Application;
|
||||||
|
using Fake.UnitOfWork;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using Oms.Application.Dtos.Channels;
|
using Oms.Application.Dtos.Channels;
|
||||||
@ -24,8 +26,10 @@ public partial class OrderService
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 编辑订单详情(基本信息、发件人、收件人)。
|
/// 编辑订单详情(基本信息、发件人、收件人)。
|
||||||
|
/// 跟踪号变更时会写轨迹 Upsert Outbox,须事务性 UoW。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[HttpPost("/order/update")]
|
[HttpPost("/order/update")]
|
||||||
|
[UnitOfWork(IsTransactional = true, IsolationLevel = IsolationLevel.ReadCommitted)]
|
||||||
public async Task<OrderOutput> UpdateOrderDetailAsync(OrderUpdateInput input)
|
public async Task<OrderOutput> UpdateOrderDetailAsync(OrderUpdateInput input)
|
||||||
{
|
{
|
||||||
var order = await GetOrderOrThrowAsync(input.Id);
|
var order = await GetOrderOrThrowAsync(input.Id);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user