using JNPF.Common.Contracts; using JNPF.Common.Security; using SqlSugar; namespace Tnb.WarehouseMgr.Entities; /// /// 任务执行主表 /// [SugarTable("wms_distask_h")] public partial class WmsDistaskH : BaseEntity { public WmsDistaskH() { id = SnowflakeIdHelper.NextId(); } /// /// 租户ID /// public string? tenant_id { get; set; } /// /// 所属组织ID /// public string? org_id { get; set; } /// /// 起始库位ID /// public string startlocation_id { get; set; } = string.Empty; /// /// 起始楼层 /// public int start_floor { get; set; } /// /// 目标库位ID /// public string endlocation_id { get; set; } = string.Empty; /// /// 目标楼层 /// public int end_floor { get; set; } /// /// 起始点位ID /// public string startpoint_id { get; set; } = string.Empty; /// /// 起始点位编号 /// public string startpoint_code { get; set; } = string.Empty; /// /// 终止点位ID /// public string endpoint_id { get; set; } = string.Empty; /// /// 终止点位编号 /// public string endpoint_code { get; set; } = string.Empty; /// /// 单号 /// public string bill_code { get; set; } = string.Empty; /// /// 单据状态 /// public string status { get; set; } = string.Empty; /// /// 业务类型 /// public string biz_type { get; set; } = string.Empty; /// /// 任务类型 /// public string task_type { get; set; } = string.Empty; /// /// 载具ID /// public string carry_id { get; set; } = string.Empty; /// /// 载具编号 /// public string carry_code { get; set; } = string.Empty; /// /// 路径管理区ID /// public string area_id { get; set; } = string.Empty; /// /// 路径管理区编号 /// public string area_code { get; set; } = string.Empty; /// /// 设备ID /// public string device_id { get; set; } = string.Empty; /// /// 预任务申请ID /// public string pretask_id { get; set; } = string.Empty; /// /// 预任务申请单号 /// public string pretask_code { get; set; } = string.Empty; /// /// 是否签收 /// public int is_sign { get; set; } = 1; /// /// 来源单据ID /// public string? source_id { get; set; } /// /// 来源单据代码 /// public string? source_code { get; set; } /// /// 需求单据ID /// public string? require_id { get; set; } /// /// 需求单据代码 /// public string? require_code { get; set; } /// /// 任务组编号 /// public string? groups { get; set; } /// /// 是否任务链 /// public int is_chain { get; set; } /// /// 属性 /// public string chain_type { get; set; } = string.Empty; /// /// 预计开始时间 /// public DateTime? plan_start_date { get; set; } /// /// 预计结束时间 /// public DateTime? plan_end_date { get; set; } /// /// 实际开始时间 /// public DateTime? act_start_date { get; set; } /// /// 实际结束时间 /// public DateTime? act_end_date { get; set; } /// /// 创建用户 /// public string create_id { get; set; } = string.Empty; /// /// 创建时间 /// public DateTime create_time { get; set; } = DateTime.Now; /// /// 最后修改人员ID /// public string? modify_id { get; set; } /// /// 最后修改时间 /// public DateTime? modify_time { get; set; } /// /// 协议内容 /// public string? agreement { get; set; } /// /// 扩展字段 /// public string? extras { get; set; } /// /// 时间戳(用于并发控制) /// public DateTime? timestamp { get; set; } /// /// 流程任务Id /// public string? f_flowtaskid { get; set; } /// /// 流程引擎Id /// public string? f_flowid { get; set; } /// /// 起始库位编号 /// public string startlocation_code { get; set; } = string.Empty; /// /// 目标库位编号 /// public string endlocation_code { get; set; } = string.Empty; /// /// 优先级 /// public int? priority { get; set; } }