feat 设备任务领取

This commit is contained in:
2024-01-13 20:53:04 +08:00
parent 24b026aa04
commit 79bc32c959
24 changed files with 477 additions and 25 deletions

View File

@@ -10,7 +10,7 @@ namespace Dlhis.Entity.Device.Entities;
/// 设备任务表
/// </summary>
[SugarTable(TableName = "DeviceTask")]
public class DeviceTaskEntity : SugarBaseEntity, ITenantId
public class DeviceTaskEntity : SugarBaseEntity, ITenantId, IVersion
{
/// <summary>
/// 任务类型
@@ -28,11 +28,6 @@ public class DeviceTaskEntity : SugarBaseEntity, ITenantId
/// </summary>
public string UserCode { get; set; }
/// <summary>
/// 用户名
/// </summary>
public string UserName { get; set; }
/// <summary>
/// 设备唯一号
/// </summary>
@@ -49,6 +44,12 @@ public class DeviceTaskEntity : SugarBaseEntity, ITenantId
[SugarColumn(ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
public DeviceTaskStatusEnumType Status { get; set; }
/// <summary>
/// 数据版本
/// </summary>
public int Version { get; set; }
/// <summary>
/// 处理结果
/// </summary>