增加了初始数据处理

This commit is contained in:
2025-05-16 14:51:31 +08:00
parent 0e44b7d2ec
commit 553f3c9b01
11 changed files with 215 additions and 12 deletions

View File

@@ -56,7 +56,7 @@ namespace BarCode.Web.Domain.Entitys
///当次序号,用来记录当次所产生时所处的序列号
/// </summary>
[Column("thisNumber")]
public int thisNumber { get; set; } = 1;
public int? thisNumber { get; set; } = 1;
/// <summary>
/// 序列号
@@ -210,6 +210,18 @@ namespace BarCode.Web.Domain.Entitys
this.SuitNumber = sn;
}
/// <summary>
/// 设置thisNumber
/// </summary>
/// <param name="sn"></param>
public void SetThisNumber(int sn)
{
this.thisNumber = sn;
}
/// <summary>
/// 产生第二个序列号
/// </summary>