fix 通行记录数据上报处理

This commit is contained in:
2025-01-08 17:04:37 +08:00
parent 93ac332b71
commit ac971b0921
2 changed files with 36 additions and 12 deletions

View File

@@ -1,4 +1,5 @@
using Dlhis.Entity.Device.Enums;
using Dlhis.Entity.Basic.Enums;
using Dlhis.Entity.Device.Enums;
using Kurisu.AspNetCore.DataAccess.Entity;
using Kurisu.AspNetCore.DataAccess.SqlSugar;
using SqlSugar;
@@ -9,9 +10,15 @@ namespace Dlhis.Entity.Device.Entities;
[SugarTable(TableName = "DeviceUploadLog", TableDescription = "设备上传记录")]
public class DeviceUploadLogEntity : SugarBaseEntity, ITenantId
{
[SugarColumn(IsNullable = true)]
[SugarColumn(IsNullable = false)]
public string SerialNo { get; set; }
/// <summary>
/// 设备code
/// </summary>
[SugarColumn(IsNullable = false)]
public Guid DeviceCode { get; set; }
/// <summary>
/// 设备号
/// </summary>
@@ -24,6 +31,12 @@ public class DeviceUploadLogEntity : SugarBaseEntity, ITenantId
[SugarColumn(IsNullable = true)]
public string UserUniqueNo { get; set; }
/// <summary>
/// 人员类型
/// </summary>
[SugarColumn(IsNullable = true, ColumnDescription = "人员类型", ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
public GainfoUserTypeEnumType? UserType { get; set; }
/// <summary>
/// 产生时间
/// </summary>
@@ -31,24 +44,30 @@ public class DeviceUploadLogEntity : SugarBaseEntity, ITenantId
public DateTime RaiseDateTime { get; set; }
/// <summary>
/// 日志类型
/// 记录类型
/// </summary>
[SugarColumn(ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
public DeviceUploadLogTypeEnumType Type { get; set; }
/// <summary>
/// 是否要上传
/// </summary>
[SugarColumn(IsNullable = false, ColumnDataType = "bit", DefaultValue = "0")]
public bool NeedUpload { get; set; }
/// <summary>
/// 同步数据
/// </summary>
[SugarColumn(ColumnDataType = "bit")]
[SugarColumn(IsNullable = false, ColumnDataType = "bit", DefaultValue = "0")]
public bool Sync { get; set; }
/// <summary>
/// 是否有效
/// </summary>
[SugarColumn(ColumnDataType = "bit")]
[SugarColumn(IsNullable = false, ColumnDataType = "bit")]
public bool Status { get; set; }
[SugarColumn(IndexGroupNameList = new[] { "idx_DeviceUploadLog_TenantId" })]
public string TenantId { get; set; }
}
}