add 访客

This commit is contained in:
2024-10-10 12:27:37 +08:00
parent 981bcc38e2
commit 4af590209f
7 changed files with 7 additions and 121 deletions

View File

@@ -22,6 +22,7 @@ public class AppointmentAreaAssignmentEntity : SugarBaseEntity, ITenantId
[SugarColumn(IsNullable = false, ColumnDescription = "设备code")]
public Guid DeviceCode { get; set; }
[SugarColumn]
public string TenantId { get; set; }
}
}

View File

@@ -11,7 +11,7 @@ namespace Dlhis.Entity.Visitor.Entity;
/// 预约区域
/// </summary>
[SugarTable(TableName = "AppointmentArea", TableDescription = "预约区域")]
public class AppointmentAreaEntity : SugarBaseEntity, ITenantId, ISoftDeleted
public class AppointmentAreaEntity : SugarBaseEntity, ITenantId
{
/// <summary>
/// 区域类型
@@ -48,7 +48,4 @@ public class AppointmentAreaEntity : SugarBaseEntity, ITenantId, ISoftDeleted
[SugarColumn(IsNullable = false, ColumnDescription = " 基地/租户",
UniqueGroupNameList = new[] { "idx_AppointmentArea_t_cc_tid" })]
public string TenantId { get; set; }
public bool IsDeleted { get; set; }
}
}

View File

@@ -1,7 +1,5 @@
using Dlhis.Entity.Visitor.Enums;
using Kurisu.AspNetCore.DataAccess.SqlSugar;
using Kurisu.AspNetCore.DataAccess.SqlSugar;
using SqlSugar;
using SqlSugar.DbConvert;
namespace Dlhis.Entity.Visitor.Entity;
@@ -36,7 +34,7 @@ public class VisitorAppointmentEntity : SugarBaseEntity
/// 申请时间
/// </summary>
public DateTime Date { get; set; }
/// <summary>
/// 备注
/// </summary>
@@ -51,4 +49,4 @@ public class VisitorAppointmentEntity : SugarBaseEntity
/// 申请事由
/// </summary>
public string Reason { get; set; }
}
}

View File

@@ -1,19 +0,0 @@
using System.ComponentModel;
namespace Dlhis.Entity.Visitor.Enums;
[Description("预约区域")]
public enum ApponintmentAreaEnumType
{
/// <summary>
/// 门岗
/// </summary>
[Description("门岗")]
Door = 1,
/// <summary>
/// 车间
/// </summary>
[Description("车间")]
Workshop = 2,
}

View File

@@ -1,22 +0,0 @@
using System.ComponentModel;
namespace Dlhis.Entity.Visitor.Enums;
/// <summary>
/// 访客预约明细状态
/// </summary>
[Description("访客预约状态")]
public enum VisitorAppointmentStatusEnumType
{
/// <summary>
/// 到达
/// </summary>
[Description("到达")]
Valid = 1,
/// <summary>
/// 作废
/// </summary>
[Description("作废")]
Obsolete = 99
}

View File

@@ -1,56 +0,0 @@
using Dlhis.Entity.Visitor.Enums;
using Kurisu.AspNetCore.Utils.Extensions;
namespace Dlhis.Visitor.Appointment.Response;
public class AppointmentDetailResponse
{
public long Id { get; set; }
public long AppointmentId { get; set; }
/// <summary>
/// 流水号
/// </summary>
public string FlowId { get; set; }
/// <summary>
/// 访客名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 手机号
/// </summary>
public string Phone { get; set; }
/// <summary>
/// 身份证
/// </summary>
public string IdNo { get; set; }
/// <summary>
/// 预计到达
/// </summary>
public DateTime Start { get; set; }
/// <summary>
/// 预计离开
/// </summary>
public DateTime End { get; set; }
/// <summary>
/// 状态
/// </summary>
public AppointmentDetailEnumType Status { get; set; }
/// <summary>
/// 状态
/// </summary>
public string StatusDesc => Status.GetDescription();
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
}

View File

@@ -1,13 +0,0 @@
using Dlhis.Visitor.Appointment.Request;
using Dlhis.Visitor.Appointment.Response;
using Kurisu.AspNetCore.DataAccess.Dto;
namespace Dlhis.Visitor.Appointment.Services;
public interface IAppointmentAreaService : IScopeDependency
{
Task<Pagination<ApponintmentAreaPageResponse>> GetPageAsync(PageDto request);
Task SaveAsync(AppointmentAreaSaveRequest request);
Task DeleteAsync(long id);
Task AssignAsync(AppointmentAreaAssignRequest request);
}