fix 字段名称,消费金额,实体注解

This commit is contained in:
2024-01-11 14:26:52 +08:00
parent 7aa907a049
commit 1e98d9816a
3 changed files with 4 additions and 6 deletions

View File

@@ -193,7 +193,7 @@ public class OrderService : IOrderService
}
var effect = await _dbContext.Updateable<CanteenUserEntity>()
.SetColumns(x => x.Balance == canteenUser.Balance + order.Amount)
.SetColumns(x => x.Balance == canteenUser.Balance)
.SetColumns(x => x.Version == x.Version + 1)
.Where(x => x.UserNo == order.UserNo && x.Version == canteenUser.Version)//必须与查询时的version一致
.ExecuteCommandAsync();