修改规格
This commit is contained in:
@@ -104,6 +104,12 @@ namespace BarCode.Web.Domain.Entitys
|
||||
/// </summary>
|
||||
[Column("Old_MaterialNumber")]
|
||||
public string? Old_MaterialNumber { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 转换前规格型号(上一次规格型号)
|
||||
/// </summary>
|
||||
[Column("old_Specifications")]
|
||||
public string? old_Specifications { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 箱ID
|
||||
/// </summary>
|
||||
@@ -330,13 +336,14 @@ namespace BarCode.Web.Domain.Entitys
|
||||
/// 修改物料编码
|
||||
/// </summary>
|
||||
/// <param name="number"></param>
|
||||
public Result UpdateMaterial(string number)
|
||||
public Result UpdateMaterial(string number,string Specifications)
|
||||
{
|
||||
if (this.IsUse)
|
||||
return Result.ReFailure($"序列码 {this.SerialNumber} 已被使用,不允许规格转换", 600007);
|
||||
if (!this.MaterialNumber.Equals(number))
|
||||
{
|
||||
this.Old_MaterialNumber = this.MaterialNumber;
|
||||
this.old_Specifications = Specifications;
|
||||
this.MaterialNumber = number;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user