fix 优化任务分配速度

This commit is contained in:
2024-05-30 23:01:21 +08:00
parent bce58ef938
commit 7f14b1fdc5
13 changed files with 195 additions and 47 deletions

View File

@@ -0,0 +1,32 @@
using Kurisu.AspNetCore.DataAccess.Entity;
using Kurisu.AspNetCore.DataAccess.SqlSugar;
using SqlSugar;
namespace Dlhis.Entity.Basic.Entity;
/// <summary>
/// 设备权限分配
/// </summary>
[SugarTable(TableName = "DevicePermissionAssignment", TableDescription = "设备权限分配")]
public class DevicePermissionAssignmentEntity : SugarBaseEntity, ITenantId
{
/// <summary>
/// 分配json
/// </summary>
[SugarColumn(IsNullable = false, ColumnDataType = "varchar(1000)", ColumnDescription = "分配json")]
public string Assignment { get; set; }
/// <summary>
/// 是否处理
/// </summary>
[SugarColumn(ColumnDataType = "bit(1)", ColumnDescription = "是否处理")]
public bool IsHandler { get; set; }
/// <summary>
/// 处理结果
/// </summary>
[SugarColumn(ColumnDescription = "处理结果")]
public string Result { get; set; }
public string TenantId { get; set; }
}