|
|
using DS.Module.Core.Data;
|
|
|
using SqlSugar;
|
|
|
|
|
|
namespace DS.WMS.Core.TaskPlat.Entity
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 任务归属关系表
|
|
|
///</summary>
|
|
|
[SugarTable("task_base_allocation", "任务归属关系表")]
|
|
|
public class TaskBaseAllocation : BaseModelV2<long>
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 任务主键
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnDescription = "任务主键", IsNullable = false)]
|
|
|
public long TaskId { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 所属人员主键
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnDescription = "所属人员主键", IsNullable = false)]
|
|
|
public long UserId { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 所属人员姓名
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnDescription = "所属人员姓名", IsNullable = false, Length = 255)]
|
|
|
public string UserName { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 状态 Create-待处理;Retransmit-已转发;Complete-已完成;Cancel-已取消;Pending-已挂起
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnDescription = "状态 Create-待处理;Retransmit-已转发;Complete-已完成;Cancel-已取消;Pending-已挂起", IsNullable = false, Length = 20, DefaultValue = "")]
|
|
|
public string Status { get; set; } = "";
|
|
|
|
|
|
/// <summary>
|
|
|
/// 状态名称
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnDescription = "状态名称", IsNullable = false, Length = 50, DefaultValue = "")]
|
|
|
public string StatusName { get; set; } = "";
|
|
|
|
|
|
/// <summary>
|
|
|
/// 状态发生时间
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnDescription = "状态发生时间", IsNullable = true)]
|
|
|
public DateTime? StatusTime { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 外部业务主键
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnDescription = "外部业务主键", IsNullable = true)]
|
|
|
public long? BusinessId { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 货物状态编码
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnDescription = "货物状态编码", IsNullable = true, Length = 50)]
|
|
|
public string? GoodStatusCode { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 机构Id(没有继承OrgModel,所以需要手动添加Org筛选)
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnDescription = "机构Id", IsOnlyIgnoreUpdate = true)]
|
|
|
public long OrgId { get; set; }
|
|
|
}
|
|
|
} |