namespace YD_Event.Core.Entities; /// /// 计分规则明细表 /// [SugarTable("ScoreRuleItem")] public class ScoreRuleItem : Entity, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime { /// /// 关联的计分规则ID /// public long ScoreRuleId { get; set; } /// /// 裁判角色类别编码 /// [SugarColumn(Length = 16)] public string JudgeRoleType { get; set; } = null!; /// /// 评分项编码 /// [SugarColumn(Length = 64)] public string ItemCode { get; set; } = null!; /// /// 评分项名称 /// [SugarColumn(Length = 128)] public string ItemName { get; set; } = null!; /// /// 评分项类型:1-难度等级计数,2-规定元素计数,3-表现维度,4-扣分项,5-取消资格原因,6-规定赛评分项 /// public int ItemType { get; set; } /// /// 父级评分项编码 /// [SugarColumn(Length = 64, IsNullable = true)] public string? ParentItemCode { get; set; } /// /// 单位分值 /// [SugarColumn(DecimalDigits = 4, IsNullable = true)] public decimal? UnitValue { get; set; } /// /// 最小值 /// [SugarColumn(DecimalDigits = 4, IsNullable = true)] public decimal? MinValue { get; set; } /// /// 最大值 /// [SugarColumn(DecimalDigits = 4, IsNullable = true)] public decimal? MaxValue { get; set; } /// /// 录入步长 /// [SugarColumn(DecimalDigits = 4, IsNullable = true)] public decimal? StepValue { get; set; } /// /// 默认值 /// [SugarColumn(DecimalDigits = 4, IsNullable = true)] public decimal? DefaultValue { get; set; } /// /// 计算方式:0-数量×单位分值累加,1-直接取录入值,2-仅记录不参与合计 /// public int CalcMode { get; set; } /// /// 计入的得分维度:0-不计入,1-难度分,2-表现分,3-规定分,4-扣分 /// public int ScoreDimension { get; set; } /// /// 是否必填 /// public bool IsRequired { get; set; } /// /// 扩展配置(JSON) /// [SugarColumn(Length = 2000, IsNullable = true)] public string? ExtensionJson { get; set; } /// /// 排序 /// public int Sort { get; set; } /// /// 标记删除 /// public bool DeleteMark { get; set; } /// /// 创建人 /// public long CreatedUserId { get; set; } /// /// 创建时间 /// public DateTime CreatedTime { get; set; } /// /// 更新人 /// [SugarColumn(IsNullable = true)] public long? UpdatedUserId { get; set; } /// /// 更新时间 /// [SugarColumn(IsNullable = true)] public DateTime? UpdatedTime { get; set; } }