2026-03-01 22:32:44 +08:00
|
|
|
|
using System;
|
2026-03-08 15:46:19 +08:00
|
|
|
|
using YD_Event.Core.Enum;
|
2026-01-10 16:47:35 +08:00
|
|
|
|
|
|
|
|
|
|
namespace YD_Event.Core.Entities;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 赛事成绩表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarTable("EventResult")]
|
2026-03-08 15:46:19 +08:00
|
|
|
|
public class EventResult : Entity<long>, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability
|
2026-01-10 16:47:35 +08:00
|
|
|
|
{
|
2026-03-08 15:46:19 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 可用状态
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public AvailabilityStatus Status { get; set; }
|
|
|
|
|
|
|
2026-01-10 16:47:35 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 关联的参赛记录ID
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long ParticipationRecordId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 关联的报名ID
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long RegistrationId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 关联的报名人员ID
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long RegistrationPersonId { get; set; }
|
|
|
|
|
|
|
2026-04-22 11:40:12 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 归属单位认证 ID(从 EventRegistration 继承)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(IsNullable = true)]
|
|
|
|
|
|
public long? MerchantCertificationId { get; set; }
|
|
|
|
|
|
|
2026-01-10 16:47:35 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 赛事ID
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long EventId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 赛事项目ID
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long ProjectId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 参赛选手姓名
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(Length = 64)]
|
|
|
|
|
|
public string ParticipantName { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 参赛组别
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(Length = 64)]
|
|
|
|
|
|
public string GroupName { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-03-01 22:32:44 +08:00
|
|
|
|
/// 项目类型名称
|
2026-01-10 16:47:35 +08:00
|
|
|
|
/// </summary>
|
2026-03-01 22:32:44 +08:00
|
|
|
|
[SugarColumn(Length = 64)]
|
|
|
|
|
|
public string ProjectTypeName { get; set; }
|
2026-01-10 16:47:35 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 成绩
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(Length = 32)]
|
|
|
|
|
|
public string Score { get; set; }
|
|
|
|
|
|
|
2026-08-17 23:07:15 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 关联的比赛场次ID
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(IsNullable = true)]
|
|
|
|
|
|
public long? SessionId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 关联的场次出场记录ID
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(IsNullable = true)]
|
|
|
|
|
|
public long? SessionEntryId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 难度分
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(DecimalDigits = 4)]
|
|
|
|
|
|
public decimal DifficultyScore { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 表现分
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(DecimalDigits = 4)]
|
|
|
|
|
|
public decimal PerformanceScore { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 规定分
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(DecimalDigits = 4)]
|
|
|
|
|
|
public decimal RequiredScore { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 扣分
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(DecimalDigits = 4)]
|
|
|
|
|
|
public decimal DeductionScore { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 数值总分
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(DecimalDigits = 4, IsNullable = true)]
|
|
|
|
|
|
public decimal? TotalScore { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 是否取消比赛资格
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool IsDisqualified { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 取消比赛资格原因编码
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(Length = 64, IsNullable = true)]
|
|
|
|
|
|
public string? DisqualifyReasonCode { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 成绩状态:0-计算中,10-待复核,20-已确认,30-已投屏,40-已更正,90-已作废
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int ResultStatus { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 当前成绩版本号
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int ResultVersion { get; set; } = 1;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 聚合计算明细(JSON)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnDataType = "nvarchar(max)", IsNullable = true)]
|
|
|
|
|
|
public string? CalculationJson { get; set; }
|
|
|
|
|
|
|
2026-01-10 16:47:35 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排名
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int Rank { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获奖等级:1-特等奖,2-一等奖,3-二等奖,4-三等奖,5-优秀奖
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int AwardLevel { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获奖状态:0-未获奖,1-已获奖
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int AwardStatus { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 备注
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnDataType = "TEXT")]
|
|
|
|
|
|
public string? Remark { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-02-26 18:29:08 +08:00
|
|
|
|
/// 标记删除
|
2026-01-10 16:47:35 +08:00
|
|
|
|
/// </summary>
|
2026-02-26 18:29:08 +08:00
|
|
|
|
public bool DeleteMark { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 创建人
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long CreatedUserId { get; set; }
|
2026-01-10 16:47:35 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 创建时间
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public DateTime CreatedTime { get; set; }
|
2026-02-26 18:29:08 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新人
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long? UpdatedUserId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新时间
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public DateTime? UpdatedTime { get; set; }
|
2026-08-17 23:07:15 +08:00
|
|
|
|
}
|