AdoInventoryMobileTask.cs 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using SqlSugar;
  2. namespace Admin.NET.Plugin.AiDOP.MaterialWarehouse.InventoryPosting.Entity;
  3. /// <summary>
  4. /// DOP-L3 库存移动任务(C7 shadow)。承载 `pr_WMS_BPM_AddMobileTask` 的 IQC 可达能力
  5. /// (@ExecuterTypeID=0 → 按 TaskID upsert:exists→UPDATE 否则 INSERT)。**不写旧 MobileTask 表。**
  6. /// IQC 可达任务名:`InvUpShelf`(收货后待上架,TaskID=Receiver)、`PurOrdRctByMRBChoose`(挑选,TaskID=QCNbr)。
  7. /// TaskID 幂等:DB UNIQUE (tenant_id, domain_code, task_id)。
  8. /// </summary>
  9. [SugarTable("ado_inventory_mobile_task", "DOP-L3库存移动任务(C7 shadow,非旧MobileTask)")]
  10. [SugarIndex("uk_ado_inv_mobile_task", nameof(TenantId), OrderByType.Asc, nameof(DomainCode), OrderByType.Asc, nameof(TaskId), OrderByType.Asc, IsUnique = true)]
  11. public class AdoInventoryMobileTask : AdoInvEntityBase
  12. {
  13. [SugarColumn(ColumnName = "posting_id", ColumnDescription = "过账头Id", IsNullable = true)]
  14. public long? PostingId { get; set; }
  15. [SugarColumn(ColumnName = "fbillno", ColumnDescription = "来料检验单号", Length = 50, IsNullable = true)]
  16. public string FbillNo { get; set; }
  17. [SugarColumn(ColumnName = "task_id", ColumnDescription = "任务Id(幂等键;InvUpShelf=Receiver/挑选=QCNbr)", Length = 100, IsNullable = false, DefaultValue = "")]
  18. public string TaskId { get; set; }
  19. [SugarColumn(ColumnName = "type_id", ColumnDescription = "类型(Wms)", Length = 20, IsNullable = true)]
  20. public string TypeId { get; set; }
  21. [SugarColumn(ColumnName = "name", ColumnDescription = "任务名(InvUpShelf/PurOrdRctByMRBChoose)", Length = 50, IsNullable = true)]
  22. public string Name { get; set; }
  23. [SugarColumn(ColumnName = "description", ColumnDescription = "描述", Length = 1000, IsNullable = true)]
  24. public string Description { get; set; }
  25. [SugarColumn(ColumnName = "executer", ColumnDescription = "执行人", Length = 1000, IsNullable = true)]
  26. public string Executer { get; set; }
  27. [SugarColumn(ColumnName = "executer_type_id", ColumnDescription = "执行人类型(IQC=0)", DefaultValue = "0")]
  28. public int ExecuterTypeId { get; set; }
  29. [SugarColumn(ColumnName = "plan_date", ColumnDescription = "计划时间", IsNullable = true)]
  30. public DateTime? PlanDate { get; set; }
  31. [SugarColumn(ColumnName = "status", ColumnDescription = "任务状态", Length = 20, IsNullable = true)]
  32. public string Status { get; set; }
  33. [SugarColumn(ColumnName = "receiver", ColumnDescription = "收货单号", Length = 50, IsNullable = true)]
  34. public string Receiver { get; set; }
  35. [SugarColumn(ColumnName = "rct_qc_nbr", ColumnDescription = "检验单号", Length = 100, IsNullable = true)]
  36. public string RctQcNbr { get; set; }
  37. }