145 lines
3.9 KiB
C#
145 lines
3.9 KiB
C#
using YD_Event.Core.Enum;
|
||
|
||
namespace YD_Event.Core.Entities;
|
||
|
||
/// <summary>
|
||
/// 赛事检录任务表
|
||
/// 一个检录员对应一条任务,记录总检录次数以及当前检录轮次、组别;
|
||
/// Current 系列字段为现场进度快照,切换检次或重新绑定检录员时会被重置
|
||
/// </summary>
|
||
[SugarTable("CheckinTask")]
|
||
public class CheckinTask : Entity<long>, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability
|
||
{
|
||
/// <summary>
|
||
/// 关联的赛事ID
|
||
/// </summary>
|
||
public long EventId { get; set; }
|
||
|
||
/// <summary>
|
||
/// 该检录员负责的检次:1-一检,2-二检,3-三检
|
||
/// </summary>
|
||
public int CheckinNo { get; set; } = 1;
|
||
|
||
/// <summary>
|
||
/// 关联的检录员用户ID(尚未绑定检录员时为空)
|
||
/// </summary>
|
||
[SugarColumn(IsNullable = true)]
|
||
public long? CheckerUserId { get; set; }
|
||
|
||
/// <summary>
|
||
/// 赛事的检录总次数
|
||
/// </summary>
|
||
public int TotalRounds { get; set; } = 1;
|
||
|
||
/// <summary>
|
||
/// 当前检录轮次(与 CheckinNo 保持一致)
|
||
/// </summary>
|
||
public int CurrentRound { get; set; } = 1;
|
||
|
||
/// <summary>
|
||
/// 当前秩序册列标识
|
||
/// </summary>
|
||
[SugarColumn(Length = 64, IsNullable = true)]
|
||
public string? CurrentSessionKey { get; set; }
|
||
|
||
/// <summary>
|
||
/// 当前秩序册列的出场顺序
|
||
/// </summary>
|
||
public int CurrentSessionOrder { get; set; }
|
||
|
||
/// <summary>
|
||
/// 当前秩序册列名称
|
||
/// </summary>
|
||
[SugarColumn(Length = 256, IsNullable = true)]
|
||
public string? CurrentSessionName { get; set; }
|
||
|
||
/// <summary>
|
||
/// 当前检录的赛事项目ID
|
||
/// </summary>
|
||
[SugarColumn(IsNullable = true)]
|
||
public long? CurrentEventProjectId { get; set; }
|
||
|
||
/// <summary>
|
||
/// 当前秩序册列所在场地
|
||
/// </summary>
|
||
[SugarColumn(Length = 128, IsNullable = true)]
|
||
public string? CurrentSessionVenue { get; set; }
|
||
|
||
/// <summary>
|
||
/// 检次名称(由 CheckinNo 转换而来,如一检、二检)
|
||
/// </summary>
|
||
[SugarColumn(Length = 64)]
|
||
public string RoundName { get; set; } = "赛前检录";
|
||
|
||
/// <summary>
|
||
/// 当前检录的参赛组别ID(不限定组别时为空)
|
||
/// </summary>
|
||
[SugarColumn(IsNullable = true)]
|
||
public long? CurrentGroupId { get; set; }
|
||
|
||
/// <summary>
|
||
/// 当前检录的参赛组别名称
|
||
/// </summary>
|
||
[SugarColumn(Length = 128)]
|
||
public string CurrentGroupName { get; set; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 当前组别的顺序
|
||
/// </summary>
|
||
public int GroupOrder { get; set; }
|
||
|
||
/// <summary>
|
||
/// 本次检录的组别总数
|
||
/// </summary>
|
||
public int TotalGroups { get; set; }
|
||
|
||
/// <summary>
|
||
/// 下一个待检录组别名称
|
||
/// </summary>
|
||
[SugarColumn(Length = 128, IsNullable = true)]
|
||
public string? NextGroupName { get; set; }
|
||
|
||
/// <summary>
|
||
/// 检录场地
|
||
/// </summary>
|
||
[SugarColumn(Length = 128, IsNullable = true)]
|
||
public string? Venue { get; set; }
|
||
|
||
/// <summary>
|
||
/// 任务状态:0-未开始,1-进行中,2-已结束
|
||
/// </summary>
|
||
public int TaskStatus { get; set; }
|
||
|
||
/// <summary>
|
||
/// 可用状态
|
||
/// </summary>
|
||
public AvailabilityStatus Status { get; set; } = AvailabilityStatus.Enable;
|
||
|
||
/// <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; }
|
||
}
|