namespace YLErp.Modules.RiskEngine.Dto { /// /// 结构化规则条件项。Operator 使用稳定语义 token,不存储 UI 文案或 C# 操作符。 /// public class RuleCondition { /// 条件变量 ID public long VariableId { get; set; } /// 操作符 token:gt/lt/gte/lte/eq/ne/between/notBetween/isTrue/isFalse public string Operator { get; set; } /// 普通比较阈值类型:Fixed / Variable public string ThresholdType { get; set; } /// 普通比较固定阈值 public object Value { get; set; } /// 普通比较阈值变量 ID public long? ThresholdVariableId { get; set; } /// 区间下限阈值类型:Fixed / Variable public string LowerThresholdType { get; set; } /// 区间固定下限 public object LowerValue { get; set; } /// 区间下限变量 ID public long? LowerThresholdVariableId { get; set; } /// 区间上限阈值类型:Fixed / Variable public string UpperThresholdType { get; set; } /// 区间固定上限 public object UpperValue { get; set; } /// 区间上限变量 ID public long? UpperThresholdVariableId { get; set; } /// 是否包含下限 public bool? IncludeLower { get; set; } /// 是否包含上限 public bool? IncludeUpper { get; set; } } }