调整移箱上架下架

This commit is contained in:
18942506660
2023-11-13 10:09:03 +08:00
parent 114ce0b51e
commit 4f6831855e
9 changed files with 45 additions and 40 deletions

View File

@@ -65,8 +65,12 @@ namespace WMS.Web.Domain.Entitys
/// 创建
/// </summary>
/// <param name="creatorId"></param>
public void Create(int creatorId)
public void Create(MoveBoxType type, int boxId, int subStockId, int creatorId)
{
this.BoxId = boxId;
this.Type = type;
SrcSubStockId = type == MoveBoxType.Up ? 0 : subStockId;//上架 原仓位是0 目标仓位有值
DestSubStockId = type == MoveBoxType.Up ? subStockId : 0; //下架 原仓位有值 目标仓位是0
this.CreatorId = creatorId;
this.CreateTime = DateTime.Now;
}