using Dlhis.Entity.Device.Enums; using Kurisu.Core.DataAccess.Entity; using Kurisu.SqlSugar; using SqlSugar; using SqlSugar.DbConvert; namespace Dlhis.Entity.Device.Entities; /// /// 设备任务表 /// [SugarTable(TableName = "DeviceTask")] public class DeviceTaskEntity : SugarBaseEntity, ITenantId, IVersion { /// /// 任务类型 /// [SugarColumn(ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))] public DeviceTaskEnumType Type { get; set; } /// /// 用户档案号 /// public string UserNo { get; set; } /// /// 设备唯一号 /// [SugarColumn(IsNullable = false, IndexGroupNameList = new[] { "idx_DeviceTask_DeviceUniqueNo" })] public string DeviceUniqueNo { get; set; } /// /// 任务下发状态 /// [SugarColumn(ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))] public DeviceTaskStatusEnumType Status { get; set; } /// /// 数据版本 /// public int Version { get; set; } /// /// 处理结果 /// [SugarColumn(ColumnDataType = "longtext")] public string ResultMessage { get; set; } /// /// 取消id /// public long CancellationId { get; set; } public string TenantId { get; set; } }