69 lines
2.3 KiB
C#
69 lines
2.3 KiB
C#
using Dlhis.Entity.Device.Enums;
|
|
using Kurisu.AspNetCore.DataAccess.Entity;
|
|
using Kurisu.AspNetCore.DataAccess.SqlSugar;
|
|
using Mapster;
|
|
using SqlSugar;
|
|
using SqlSugar.DbConvert;
|
|
|
|
namespace Dlhis.Entity.Device.Entities;
|
|
|
|
/// <summary>
|
|
/// 设备时段码
|
|
/// </summary>
|
|
[SugarTable(TableName = "DeviceTimePeriod", TableDescription = "设备时段码")]
|
|
public class DeviceTimePeriodEntity : SugarBaseEntity, ITenantId
|
|
{
|
|
/// <summary>
|
|
/// 卡类型
|
|
/// </summary>
|
|
[AdaptIgnore(MemberSide.Destination)]
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "卡类型",
|
|
UniqueGroupNameList = new[] { "unique_DeviceTimePeriod_cardType_assignType_value" })]
|
|
public int CardType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 分配类型
|
|
/// </summary>
|
|
[AdaptIgnore(MemberSide.Destination)]
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "分配类型",
|
|
ColumnDataType = "varchar(50)",
|
|
UniqueGroupNameList = new[] { "unique_DeviceTimePeriod_cardType_assignType_value" },
|
|
SqlParameterDbType = typeof(EnumToStringConvert))]
|
|
public DeviceTimePeriodAssignEnumType AssignType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 分配值
|
|
/// </summary>
|
|
[AdaptIgnore(MemberSide.Destination)]
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "分配值",
|
|
UniqueGroupNameList = new[] { "unique_DeviceTimePeriod_cardType_assignType_value" })]
|
|
public Guid Value { get; set; }
|
|
|
|
/// <summary>
|
|
/// 上班开始
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "上班开始")]
|
|
public TimeOnly OnStart { get; set; }
|
|
|
|
/// <summary>
|
|
/// 上班结束
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "上班结束")]
|
|
public TimeOnly OnEnd { get; set; }
|
|
|
|
/// <summary>
|
|
/// 下班开始
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "下班开始")]
|
|
public TimeOnly OffStart { get; set; }
|
|
|
|
/// <summary>
|
|
/// 下班结束
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "下班结束")]
|
|
public TimeOnly OffEnd { get; set; }
|
|
|
|
|
|
[SugarColumn(IsNullable = false, UniqueGroupNameList = new[] { "unique_DeviceTimePeriod_cardType_assignType_value" })]
|
|
public string TenantId { get; set; }
|
|
} |