feat 梯控相关
This commit is contained in:
@@ -15,82 +15,82 @@ namespace Dlhis.Entity.Basic.Entity;
|
||||
public class DeviceEntity : SugarBaseEntity, ITenantId
|
||||
{
|
||||
/// <summary>
|
||||
/// 设备code
|
||||
/// 设备code
|
||||
/// </summary>
|
||||
[DeviceCode]
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "设备code")]
|
||||
public Guid Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设备唯一码,IP/MAC/SNO
|
||||
/// 设备唯一码,IP/MAC/SNO
|
||||
/// </summary>
|
||||
[AdaptIgnore(MemberSide.Destination)]
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "设备唯一码", UniqueGroupNameList = new[] { "Idx_Device_UniqueNo" })]
|
||||
public string UniqueNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 心跳间隔
|
||||
/// 心跳间隔
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "心跳检查间隔")]
|
||||
public int HeartbeatInterval { get; set; } = 30;
|
||||
|
||||
/// <summary>
|
||||
/// 供应商
|
||||
/// 供应商
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "供应商")]
|
||||
public string Supplier { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设备功能
|
||||
/// 设备功能
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDataType = "varchar(150)", IsJson = true, ColumnDescription = "设备功能", DefaultValue = "[]")]
|
||||
public List<DeviceFuncEnumType> Funcs { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设备类型
|
||||
/// 设备类型
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "设备类型", ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
|
||||
public DeviceTypeEnumType Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 部署点
|
||||
/// 部署点
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "部署点")]
|
||||
public string DeployPlace { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 部署坐标
|
||||
/// 部署坐标
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "部署坐标")]
|
||||
public string DeployPosition { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 部署方向
|
||||
/// 部署方向
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "部署方向", ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
|
||||
public DeviceDeployDirectionEnumType? DeployDirection { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模板code
|
||||
/// 模板code
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "模板code")]
|
||||
public Guid TemplateCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 连接信息
|
||||
/// 连接信息
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "连接信息")]
|
||||
public string ConnectionInfo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否启用
|
||||
/// 是否启用
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDataType = "bit", ColumnDescription = "是否启用")]
|
||||
public bool Enable { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 是否作为考勤设备
|
||||
/// 是否作为考勤设备
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDataType = "bit", ColumnDescription = "是否作为考勤设备")]
|
||||
public bool AsAttendance { get; set; }
|
||||
@@ -102,5 +102,11 @@ public class DeviceEntity : SugarBaseEntity, ITenantId
|
||||
[SugarColumn(IsNullable = false, ColumnDataType = "bit", ColumnDescription = "是否启用时段码", DefaultValue = "0")]
|
||||
public bool EnableTimePeriod { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 是否为电梯门禁设备
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDataType = "bit", ColumnDescription = "是否为电梯门禁设备", DefaultValue = "0")]
|
||||
public bool IsElevatorAcs { get; set; }
|
||||
|
||||
public string TenantId { get; set; }
|
||||
}
|
||||
37
Src/Dlhis.Entity/Basic/Entity/ElevatorAcsFloorEntity.cs
Normal file
37
Src/Dlhis.Entity/Basic/Entity/ElevatorAcsFloorEntity.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using Kurisu.AspNetCore.DataAccess.Entity;
|
||||
using Kurisu.AspNetCore.DataAccess.SqlSugar;
|
||||
using SqlSugar;
|
||||
|
||||
namespace Dlhis.Entity.Basic.Entity;
|
||||
|
||||
/// <summary>
|
||||
/// 梯控楼层对照表
|
||||
/// </summary>
|
||||
[SugarTable(TableName = "ElevatorAcsFloors", TableDescription = "梯控楼层对照表")]
|
||||
public class ElevatorAcsFloorEntity : SugarBaseEntity, ITenantId
|
||||
{
|
||||
/// <summary>
|
||||
/// 实际设备唯一编号
|
||||
/// </summary>
|
||||
public string RealDeviceUniqueNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 虚拟设备唯一编号,用于区分同一设备的不同楼层 <see cref="DeviceEntity.UniqueNo"/>
|
||||
/// </summary>
|
||||
public string VirtualDeviceUniqueNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 关联的控制器对应的值(access control system value)
|
||||
/// </summary>
|
||||
public int AcsValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 楼层名称
|
||||
/// </summary>
|
||||
public string FloorName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 租户ID
|
||||
/// </summary>
|
||||
public string TenantId { get; set; }
|
||||
}
|
||||
@@ -8,24 +8,24 @@ namespace Dlhis.Entity.Basic.Entity
|
||||
public class GainfoCardRecordEntity : SugarBaseEntity, ITenantId
|
||||
{
|
||||
/// <summary>
|
||||
/// 档案No
|
||||
/// 档案No
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, IndexGroupNameList = new[] { "idx_GainfoCardRecord_userno" })]
|
||||
public string UserNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 卡号
|
||||
/// 卡号
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false)]
|
||||
public string CardNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 更换原因
|
||||
/// 更换原因
|
||||
/// </summary>
|
||||
public string Reason { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Remark { get; set; }
|
||||
|
||||
|
||||
@@ -25,5 +25,6 @@ public class GainfoFingerprintEntity : SugarBaseEntity
|
||||
/// <summary>
|
||||
/// 指纹数据
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "text")]
|
||||
public string Fingerprint { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user