143 lines
3.7 KiB
C#
Raw Normal View History

using YD_Event.Core.Enum;
namespace YD_Event.Core.Entities;
/// <summary>
2026-08-11 23:41:18 +08:00
/// 赛事检录任务表
/// </summary>
[SugarTable("CheckinTask")]
public class CheckinTask : Entity<long>, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability
{
2026-08-11 23:41:18 +08:00
/// <summary>
/// 关联的赛事ID
/// </summary>
public long EventId { get; set; }
2026-08-11 23:41:18 +08:00
/// <summary>
/// 该检录员负责的检次:1-一检,2-二检,3-三检
/// </summary>
public int CheckinNo { get; set; } = 1;
2026-08-11 23:41:18 +08:00
/// <summary>
/// 关联的检录员用户ID(尚未绑定检录员时为空)
/// </summary>
[SugarColumn(IsNullable = true)]
public long? CheckerUserId { get; set; }
2026-08-11 23:41:18 +08:00
/// <summary>
/// 赛事的检录总次数
/// </summary>
public int TotalRounds { get; set; } = 1;
2026-08-11 23:41:18 +08:00
/// <summary>
/// 当前检录轮次(与 CheckinNo 保持一致)
/// </summary>
public int CurrentRound { get; set; } = 1;
2026-08-11 23:41:18 +08:00
/// <summary>
/// 当前秩序册列标识
/// </summary>
[SugarColumn(Length = 64, IsNullable = true)]
public string? CurrentSessionKey { get; set; }
2026-08-11 23:41:18 +08:00
/// <summary>
/// 当前秩序册列的出场顺序
/// </summary>
public int CurrentSessionOrder { get; set; }
2026-08-11 23:41:18 +08:00
/// <summary>
/// 当前秩序册列名称
/// </summary>
[SugarColumn(Length = 256, IsNullable = true)]
public string? CurrentSessionName { get; set; }
2026-08-11 23:41:18 +08:00
/// <summary>
/// 当前检录的赛事项目ID
/// </summary>
[SugarColumn(IsNullable = true)]
public long? CurrentEventProjectId { get; set; }
2026-08-11 23:41:18 +08:00
/// <summary>
/// 当前秩序册列所在场地
/// </summary>
[SugarColumn(Length = 128, IsNullable = true)]
public string? CurrentSessionVenue { get; set; }
2026-08-11 23:41:18 +08:00
/// <summary>
/// 检次名称(由 CheckinNo 转换而来,如一检、二检)
/// </summary>
[SugarColumn(Length = 64)]
public string RoundName { get; set; } = "赛前检录";
2026-08-11 23:41:18 +08:00
/// <summary>
/// 当前检录的参赛组别ID(不限定组别时为空)
/// </summary>
[SugarColumn(IsNullable = true)]
public long? CurrentGroupId { get; set; }
2026-08-11 23:41:18 +08:00
/// <summary>
/// 当前检录的参赛组别名称
/// </summary>
[SugarColumn(Length = 128)]
public string CurrentGroupName { get; set; } = string.Empty;
2026-08-11 23:41:18 +08:00
/// <summary>
/// 当前组别的顺序
/// </summary>
public int GroupOrder { get; set; }
2026-08-11 23:41:18 +08:00
/// <summary>
/// 本次检录的组别总数
/// </summary>
public int TotalGroups { get; set; }
2026-08-11 23:41:18 +08:00
/// <summary>
/// 下一个待检录组别名称
/// </summary>
[SugarColumn(Length = 128, IsNullable = true)]
public string? NextGroupName { get; set; }
2026-08-11 23:41:18 +08:00
/// <summary>
/// 检录场地
/// </summary>
[SugarColumn(Length = 128, IsNullable = true)]
public string? Venue { get; set; }
2026-08-11 23:41:18 +08:00
/// <summary>
/// 任务状态:0-未开始,1-进行中,2-已结束
/// </summary>
public int TaskStatus { get; set; }
2026-08-11 23:41:18 +08:00
/// <summary>
/// 可用状态
/// </summary>
public AvailabilityStatus Status { get; set; } = AvailabilityStatus.Enable;
2026-08-11 23:41:18 +08:00
/// <summary>
/// 标记删除
/// </summary>
public bool DeleteMark { get; set; }
2026-08-11 23:41:18 +08:00
/// <summary>
/// 创建人
/// </summary>
public long CreatedUserId { get; set; }
2026-08-11 23:41:18 +08:00
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreatedTime { get; set; }
2026-08-11 23:41:18 +08:00
/// <summary>
/// 更新人
/// </summary>
[SugarColumn(IsNullable = true)]
public long? UpdatedUserId { get; set; }
2026-08-11 23:41:18 +08:00
/// <summary>
/// 更新时间
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? UpdatedTime { get; set; }
}