24 lines
1.0 KiB
C#
24 lines
1.0 KiB
C#
namespace YLErp.Modules.RiskEngine.Dto
|
||
{
|
||
/// <summary>
|
||
/// 规则条件项
|
||
/// </summary>
|
||
public class RuleCondition
|
||
{
|
||
/// <summary>条件变量 ID</summary>
|
||
public long VariableId { get; set; }
|
||
/// <summary>操作符(如 Equal、GreaterThan、Between 等)</summary>
|
||
public string Operator { get; set; }
|
||
/// <summary>阈值类型(FixedValue / VariableRef)</summary>
|
||
public string ThresholdType { get; set; }
|
||
/// <summary>阈值(固定值或变量引用)</summary>
|
||
public object Value { get; set; }
|
||
/// <summary>阈值变量 ID(当 ThresholdType 为 VariableRef 时)</summary>
|
||
public long? ThresholdVariableId { get; set; }
|
||
/// <summary>介于/不介于的下边界是否包含,默认 true</summary>
|
||
public bool IncludeLowerBound { get; set; } = true;
|
||
/// <summary>介于/不介于的上边界是否包含,默认 true</summary>
|
||
public bool IncludeUpperBound { get; set; } = true;
|
||
}
|
||
}
|