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