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