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