AdoInventoryMaster.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. using SqlSugar;
  2. namespace Admin.NET.Plugin.AiDOP.MaterialWarehouse.InventoryPosting.Entity;
  3. /// <summary>
  4. /// DOP-L3 库存汇总账(影子)。**非旧 InvMaster**,DOP 自建、Shadow-only。
  5. /// 自然键据 pr_SFM_InventoryTransactionProcessing2 实核:JOIN/UPDATE 均按 Domain+ItemNum+Location(不含批次,批次维度下沉 LocationDetail)。
  6. /// </summary>
  7. [SugarTable("ado_inventory_master", "DOP-L3库存汇总账(影子,非旧InvMaster)")]
  8. [SugarIndex("uk_ado_inv_master", nameof(TenantId), OrderByType.Asc, nameof(DomainCode), OrderByType.Asc, nameof(ItemNum), OrderByType.Asc, nameof(Location), OrderByType.Asc, IsUnique = true)]
  9. public class AdoInventoryMaster : AdoInvEntityBase
  10. {
  11. [SugarColumn(ColumnName = "item_num", ColumnDescription = "物料号", Length = 50, IsNullable = false, DefaultValue = "")]
  12. public string ItemNum { get; set; }
  13. [SugarColumn(ColumnName = "location", ColumnDescription = "库位", Length = 30, IsNullable = false, DefaultValue = "")]
  14. public string Location { get; set; }
  15. [SugarColumn(ColumnName = "qty_on_hand", ColumnDescription = "在手库存", Length = 18, DecimalDigits = 5, DefaultValue = "0")]
  16. public decimal QtyOnHand { get; set; }
  17. [SugarColumn(ColumnName = "avail_status_qty", ColumnDescription = "非限制/可用库存", Length = 18, DecimalDigits = 5, DefaultValue = "0")]
  18. public decimal AvailStatusQty { get; set; }
  19. [SugarColumn(ColumnName = "assay_qty", ColumnDescription = "质检库存", Length = 18, DecimalDigits = 5, DefaultValue = "0")]
  20. public decimal AssayQty { get; set; }
  21. [SugarColumn(ColumnName = "freeze_qty", ColumnDescription = "冻结库存", Length = 18, DecimalDigits = 5, DefaultValue = "0")]
  22. public decimal FreezeQty { get; set; }
  23. [SugarColumn(ColumnName = "last_rct_time", ColumnDescription = "最近收货时间", IsNullable = true)]
  24. public DateTime? LastRctTime { get; set; }
  25. [SugarColumn(ColumnName = "is_active", ColumnDescription = "是否有效", DefaultValue = "1")]
  26. public bool IsActive { get; set; }
  27. }