using System.Text.Json.Serialization; using SqlSugar; namespace WcsMain.DataBase.TableEntity; /// /// tbl_app_wcs_task /// Wcs任务表 /// [SugarTable("tbl_app_wcs_task")] public class AppWcsTask { /// /// Plc任务号 /// [SugarColumn(IsPrimaryKey = true, ColumnName = "plc_id")] [JsonPropertyName("plcId")] public int? PlcId { get; set; } /// /// 下一个任务号,若没有下一个任务则此处是默认值 /// [SugarColumn(ColumnName = "next_plc_id")] [JsonPropertyName("nextPlcId")] public int? NextPlcId { get; set; } /// /// 任务号 /// [SugarColumn(ColumnName = "task_id")] [JsonPropertyName("taskId")] public string? TaskId { get; set; } /// /// 任务类别 /// [SugarColumn(ColumnName = "task_category")] [JsonPropertyName("taskCategory")] public int? TaskCategory { get; set; } /// /// 任务类型 /// [SugarColumn(ColumnName = "task_type")] [JsonPropertyName("taskType")] public int? TaskType { get; set; } /// /// 任务排序 /// 999表示最后一个任务 /// [SugarColumn(ColumnName = "task_sort")] [JsonPropertyName("taskSort")] public int? TaskSort { get; set; } /// /// 任务状态 /// [SugarColumn(ColumnName = "task_status")] [JsonPropertyName("taskStatus")] public int? TaskStatus { get; set; } /// /// 任务优先级 /// [SugarColumn(ColumnName = "priority")] [JsonPropertyName("priority")] public int? Priority { get; set; } /// /// 任务起点 /// [SugarColumn(ColumnName = "origin")] [JsonPropertyName("origin")] public string? Origin { get; set; } /// /// 任务终点 /// [SugarColumn(ColumnName = "destination")] [JsonPropertyName("destination")] public string? Destination { get; set; } /// /// Wms创建时间 /// [SugarColumn(ColumnName = "wms_time")] [JsonPropertyName("wmsTime")] public DateTime? WmsTime { get; set; } /// /// 创建时间 /// [SugarColumn(ColumnName = "create_time")] [JsonPropertyName("createTime")] public DateTime? CreateTime { get; set; } /// /// 写入PLC的载具编号 /// [SugarColumn(ColumnName = "plc_vehicle_no")] [JsonPropertyName("plcVehicleNo")] public int? PlcVehicleNo { get; set; } /// /// 载具编号 /// [SugarColumn(ColumnName = "vehicle_no")] [JsonPropertyName("vehicleNo")] public string? VehicleNo { get; set; } /// /// 载具尺寸 /// [SugarColumn(ColumnName = "vehicle_size")] [JsonPropertyName("vehicleSize")] public int? VehicleSize { get; set; } /// /// 重量 /// [SugarColumn(ColumnName = "weight")] [JsonPropertyName("weight")] public decimal? Weight { get; set; } /// /// 任务创建人 /// [SugarColumn(ColumnName = "create_person")] [JsonPropertyName("createPerson")] public string? CreatePerson { get; set; } /// /// 开始时间 /// [SugarColumn(ColumnName = "start_time")] [JsonPropertyName("startTime")] public DateTime? StartTime { get; set; } /// /// 完成时间 /// [SugarColumn(ColumnName = "complete_time")] [JsonPropertyName("completeTime")] public DateTime? CompleteTime { get; set; } /// /// 备注信息 /// [SugarColumn(ColumnName = "remark")] [JsonPropertyName("remark")] public string? Remark { get; set; } public override string ToString() { return $"任务号:{TaskId},Plc任务号:{PlcId}"; } }