增加了初始数据处理
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user