调整接口

This commit is contained in:
18942506660
2023-11-22 16:15:26 +08:00
parent 7b26518dfe
commit 9bce3f42a8
10 changed files with 39 additions and 59 deletions

View File

@@ -41,12 +41,12 @@ namespace WMS.Web.Domain.Entitys
[Column("StockCode")]
public string StockCode { get; set; }
/// <summary>
/// 原仓位编码
/// 原仓位Id
/// </summary>
[Column("SrcSubStockId")]
public int SrcSubStockId { get; set; }
/// <summary>
/// 目标仓位编码
/// 目标仓位Id
/// </summary>
[Column("DestSubStockId")]
public int DestSubStockId { get; set; }
@@ -75,10 +75,11 @@ namespace WMS.Web.Domain.Entitys
/// 创建
/// </summary>
/// <param name="creatorId"></param>
public void Create(MoveBoxType type, int boxId, string stockCode, int subStockId, int creatorId)
public void Create(MoveBoxType type, int boxId,string orgCode, string stockCode, int subStockId, int creatorId)
{
this.BoxId = boxId;
this.Type = type;
this.OrgCode = orgCode;
this.StockCode = stockCode;
SrcSubStockId = type == MoveBoxType.Up ? 0 : subStockId;//上架 原仓位是0 目标仓位有值
DestSubStockId = type == MoveBoxType.Up ? subStockId : 0; //下架 原仓位有值 目标仓位是0