| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- namespace Admin.NET.Plugin.AiDOP.Entity.S0.Sales;
- /// <summary>
- /// 订单优先规则(S0 Sales / sales_order_priority_rule)
- /// </summary>
- [SugarTable("ado_s0_sales_order_priority_rule", "S0 订单优先规则")]
- public class AdoS0OrderPriorityRule
- {
- [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
- public long Id { get; set; }
- [SugarColumn(ColumnDescription = "关联公司 ID", ColumnDataType = "bigint")]
- public long CompanyRefId { get; set; }
- [SugarColumn(ColumnDescription = "关联工厂 ID", ColumnDataType = "bigint")]
- public long FactoryRefId { get; set; }
- [SugarColumn(ColumnDescription = "规则编码", Length = 100)]
- public string Code { get; set; } = string.Empty;
- [SugarColumn(ColumnDescription = "规则名称", Length = 200)]
- public string Name { get; set; } = string.Empty;
- [SugarColumn(ColumnDescription = "优先级别")]
- public int PriorityLevel { get; set; }
- [SugarColumn(ColumnDescription = "排序方向", Length = 10)]
- public string SortDirection { get; set; } = "ASC";
- [SugarColumn(ColumnDescription = "来源实体", Length = 200, IsNullable = true)]
- public string? SourceEntity { get; set; }
- [SugarColumn(ColumnDescription = "来源字段", Length = 200, IsNullable = true)]
- public string? SourceField { get; set; }
- [SugarColumn(ColumnDescription = "来源字段类型", Length = 100, IsNullable = true)]
- public string? SourceFieldType { get; set; }
- [SugarColumn(ColumnDescription = "来源关联字段", Length = 200, IsNullable = true)]
- public string? SourceLinkField { get; set; }
- [SugarColumn(ColumnDescription = "工单字段", Length = 200, IsNullable = true)]
- public string? WorkOrderField { get; set; }
- [SugarColumn(ColumnDescription = "工单字段类型", Length = 100, IsNullable = true)]
- public string? WorkOrderFieldType { get; set; }
- [SugarColumn(ColumnDescription = "工单关联字段", Length = 200, IsNullable = true)]
- public string? WorkOrderLinkField { get; set; }
- [SugarColumn(ColumnDescription = "规则表达式", Length = 1000, IsNullable = true)]
- public string? RuleExpr { get; set; }
- [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
- public string? Remark { get; set; }
- [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
- public bool IsEnabled { get; set; } = true;
- [SugarColumn(ColumnDescription = "创建时间")]
- public DateTime CreatedAt { get; set; } = DateTime.Now;
- [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
- public DateTime? UpdatedAt { get; set; }
- }
|