AdoS0PriorityCode.cs 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S0.Sales;
  2. /// <summary>
  3. /// 订单优先级配置(复刻 PriorityCode)
  4. /// </summary>
  5. [SugarTable("PriorityCode", "订单优先级配置(复刻 PriorityCode)")]
  6. public class AdoS0PriorityCode
  7. {
  8. [SugarColumn(ColumnName = "rec_id", ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  9. public long Id { get; set; }
  10. [SugarColumn(ColumnName = "company_ref_id", ColumnDescription = "关联公司 ID", ColumnDataType = "bigint")]
  11. public long CompanyRefId { get; set; }
  12. [SugarColumn(ColumnName = "factory_ref_id", ColumnDescription = "关联工厂 ID", ColumnDataType = "bigint")]
  13. public long FactoryRefId { get; set; }
  14. [SugarColumn(ColumnName = "domain_code", ColumnDescription = "工厂域编码", Length = 50, IsNullable = true)]
  15. public string? DomainCode { get; set; }
  16. [SugarColumn(ColumnName = "descr", ColumnDescription = "名称", Length = 200)]
  17. public string Descr { get; set; } = string.Empty;
  18. [SugarColumn(ColumnName = "value", ColumnDescription = "工单表字段", Length = 200, IsNullable = true)]
  19. public string? Value { get; set; }
  20. [SugarColumn(ColumnName = "priority", ColumnDescription = "优先级")]
  21. public int Priority { get; set; }
  22. /// <summary>源系统 OrderBy:0=倒序,非0=正序</summary>
  23. [SugarColumn(ColumnName = "order_by_code", ColumnDescription = "排序方式编码")]
  24. public int OrderByCode { get; set; } = 1;
  25. [SugarColumn(ColumnName = "source_table", ColumnDescription = "来源表", Length = 200, IsNullable = true)]
  26. public string? SourceTable { get; set; }
  27. [SugarColumn(ColumnName = "source_column", ColumnDescription = "来源表字段", Length = 200, IsNullable = true)]
  28. public string? SourceColumn { get; set; }
  29. [SugarColumn(ColumnName = "source_type", ColumnDescription = "来源表字段类型", Length = 100, IsNullable = true)]
  30. public string? SourceType { get; set; }
  31. [SugarColumn(ColumnName = "source_id", ColumnDescription = "来源表关联字段", Length = 200, IsNullable = true)]
  32. public string? SourceId { get; set; }
  33. [SugarColumn(ColumnName = "value_type", ColumnDescription = "工单表字段类型", Length = 100, IsNullable = true)]
  34. public string? ValueType { get; set; }
  35. [SugarColumn(ColumnName = "value_id", ColumnDescription = "工单表关联字段", Length = 200, IsNullable = true)]
  36. public string? ValueId { get; set; }
  37. [SugarColumn(ColumnName = "is_active", ColumnDescription = "是否生效", ColumnDataType = "boolean")]
  38. public bool IsActive { get; set; } = true;
  39. [SugarColumn(ColumnName = "create_user", ColumnDescription = "创建人", Length = 100, IsNullable = true)]
  40. public string? CreateUser { get; set; }
  41. [SugarColumn(ColumnName = "create_time", ColumnDescription = "创建时间")]
  42. public DateTime CreateTime { get; set; } = DateTime.Now;
  43. [SugarColumn(ColumnName = "update_user", ColumnDescription = "更新人", Length = 100, IsNullable = true)]
  44. public string? UpdateUser { get; set; }
  45. [SugarColumn(ColumnName = "update_time", ColumnDescription = "更新时间", IsNullable = true)]
  46. public DateTime? UpdateTime { get; set; }
  47. /// <summary>列表展示:正序/倒序(不落库)</summary>
  48. [SugarColumn(IsIgnore = true)]
  49. public string? OrderByText { get; set; }
  50. }