diff --git a/Src/Dlhis.Entity/Device/Entities/DeviceTaskEntity.cs b/Src/Dlhis.Entity/Device/Entities/DeviceTaskEntity.cs index 1399d6d4..d1c9ace1 100644 --- a/Src/Dlhis.Entity/Device/Entities/DeviceTaskEntity.cs +++ b/Src/Dlhis.Entity/Device/Entities/DeviceTaskEntity.cs @@ -68,8 +68,8 @@ public class DeviceTaskEntity : SugarBaseEntity, ITenantId, IVersion /// /// 优先级 /// - [SugarColumn(DefaultValue = "0")] - public int Priority { get; set; } = 0; + [SugarColumn(IsNullable = true, DefaultValue = "0")] + public int Priority { get; set; } = 0; public string TenantId { get; set; }