支持我的订单对已创建物流单绑定仓储资源:新增 t_order_stock_bind 与 stock-bind API,库存/包裹增加 FrozenQty、AvailableQty。 Co-authored-by: Cursor <cursoragent@cursor.com>
25 lines
567 B
C#
25 lines
567 B
C#
using Oms.Domain.Shared;
|
|
using SqlSugar;
|
|
|
|
namespace Oms.Domain.WarehouseAggregate.Entities;
|
|
|
|
[SugarTable("C_inventory")]
|
|
public class CInventory : OmsAuditedAggregateRoot
|
|
{
|
|
public int CustomerId { get; set; }
|
|
|
|
public int WarehouseId { get; set; }
|
|
|
|
public int SkuId { get; set; }
|
|
|
|
public int BinLocationId { get; set; }
|
|
|
|
public int Qty { get; set; }
|
|
|
|
/// <summary>已绑定未出库冻结量。</summary>
|
|
public int FrozenQty { get; set; }
|
|
|
|
/// <summary>可用 = Qty - FrozenQty。</summary>
|
|
public int AvailableQty { get; set; }
|
|
}
|