feat 生日券功能,自动上传消费数据,提醒访客到期

This commit is contained in:
2025-12-09 11:35:05 +08:00
parent 323eb367d0
commit c1462a03dc
60 changed files with 1451 additions and 409 deletions

View File

@@ -0,0 +1,57 @@
using Dlhis.Entity.Canteen.Enums;
using Kurisu.AspNetCore.DataAccess.Entity;
using Kurisu.AspNetCore.DataAccess.SqlSugar;
using SqlSugar;
using SqlSugar.DbConvert;
namespace Dlhis.Entity.Canteen.Entities.Voucher;
/// <summary>
/// 券
/// </summary>
[SugarTable("Vouchers", TableDescription = "券")]
public class VoucherEntity : SugarBaseEntity, IVersion
{
/// <summary>
/// 券唯一标识
/// </summary>
[SugarColumn(IsNullable = false, ColumnDescription = "券唯一标识")]
public string No { get; set; }
/// <summary>
/// 获取日期时间
/// </summary>
public DateTime ClaimDateTime { get; set; }
/// <summary>
/// 类型
/// </summary>
[SugarColumn(IsNullable = false, ColumnDataType = "varchar(50)", ColumnDescription = "券类型", SqlParameterDbType = typeof(EnumToStringConvert))]
public VoucherEnumType Type { get; set; }
/// <summary>
/// 初始余额
/// </summary>
[SugarColumn(IsNullable = false, ColumnDescription = "初始余额")]
public decimal OriginalBalance { get; set; }
/// <summary>
/// 当前余额
/// </summary>
[SugarColumn(IsNullable = false, ColumnDescription = "当前余额")]
public decimal Balance { get; set; }
/// <summary>
/// 描述
/// </summary>
[SugarColumn(IsNullable = true, ColumnDescription = "描述")]
public string Description { get; set; }
/// <summary>
/// 备注
/// </summary>
[SugarColumn(IsNullable = true, ColumnDescription = "备注")]
public string Remark { get; set; }
public int Version { get; set; }
}