箱信息增加软删除

This commit is contained in:
18942506660
2024-08-07 11:35:19 +08:00
parent b88b9b20cc
commit 5b4d83e76a
6 changed files with 34 additions and 41 deletions

View File

@@ -55,6 +55,10 @@ namespace WMS.Web.Domain.Entitys
/// 创建时间对应老OPS的创建时间
/// </summary>
public DateTime CreateTime { get; set; } = DateTime.Now;
/// <summary>
/// 是否删除 ops供应链重新装箱后软删除
/// </summary>
public bool? IsDelete { get; set; } = false;
/// <summary>
/// 明细
@@ -191,5 +195,13 @@ namespace WMS.Web.Domain.Entitys
return Result.ReSuccess();
}
/// <summary>
/// 软删除
/// </summary>
public void Delete()
{
this.IsDelete = true;
this.Details.Clear();
}
}
}

View File

@@ -33,7 +33,5 @@ namespace WMS.Web.Domain.Infrastructure
Task<List<Box>> GetEntityList(List<int> ids);
Task<List<Box>> GetEntityListByNos(List<string> billNos);
//批量删除
Task<bool> DeleteEntityList(List<int> boxIds, bool isTransaction = true);
}
}