1.04 #2

Merged
zzh merged 2 commits from test into master 2026-10-10 19:35:07 +08:00
Showing only changes of commit be95989392 - Show all commits

View File

@ -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,