AdoItemLocationState.cs 1.2 KB

1234567891011121314151617181920
  1. using SqlSugar;
  2. namespace Admin.NET.Plugin.AiDOP.MaterialWarehouse.InventoryPosting.Entity;
  3. /// <summary>
  4. /// DOP-L3 物料默认库位状态(影子)。承载旧 `pr_SFM_InventoryTransactionProcessing2` 的
  5. /// `UPDATE ItemMaster SET Location=...`(仅当 ItemMaster.Location 为空、txn Location 非空时首次落位)语义。
  6. /// **路线 B 不给旧 ItemMaster 开写路径**,改写本 DOP-owned 表。
  7. /// </summary>
  8. [SugarTable("ado_item_location_state", "DOP-L3物料默认库位状态(ItemMaster.Location语义,影子)")]
  9. [SugarIndex("uk_ado_item_loc_state", nameof(TenantId), OrderByType.Asc, nameof(DomainCode), OrderByType.Asc, nameof(ItemNum), OrderByType.Asc, IsUnique = true)]
  10. public class AdoItemLocationState : AdoInvEntityBase
  11. {
  12. [SugarColumn(ColumnName = "item_num", ColumnDescription = "物料号", Length = 50, IsNullable = false, DefaultValue = "")]
  13. public string ItemNum { get; set; }
  14. /// <summary>默认/当前库位(首次落位;仅当原为空时写)。</summary>
  15. [SugarColumn(ColumnName = "default_location", ColumnDescription = "默认库位", Length = 30, IsNullable = true)]
  16. public string DefaultLocation { get; set; }
  17. }