fix: UpdateOrderAsync 改用 UpdateColumnAsync,真正更新 TrackNo
All checks were successful
Build and Deploy / deploy (push) Successful in 49s
All checks were successful
Build and Deploy / deploy (push) Successful in 49s
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
76c8a83368
commit
be95989392
@ -254,8 +254,9 @@ public class OrderRepository : BasicRepository<OrderEntity>, IOrderRepository, I
|
|||||||
{
|
{
|
||||||
using var tran = TransactionHelper.GetReadCommitted();
|
using var tran = TransactionHelper.GetReadCommitted();
|
||||||
|
|
||||||
// 更新订单主表(Upsert 业务字段;勿只更 Customer/AppKey)
|
// 注意:UpdateAsync(entity, cols) 的 cols 是 IgnoreColumns;
|
||||||
await UpdateAsync(order, x => new
|
// 指定要更新的列必须用 UpdateColumnAsync。
|
||||||
|
await UpdateColumnAsync(order, x => new
|
||||||
{
|
{
|
||||||
x.Customer,
|
x.Customer,
|
||||||
x.AppKey,
|
x.AppKey,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user