132 lines
3.5 KiB
C#
132 lines
3.5 KiB
C#
using Dlhis.Entity.Visitor.Enums;
|
|
using Kurisu.AspNetCore.DataAccess.SqlSugar;
|
|
using SqlSugar;
|
|
using SqlSugar.DbConvert;
|
|
|
|
namespace Dlhis.Entity.Visitor.Entity;
|
|
|
|
/// <summary>
|
|
/// 预约明细
|
|
/// </summary>
|
|
[SugarTable(TableName = "VisitorAppointmentDetail", TableDescription = "访客预约")]
|
|
public class VisitorAppointmentDetailEntity : SugarBaseEntity
|
|
{
|
|
/// <summary>
|
|
/// 流水号
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "流水号")]
|
|
public string No { get; set; }
|
|
|
|
/// <summary>
|
|
/// no
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "用户No")]
|
|
public string UserNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// 证件类型
|
|
/// </summary>
|
|
public string IdType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 证件号
|
|
/// </summary>
|
|
public string IdNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// 访客名称
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "访客名称")]
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// 手机号
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "手机号")]
|
|
public string Phone { get; set; }
|
|
|
|
/// <summary>
|
|
/// 车牌
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "车牌")]
|
|
public string LicensePlate { get; set; }
|
|
|
|
/// <summary>
|
|
/// 进入门岗
|
|
/// </summary>
|
|
public bool IsEnterDoorArea { get; set; }
|
|
|
|
/// <summary>
|
|
/// 预约门禁区域
|
|
/// </summary>
|
|
public string ApplyDoorArea { get; set; }
|
|
|
|
/// <summary>
|
|
/// 访客开始
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public DateTime? DoorStart { get; set; }
|
|
|
|
/// <summary>
|
|
/// 访问结束
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public DateTime? DoorEnd { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否进入车间
|
|
/// </summary>
|
|
public bool IsEnterWorkplace { get; set; }
|
|
|
|
/// <summary>
|
|
/// 申请车间区域
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "车间区域", IsJson = true, DefaultValue = "[]")]
|
|
public List<string> ApplyWorkplaceAreas { get; set; }
|
|
|
|
/// <summary>
|
|
/// 车间访问开始
|
|
/// </summary>
|
|
public DateTime? WorkplaceStart { get; set; }
|
|
|
|
/// <summary>
|
|
/// 车间访问结束
|
|
/// </summary>
|
|
public DateTime? WorkplaceEnd { get; set; }
|
|
|
|
/// <summary>
|
|
/// 社保照片url
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "社保照片url")]
|
|
public string ImageUrl { get; set; }
|
|
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "备注")]
|
|
public string Remark { get; set; }
|
|
|
|
/// <summary>
|
|
/// 门禁状态
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "门禁状态", ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
|
|
public VisitorAppointmentDetailStatusEnumType DoorStatus { get; set; }
|
|
|
|
/// <summary>
|
|
/// 到达时间
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public DateTime? ArrivedTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 强制离场时间
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public DateTime? FocusLeaveDateTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 车间状态
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "车间状态", ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
|
|
public VisitorAppointmentDetailStatusEnumType WorkplaceStatus { get; set; }
|
|
} |