feat 优化消费过程
This commit is contained in:
@@ -10,7 +10,7 @@ namespace Dlhis.Entity.Canteen.Entities;
|
||||
/// 券
|
||||
/// </summary>
|
||||
[SugarTable("Tickets", TableDescription = "券")]
|
||||
public class TicketEntity : SugarBaseEntity, ITenantId
|
||||
public class TicketEntity : SugarBaseEntity, ITenantId, IVersion
|
||||
{
|
||||
/// <summary>
|
||||
/// 类型
|
||||
@@ -28,13 +28,13 @@ public class TicketEntity : SugarBaseEntity, ITenantId
|
||||
/// 初始余额
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "初始余额")]
|
||||
public decimal OriginalAmount { get; set; }
|
||||
public decimal OriginalBalance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前余额
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "当前余额")]
|
||||
public decimal Amount { get; set; }
|
||||
public decimal Balance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 消费码
|
||||
@@ -49,4 +49,7 @@ public class TicketEntity : SugarBaseEntity, ITenantId
|
||||
public string Remark { get; set; }
|
||||
|
||||
public string TenantId { get; set; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public int Version { get; set; }
|
||||
}
|
||||
@@ -37,6 +37,14 @@ public enum BalanceRecordSourceEnumType
|
||||
/// </summary>
|
||||
[Description("电子餐券")]
|
||||
EMealVoucher,
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 生日券
|
||||
/// </summary>
|
||||
[Description("生日券")]
|
||||
Birthday,
|
||||
|
||||
//*********************************************************************************************************
|
||||
|
||||
/// <summary>
|
||||
@@ -70,7 +78,7 @@ public enum BalanceRecordSourceEnumType
|
||||
/// </summary>
|
||||
[Description("其他基地餐补")]
|
||||
OtherTenantSubsidies,
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 余额写入
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user