feat 电子餐券
This commit is contained in:
@@ -91,12 +91,6 @@ public class BalanceRecordEntity : SugarBaseEntity, ISoftDeleted, ITenantId
|
||||
[SugarColumn(ColumnDescription = "消费机器唯一信息", IsNullable = true)]
|
||||
public string DeviceUniqueNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 餐补月份
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "餐补月份")]
|
||||
public string SubsidiesFromMonth { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Ip
|
||||
/// </summary>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Kurisu.AspNetCore.DataAccess.SqlSugar;
|
||||
using Kurisu.AspNetCore.DataAccess.Entity;
|
||||
using Kurisu.AspNetCore.DataAccess.SqlSugar;
|
||||
using SqlSugar;
|
||||
|
||||
namespace Dlhis.Entity.Canteen.Entities;
|
||||
@@ -7,7 +8,7 @@ namespace Dlhis.Entity.Canteen.Entities;
|
||||
/// 电子餐券明细
|
||||
/// </summary>
|
||||
[SugarTable(TableName = "EMealVoucherDetail", TableDescription = "电子餐券明细")]
|
||||
public class EMealVoucherDetailEntity : SugarBaseEntity
|
||||
public class EMealVoucherDetailEntity : SugarBaseEntity, IVersion
|
||||
{
|
||||
/// <summary>
|
||||
/// 主表id
|
||||
@@ -18,7 +19,7 @@ public class EMealVoucherDetailEntity : SugarBaseEntity
|
||||
/// <summary>
|
||||
/// 流水号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "流水号")]
|
||||
[SugarColumn(ColumnDescription = "流水号", UniqueGroupNameList = new[] { "idx_EMealVoucherDetail_no_idno" })]
|
||||
public string No { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -30,7 +31,7 @@ public class EMealVoucherDetailEntity : SugarBaseEntity
|
||||
/// <summary>
|
||||
/// 身份证
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "序号")]
|
||||
[SugarColumn(ColumnDescription = "证件号", UniqueGroupNameList = new[] { "idx_EMealVoucherDetail_no_idno" })]
|
||||
public string IdNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -60,6 +61,16 @@ public class EMealVoucherDetailEntity : SugarBaseEntity
|
||||
/// <summary>
|
||||
/// 金额
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "金额", ColumnDataType = "decimal(16,2)")]
|
||||
public decimal Amount { get; set; }
|
||||
[SugarColumn(ColumnDescription = "余额", ColumnDataType = "decimal(16,2)")]
|
||||
public decimal Balance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 版本
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "版本")]
|
||||
public int Version { get; set; }
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(255)")]
|
||||
public string Signature { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using Kurisu.AspNetCore.DataAccess.SqlSugar;
|
||||
using SqlSugar;
|
||||
|
||||
namespace Dlhis.Entity.Canteen.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 电子餐券明细QrCode
|
||||
/// </summary>
|
||||
[SugarTable(TableName = "EMealVoucherDetailQrCode", TableDescription = "电子餐券明细QrCode")]
|
||||
public class EMealVoucherDetailQrCodeEntity : SugarBaseEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// url签名
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "varchar(255)", IndexGroupNameList = new[] { "idx_EMealVoucherDetailQrCode_signature" })]
|
||||
public string Signature { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 原始数据
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "原始数据")]
|
||||
public string OriginData { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 二维码
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "二维码", UniqueGroupNameList = new[] { "idx_EMealVoucherDetailQrCode_qrcode" })]
|
||||
public string QrCode { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user