using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; using SqlSugar; namespace Sln.Wcs.Model.Domain { [SugarTable("base_subtask_template"), TenantAttribute("wcs")] [DataContract(Name = "子任务模板表")] public class BaseSubtaskTemplate { /// /// 主键 /// [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")] public int Id { get; set; } /// /// 子任务编码(唯一标识) /// [SugarColumn(ColumnName = "subtask_code", ColumnDescription = "子任务编码")] public string SubtaskCode { get; set; } /// /// 子任务名称 /// [SugarColumn(ColumnName = "subtask_name", ColumnDescription = "子任务名称")] public string SubtaskName { get; set; } /// /// 子任务类型(AGV搬运/提升机升降/线体输送/等待/装卸货等) /// [SugarColumn(ColumnName = "subtask_type", ColumnDescription = "子任务类型")] public string SubtaskType { get; set; } /// /// 执行设备类型(AGV/提升机/线体/缓存位等) /// [SugarColumn(ColumnName = "device_type", ColumnDescription = "执行设备类型")] public string DeviceType { get; set; } /// /// 设备动作(取货/放货/上升/下降/前进/等待等) /// [SugarColumn(ColumnName = "device_action", ColumnDescription = "设备动作")] public string DeviceAction { get; set; } /// /// 源位置类型(仓库/机台/提升机/缓存位/线体) /// [SugarColumn(ColumnName = "source_location_type", ColumnDescription = "源位置类型")] public string? SourceLocationType { get; set; } /// /// 源位置编码模板(支持变量,如{warehouse_code}) /// [SugarColumn(ColumnName = "source_location_code", ColumnDescription = "源位置编码模板")] public string? SourceLocationCode { get; set; } /// /// 目标位置类型 /// [SugarColumn(ColumnName = "target_location_type", ColumnDescription = "目标位置类型")] public string? TargetLocationType { get; set; } /// /// 目标位置编码模板 /// [SugarColumn(ColumnName = "target_location_code", ColumnDescription = "目标位置编码模板")] public string? TargetLocationCode { get; set; } /// /// 物料操作(取货/放货/等待/空车返回) /// [SugarColumn(ColumnName = "material_action", ColumnDescription = "物料操作")] public string? MaterialAction { get; set; } /// /// 容器类型(四宫格料箱/小料箱/色粉/托盘) /// [SugarColumn(ColumnName = "container_type", ColumnDescription = "容器类型")] public string? ContainerType { get; set; } /// /// 是否携带物料(0-否 1-是) /// [SugarColumn(ColumnName = "is_carry_material", ColumnDescription = "是否携带物料")] public bool? IsCarryMaterial { get; set; } /// /// 必需的参数列表(JSON格式,如["source","target","material_code"]) /// [SugarColumn(ColumnName = "required_params", ColumnDescription = "必需的参数列表", IsJson = true)] public string? RequiredParams { get; set; } /// /// 状态(0-禁用 1-启用) /// [SugarColumn(ColumnName = "status", ColumnDescription = "状态")] public int? Status { get; set; } /// /// 逻辑删除标志 /// [SugarColumn(ColumnName = "is_deleted", ColumnDescription = "逻辑删除标志")] public bool IsDeleted { get; set; } /// /// 备注 /// [SugarColumn(ColumnName = "remark", ColumnDescription = "备注")] public string? Remark { get; set; } /// /// 创建时间 /// [SugarColumn(ColumnName = "createtime", ColumnDescription = "创建时间")] public DateTime CreateTime { get; set; } /// /// 创建人 /// [SugarColumn(ColumnName = "createuser", ColumnDescription = "创建人")] public string? CreateUser { get; set; } /// /// 更新时间 /// [SugarColumn(ColumnName = "updatetime", ColumnDescription = "更新时间")] public DateTime UpdateTime { get; set; } /// /// 更新人 /// [SugarColumn(ColumnName = "updateuser", ColumnDescription = "更新人")] public string? UpdateUser { get; set; } } }