154 lines
4.9 KiB
C#
154 lines
4.9 KiB
C#
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;
|
|
|
|
/// <summary>
|
|
/// 充值/消费记录
|
|
/// </summary>
|
|
[SugarTable(TableName = "BalanceRecord", TableDescription = "充值/消费记录")]
|
|
public class BalanceRecordEntity : SugarBaseEntity, ISoftDeleted, ITenantId
|
|
{
|
|
/// <summary>
|
|
/// 流水号
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "流水号", UniqueGroupNameList = new[] { "Unique_BalanceRecord_No" })]
|
|
public string No { get; set; }
|
|
|
|
/// <summary>
|
|
/// 档案号/QRCode
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "档案号/QRCode")]
|
|
public string UserNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// 姓名
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "姓名")]
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// 学工号
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "学工号")]
|
|
public string UserCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 部门号
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true, ColumnDescription = "部门号")]
|
|
public string DepartmentNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// 来源
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert), ColumnDescription = "来源")]
|
|
public BalanceRecordSourceEnumType Source { get; set; }
|
|
|
|
/// <summary>
|
|
/// 收入/支出
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert), ColumnDescription = "收入/支出")]
|
|
public BalanceRecordTypeEnumType Type { get; set; }
|
|
|
|
/// <summary>
|
|
/// 金额 + - 表示
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "金额+-表示")]
|
|
public decimal Amount { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 营业点
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true, ColumnDescription = "营业点")]
|
|
public Guid? BusinessPlaceCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 餐别
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true, ColumnDescription = "餐别")]
|
|
public Guid? BusinessShiftCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 餐次
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true, ColumnDescription = "餐次", ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
|
|
public ShiftEnumType? ShiftType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 所属成本日期
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDataType = "date", ColumnDescription = "所属成本日期")]
|
|
public DateTime CostDate { get; set; }
|
|
|
|
/// <summary>
|
|
/// 消费机器唯一信息
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true, ColumnDescription = "消费机器唯一信息")]
|
|
public string DeviceUniqueNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// Ip
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true, ColumnDescription = "IP")]
|
|
public string IP { get; set; }
|
|
|
|
/// <summary>
|
|
/// 成本中心
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true, ColumnDescription = "成本中心")]
|
|
public string CostId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 消费者所在基地
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "消费者所在基地")]
|
|
public string OriginTenantId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 成本计算是否允许跨基地范围
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDataType = "bit", ColumnDescription = "成本计算是否允许跨基地范围")]
|
|
public bool IsCostCrossTenant { get; set; }
|
|
|
|
/// <summary>
|
|
/// 数据状态
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert), ColumnDescription = "数据状态")]
|
|
public BalanceRecordStatusEnumType Status { get; set; }
|
|
|
|
/// <summary>
|
|
/// 消费时间
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "消费时间")]
|
|
public DateTime CostDateTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true, ColumnDescription = "备注")]
|
|
public string Remark { get; set; }
|
|
|
|
/// <summary>
|
|
/// 餐饮应用类型
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "餐饮应用类型", ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
|
|
public CanteenApplicationTypeEnumType ApplicationType { get; set; }
|
|
|
|
[SugarColumn(IsNullable = false)]
|
|
public string TenantId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 人事范围
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public string Werks { get; set; }
|
|
|
|
|
|
[SugarColumn(IsNullable = false, ColumnDataType = "bit")]
|
|
public bool IsDeleted { get; set; }
|
|
} |