88 lines
2.5 KiB
C#
88 lines
2.5 KiB
C#
using Dlhis.DataPermission.Model;
|
|
using Dlhis.Entity.Basic.Enums;
|
|
using Dlhis.Entity.Device.Enums;
|
|
using Kurisu.AspNetCore.DataAccess.Entity;
|
|
using Kurisu.AspNetCore.DataAccess.SqlSugar;
|
|
using SqlSugar;
|
|
using SqlSugar.DbConvert;
|
|
|
|
namespace Dlhis.Entity.Device.Entities;
|
|
|
|
[SugarTable(TableName = "DeviceUploadLog", TableDescription = "设备上传记录")]
|
|
public class DeviceUploadLogEntity : SugarBaseEntity, ITenantId
|
|
{
|
|
[SugarColumn(IsNullable = false)]
|
|
public string SerialNo { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 设备code
|
|
/// </summary>
|
|
[DeviceCode]
|
|
[SugarColumn(IsNullable = false)]
|
|
public Guid DeviceCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 设备号
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false)]
|
|
public string DeviceUniqueNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// 人员唯一号
|
|
/// </summary>
|
|
[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>
|
|
[SugarColumn(IsNullable = false)]
|
|
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(IsNullable = false, ColumnDataType = "bit", DefaultValue = "0")]
|
|
public bool Sync { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否有效
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDataType = "bit")]
|
|
public bool Status { get; set; }
|
|
|
|
/// <summary>
|
|
/// 图片base64 / URL
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true, ColumnDataType = "text")]
|
|
public string Image { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 网格信息
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true, ColumnDataType = "text")]
|
|
public string WorkGridInfo { get; set; }
|
|
|
|
|
|
[SugarColumn(IndexGroupNameList = new[] { "idx_DeviceUploadLog_TenantId" })]
|
|
public string TenantId { get; set; }
|
|
} |