12 changed files with 343 additions and 8 deletions
-
21src/Shentun.Peis.Application.Contracts/RegisterChecks/CreateDoctorSignInInputDto.cs
-
11src/Shentun.Peis.Application.Contracts/RegisterChecks/GetDoctorIsSignInDto.cs
-
14src/Shentun.Peis.Application.Contracts/RegisterChecks/GetDoctorIsSignInInputDto.cs
-
16src/Shentun.Peis.Application/QueueRegisters/QueueRegisterAppService.cs
-
117src/Shentun.Peis.Application/RegisterChecks/RegisterCheckAppService.cs
-
25src/Shentun.Peis.Domain.Shared/Enums/SignInFlag.cs
-
27src/Shentun.Peis.Domain/CacheService.cs
-
48src/Shentun.Peis.Domain/DoctorSignIns/DoctorSignIn.cs
-
27src/Shentun.Peis.Domain/QueueRegisters/QueueRegisterManager.cs
-
30src/Shentun.Peis.EntityFrameworkCore/DbMapping/DoctorSignIns/DoctorSignInDbMapping.cs
-
13src/Shentun.Peis.EntityFrameworkCore/EntityFrameworkCore/PeisDbContext.cs
-
2src/Shentun.Peis.HttpApi.Host/appsettings.json
@ -0,0 +1,21 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace Shentun.Peis.RegisterChecks |
||||
|
{ |
||||
|
public class CreateDoctorSignInInputDto |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 房间ID
|
||||
|
/// </summary>
|
||||
|
public Guid RoomId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 0-签到,1-签退
|
||||
|
/// </summary>
|
||||
|
public char SignInFlag { get; set; } = '0'; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,11 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace Shentun.Peis.RegisterChecks |
||||
|
{ |
||||
|
public class GetDoctorIsSignInDto |
||||
|
{ |
||||
|
public char IsSignIn { get; set; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,14 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace Shentun.Peis.RegisterChecks |
||||
|
{ |
||||
|
public class GetDoctorIsSignInInputDto |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 房间ID
|
||||
|
/// </summary>
|
||||
|
public Guid RoomId { get; set; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,25 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.ComponentModel; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace Shentun.Peis.Enums |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 医生签到枚举 0-签到 1-签退
|
||||
|
/// </summary>
|
||||
|
public static class SignInFlag |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 签到
|
||||
|
/// </summary>
|
||||
|
[Description("签到")] |
||||
|
public const char SignIn = '0'; |
||||
|
/// <summary>
|
||||
|
/// 签退
|
||||
|
/// </summary>
|
||||
|
[Description("签退")] |
||||
|
public const char SignOut = '1'; |
||||
|
|
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,48 @@ |
|||||
|
using Microsoft.EntityFrameworkCore; |
||||
|
using Shentun.Peis.Models; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using Volo.Abp.Domain.Entities.Auditing; |
||||
|
using Volo.Abp.Domain.Entities; |
||||
|
|
||||
|
namespace Shentun.Peis.Models |
||||
|
{ |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 医生签到表
|
||||
|
/// </summary>
|
||||
|
[Table("doctor_sign_in")] |
||||
|
public class DoctorSignIn : AuditedEntity<Guid>, IHasConcurrencyStamp |
||||
|
{ |
||||
|
|
||||
|
[Column("room_id")] |
||||
|
public Guid RoomId { get; set; } |
||||
|
|
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 0-签到,1-签退
|
||||
|
/// </summary>
|
||||
|
[Column("sign_in_flag")] |
||||
|
[MaxLength(1)] |
||||
|
public char SignInFlag { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 签退日期
|
||||
|
/// </summary>
|
||||
|
[Column("sign_out_date")] |
||||
|
public DateTime? SignOutDate { get; set; } |
||||
|
|
||||
|
|
||||
|
[Column("concurrency_stamp")] |
||||
|
public string ConcurrencyStamp { get; set; } |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,30 @@ |
|||||
|
using Microsoft.EntityFrameworkCore.Metadata.Builders; |
||||
|
using Microsoft.EntityFrameworkCore; |
||||
|
using Shentun.Peis.Models; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using Shentun.Peis.EntityFrameworkCore; |
||||
|
|
||||
|
namespace Shentun.Peis.DbMapping |
||||
|
{ |
||||
|
|
||||
|
internal class DoctorSignInDbMapping : IEntityTypeConfiguration<DoctorSignIn> |
||||
|
{ |
||||
|
public void Configure(EntityTypeBuilder<DoctorSignIn> entity) |
||||
|
{ |
||||
|
entity.HasComment("医生签到表"); |
||||
|
|
||||
|
|
||||
|
entity.Property(e => e.RoomId).HasComment("房间ID"); |
||||
|
entity.Property(e => e.SignInFlag).HasComment("0-签到,1-签退"); |
||||
|
entity.Property(e => e.SignOutDate).HasComment("签退日期"); |
||||
|
entity.Property(e => e.Id).IsFixedLength(); |
||||
|
|
||||
|
|
||||
|
entity.ConfigureByConvention(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue