From 46efa4431d2f1e39c42ede19d90b3bbb2db69853 Mon Sep 17 00:00:00 2001 From: wxd <123@qq.com> Date: Fri, 26 Jul 2024 17:57:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=B1=E8=AD=A6=E5=80=BC=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BeiJingMZAKExportDataAppService.cs | 16 +++---- .../BaseDataHandleAppService.cs | 24 +++++----- .../PeisApplicationAutoMapperProfile.cs | 6 +-- .../TransToWebPeisAppService.cs | 8 ++-- src/Shentun.Peis.Domain/FollowUps/FollowUp.cs | 46 +++++++++++++++++++ .../PatientRegisters/PatientRegister.cs | 8 ++-- .../{PhoneFollow.cs => PhoneFollowUp.cs} | 29 +++++++++--- src/Shentun.Peis.Domain/SmsSends/SmsSend.cs | 20 +++++--- src/Shentun.Peis.Domain/SmsTypes/SmsType.cs | 9 +++- .../DbMapping/FollowUps/FollowUpDbMapping.cs | 26 +++++++++++ .../PhoneFollows/PhoneFollowDbMapping.cs | 11 +++-- .../RegisterChecks/RegisterCheckDbMapping.cs | 8 ++-- .../DbMapping/SmsSends/SmsSendDbMapping.cs | 2 +- .../EntityFrameworkCore/PeisDbContext.cs | 7 ++- 14 files changed, 161 insertions(+), 59 deletions(-) create mode 100644 src/Shentun.Peis.Domain/FollowUps/FollowUp.cs rename src/Shentun.Peis.Domain/PhoneFollows/{PhoneFollow.cs => PhoneFollowUp.cs} (73%) create mode 100644 src/Shentun.Peis.EntityFrameworkCore/DbMapping/FollowUps/FollowUpDbMapping.cs diff --git a/src/Shentun.Peis.Application/BeiJingMZAKExportDatas/BeiJingMZAKExportDataAppService.cs b/src/Shentun.Peis.Application/BeiJingMZAKExportDatas/BeiJingMZAKExportDataAppService.cs index 5b9a71e..6314879 100644 --- a/src/Shentun.Peis.Application/BeiJingMZAKExportDatas/BeiJingMZAKExportDataAppService.cs +++ b/src/Shentun.Peis.Application/BeiJingMZAKExportDatas/BeiJingMZAKExportDataAppService.cs @@ -2693,12 +2693,12 @@ namespace Shentun.Peis.BeiJingMZAKExportDatas CheckRequestPrintTimes = (short)1, CompleteFlag = Convert.ToChar(rowAsbitem["complete_flag"].ToString()), CriticalRangeValue = null, - CriticalValueCreateDate = null, + //CriticalValueCreateDate = null, IsCriticalValue = null, CriticalValueContent = null, - CriticalValueProcessDate = null, - CriticalValueProcessDoctor = null, - CriticalValueProcessFlag = null, + //CriticalValueProcessDate = null, + //CriticalValueProcessDoctor = null, + //CriticalValueProcessFlag = null, IsAudit = string.IsNullOrEmpty(rowAsbitem["audit_flag"].ToString()) ? 'N' : Convert.ToChar(rowAsbitem["audit_flag"].ToString()), IsLock = string.IsNullOrEmpty(rowAsbitem["lock_flag"].ToString()) ? 'N' : Convert.ToChar(rowAsbitem["lock_flag"].ToString()), PatientRegisterId = patientRegisterId, @@ -3268,12 +3268,12 @@ namespace Shentun.Peis.BeiJingMZAKExportDatas CheckRequestPrintTimes = (short)1, CompleteFlag = Convert.ToChar(rowAsbitem["complete_flag"].ToString()), CriticalRangeValue = null, - CriticalValueCreateDate = null, + //CriticalValueCreateDate = null, IsCriticalValue = null, CriticalValueContent = null, - CriticalValueProcessDate = null, - CriticalValueProcessDoctor = null, - CriticalValueProcessFlag = null, + //CriticalValueProcessDate = null, + //CriticalValueProcessDoctor = null, + //CriticalValueProcessFlag = null, IsAudit = string.IsNullOrEmpty(rowAsbitem["audit_flag"].ToString()) ? 'N' : Convert.ToChar(rowAsbitem["audit_flag"].ToString()), IsLock = string.IsNullOrEmpty(rowAsbitem["lock_flag"].ToString()) ? 'N' : Convert.ToChar(rowAsbitem["lock_flag"].ToString()), PatientRegisterId = patientRegisterId, diff --git a/src/Shentun.Peis.Application/DataMigrations/BaseDataHandleAppService.cs b/src/Shentun.Peis.Application/DataMigrations/BaseDataHandleAppService.cs index a0f61a4..a0177b4 100644 --- a/src/Shentun.Peis.Application/DataMigrations/BaseDataHandleAppService.cs +++ b/src/Shentun.Peis.Application/DataMigrations/BaseDataHandleAppService.cs @@ -2613,12 +2613,12 @@ namespace Shentun.Peis.DataMigrations CheckRequestPrintTimes = (short)1, CompleteFlag = Convert.ToChar(rowAsbitem["complete_flag"].ToString()), CriticalRangeValue = null, - CriticalValueCreateDate = null, + // CriticalValueCreateDate = null, IsCriticalValue = null, CriticalValueContent = null, - CriticalValueProcessDate = null, - CriticalValueProcessDoctor = null, - CriticalValueProcessFlag = null, + //CriticalValueProcessDate = null, + //CriticalValueProcessDoctor = null, + //CriticalValueProcessFlag = null, IsAudit = string.IsNullOrEmpty(rowAsbitem["audit_flag"].ToString()) ? 'N' : Convert.ToChar(rowAsbitem["audit_flag"].ToString()), IsLock = string.IsNullOrEmpty(rowAsbitem["lock_flag"].ToString()) ? 'N' : Convert.ToChar(rowAsbitem["lock_flag"].ToString()), PatientRegisterId = patientRegisterId, @@ -3515,12 +3515,12 @@ namespace Shentun.Peis.DataMigrations CheckRequestPrintTimes = (short)1, CompleteFlag = Convert.ToChar(rowAsbitem["complete_flag"].ToString()), CriticalRangeValue = null, - CriticalValueCreateDate = null, + //CriticalValueCreateDate = null, IsCriticalValue = null, CriticalValueContent = null, - CriticalValueProcessDate = null, - CriticalValueProcessDoctor = null, - CriticalValueProcessFlag = null, + //CriticalValueProcessDate = null, + //CriticalValueProcessDoctor = null, + //CriticalValueProcessFlag = null, IsAudit = string.IsNullOrEmpty(rowAsbitem["audit_flag"].ToString()) ? 'N' : Convert.ToChar(rowAsbitem["audit_flag"].ToString()), IsLock = string.IsNullOrEmpty(rowAsbitem["lock_flag"].ToString()) ? 'N' : Convert.ToChar(rowAsbitem["lock_flag"].ToString()), PatientRegisterId = patientRegisterId, @@ -4044,12 +4044,12 @@ namespace Shentun.Peis.DataMigrations CheckRequestPrintTimes = (short)1, CompleteFlag = Convert.ToChar(row["complete_flag"].ToString()), CriticalRangeValue = null, - CriticalValueCreateDate = null, + // CriticalValueCreateDate = null, IsCriticalValue = null, CriticalValueContent = null, - CriticalValueProcessDate = null, - CriticalValueProcessDoctor = null, - CriticalValueProcessFlag = null, + //CriticalValueProcessDate = null, + //CriticalValueProcessDoctor = null, + //CriticalValueProcessFlag = null, IsAudit = string.IsNullOrEmpty(row["audit_flag"].ToString()) ? 'N' : Convert.ToChar(row["audit_flag"].ToString()), IsLock = string.IsNullOrEmpty(row["lock_flag"].ToString()) ? 'N' : Convert.ToChar(row["lock_flag"].ToString()), PatientRegisterId = item.Id, diff --git a/src/Shentun.Peis.Application/PeisApplicationAutoMapperProfile.cs b/src/Shentun.Peis.Application/PeisApplicationAutoMapperProfile.cs index 6d62e22..1056ad2 100644 --- a/src/Shentun.Peis.Application/PeisApplicationAutoMapperProfile.cs +++ b/src/Shentun.Peis.Application/PeisApplicationAutoMapperProfile.cs @@ -409,9 +409,9 @@ public class PeisApplicationAutoMapperProfile : Profile CreateMap(); CreateMap().ForMember(d => d.CheckDate, opt => opt.MapFrom(src => PageHelper.ConvertDatetimeV(src.CheckDate))); - CreateMap() - .ForMember(d => d.CriticalValueProcessDate, opt => opt.MapFrom(src => PageHelper.ConvertDatetimeV(src.CriticalValueProcessDate))) - .ForMember(d => d.CriticalValueCreateDate, opt => opt.MapFrom(src => PageHelper.ConvertDatetimeV(src.CriticalValueCreateDate))); + //CreateMap() + // .ForMember(d => d.CriticalValueProcessDate, opt => opt.MapFrom(src => PageHelper.ConvertDatetimeV(src.CriticalValueProcessDate))) + // .ForMember(d => d.CriticalValueCreateDate, opt => opt.MapFrom(src => PageHelper.ConvertDatetimeV(src.CriticalValueCreateDate))); CreateMap().ForMember(d => d.AuditTime, opt => opt.MapFrom(src => PageHelper.ConvertDatetimeV(src.AuditTime))); diff --git a/src/Shentun.Peis.Application/TransToWebPeis/TransToWebPeisAppService.cs b/src/Shentun.Peis.Application/TransToWebPeis/TransToWebPeisAppService.cs index ec1cc08..514b9e7 100644 --- a/src/Shentun.Peis.Application/TransToWebPeis/TransToWebPeisAppService.cs +++ b/src/Shentun.Peis.Application/TransToWebPeis/TransToWebPeisAppService.cs @@ -1055,10 +1055,10 @@ namespace Shentun.Peis.TransToWebPeis new SugarParameter("critical_value",registerCheckWithDetail.CriticalRangeValue), new SugarParameter("critical_value_flag",registerCheckWithDetail.IsCriticalValue), new SugarParameter("critical_value_process_content",registerCheckWithDetail.CriticalValueContent), - new SugarParameter("critical_value_process_flag",registerCheckWithDetail.CriticalValueProcessFlag), - new SugarParameter("critical_value_process_doctor",registerCheckWithDetail.CriticalValueProcessDoctor), - new SugarParameter("critical_value_process_date",registerCheckWithDetail.CriticalValueProcessDate), - new SugarParameter("critical_value_create_date",registerCheckWithDetail.CriticalValueCreateDate), + //new SugarParameter("critical_value_process_flag",registerCheckWithDetail.CriticalValueProcessFlag), + //new SugarParameter("critical_value_process_doctor",registerCheckWithDetail.CriticalValueProcessDoctor), + //new SugarParameter("critical_value_process_date",registerCheckWithDetail.CriticalValueProcessDate), + //new SugarParameter("critical_value_create_date",registerCheckWithDetail.CriticalValueCreateDate), new SugarParameter("check_doctor_id",registerCheckWithDetail.CheckDoctorId), new SugarParameter("check_date",registerCheckWithDetail.CheckDate), new SugarParameter("is_audit",registerCheckWithDetail.IsAudit), diff --git a/src/Shentun.Peis.Domain/FollowUps/FollowUp.cs b/src/Shentun.Peis.Domain/FollowUps/FollowUp.cs new file mode 100644 index 0000000..7e8a232 --- /dev/null +++ b/src/Shentun.Peis.Domain/FollowUps/FollowUp.cs @@ -0,0 +1,46 @@ +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 +{ + /// + /// 随访表 + /// + [Table("follow_up")] + public class FollowUp : AuditedEntity, IHasConcurrencyStamp + { + /// + /// 登记流水号 + /// + [Column("patient_register_id")] + public Guid PatientRegisterId { get; set; } + + + /// + /// 是否短信随访创建完成 + /// + [Column("is_sms_complete")] + [MaxLength(1)] + public char IsSmsComplete { get; set; } + + /// + /// 是否电话随访创建完成 + /// + [Column("is_phone_complete")] + [MaxLength(1)] + public char IsPhoneComplete { get; set; } + + + [Column("concurrency_stamp")] + public string ConcurrencyStamp { get; set; } + } + + +} diff --git a/src/Shentun.Peis.Domain/PatientRegisters/PatientRegister.cs b/src/Shentun.Peis.Domain/PatientRegisters/PatientRegister.cs index 3bd0955..b7b10f4 100644 --- a/src/Shentun.Peis.Domain/PatientRegisters/PatientRegister.cs +++ b/src/Shentun.Peis.Domain/PatientRegisters/PatientRegister.cs @@ -26,7 +26,7 @@ namespace Shentun.Peis.Models PatientOccupationalHistories = new HashSet(); PatientPoisons = new HashSet(); PatientSymptoms = new HashSet(); - PhoneFollows = new HashSet(); + PhoneFollows = new HashSet(); QueueRegisters = new HashSet(); RegisterCheckAsbitems = new HashSet(); SumDiagnoses = new HashSet(); @@ -43,7 +43,7 @@ namespace Shentun.Peis.Models PatientOccupationalHistories = new HashSet(); PatientPoisons = new HashSet(); PatientSymptoms = new HashSet(); - PhoneFollows = new HashSet(); + PhoneFollows = new HashSet(); QueueRegisters = new HashSet(); RegisterCheckAsbitems = new HashSet(); SumDiagnoses = new HashSet(); @@ -348,8 +348,8 @@ namespace Shentun.Peis.Models public virtual ICollection PatientPoisons { get; set; } [InverseProperty(nameof(PatientSymptom.PatientRegister))] public virtual ICollection PatientSymptoms { get; set; } - [InverseProperty(nameof(PhoneFollow.PatientRegister))] - public virtual ICollection PhoneFollows { get; set; } + [InverseProperty(nameof(PhoneFollowUp.PatientRegister))] + public virtual ICollection PhoneFollows { get; set; } [InverseProperty(nameof(QueueRegister.PatientRegister))] public virtual ICollection QueueRegisters { get; set; } [InverseProperty(nameof(RegisterCheckAsbitem.PatientRegister))] diff --git a/src/Shentun.Peis.Domain/PhoneFollows/PhoneFollow.cs b/src/Shentun.Peis.Domain/PhoneFollows/PhoneFollowUp.cs similarity index 73% rename from src/Shentun.Peis.Domain/PhoneFollows/PhoneFollow.cs rename to src/Shentun.Peis.Domain/PhoneFollows/PhoneFollowUp.cs index 04b1876..2586d12 100644 --- a/src/Shentun.Peis.Domain/PhoneFollows/PhoneFollow.cs +++ b/src/Shentun.Peis.Domain/PhoneFollows/PhoneFollowUp.cs @@ -11,8 +11,8 @@ namespace Shentun.Peis.Models /// /// 电话随访 /// - [Table("phone_follow")] - public class PhoneFollow : AuditedEntity, IHasConcurrencyStamp + [Table("phone_follow_up")] + public class PhoneFollowUp : AuditedEntity, IHasConcurrencyStamp { /// /// 病人登记ID @@ -22,21 +22,36 @@ namespace Shentun.Peis.Models /// /// 随访内容 /// - [Column("follow_content")] + [Column("follow_up_content")] [StringLength(200)] - public string FollowContent { get; set; } = null!; + public string FollowUpContent { get; set; } = null!; /// /// 回复内容 /// [Column("reply_content")] [StringLength(200)] public string? ReplyContent { get; set; } + ///// + ///// 随访计划ID + ///// + + //[Column("follow_up_plan_id")] + //public Guid? FollowUpPlanId { get; set; } + /// - /// 随访计划ID + /// 随访ID /// - [Column("follow_up_plan_id")] - public Guid? FollowUpPlanId { get; set; } + [Column("follow_up_id")] + public Guid? FollowUpId { get; set; } + + + /// + /// 是否完成 + /// + [Column("is_complete")] + [MaxLength(1)] + public char IsComplete { get; set; } [Column("concurrency_stamp")] public string ConcurrencyStamp { get; set; } diff --git a/src/Shentun.Peis.Domain/SmsSends/SmsSend.cs b/src/Shentun.Peis.Domain/SmsSends/SmsSend.cs index 66245fd..396ccc2 100644 --- a/src/Shentun.Peis.Domain/SmsSends/SmsSend.cs +++ b/src/Shentun.Peis.Domain/SmsSends/SmsSend.cs @@ -19,24 +19,30 @@ namespace Shentun.Peis.Models /// [Column("sms_type_id")] - //[StringLength(2)] - public Guid SmsTypeId { get; set; } + [StringLength(2)] + public string SmsTypeId { get; set; } + /// - /// 随访计划ID + /// 随访ID /// - [Column("follow_up_plan_id")] - public Guid? FollowUpPlanId { get; set; } + [Column("follow_up_id")] + public Guid? FollowUpId { get; set; } + + ///// + ///// 随访计划ID + ///// + //[Column("follow_up_plan_id")] + //public Guid? FollowUpPlanId { get; set; } /// /// 人员ID /// [Column("patient_id")] - [StringLength(10)] public Guid? PatientId { get; set; } /// /// 姓名 /// [Column("patient_name")] - [StringLength(16)] + [StringLength(30)] public string PatientName { get; set; } = null!; /// /// 手机号 diff --git a/src/Shentun.Peis.Domain/SmsTypes/SmsType.cs b/src/Shentun.Peis.Domain/SmsTypes/SmsType.cs index 08b3299..608214e 100644 --- a/src/Shentun.Peis.Domain/SmsTypes/SmsType.cs +++ b/src/Shentun.Peis.Domain/SmsTypes/SmsType.cs @@ -12,9 +12,14 @@ namespace Shentun.Peis.Models /// 短信类别 /// [Table("sms_type")] - public class SmsType : AuditedEntity, IHasConcurrencyStamp + public class SmsType : AuditedEntity, IHasConcurrencyStamp { - + + [Column("Id")] + [Comment("主键Id")] + [StringLength(2)] + public override string Id { get => base.Id; protected set => base.Id = value; } + [Column("display_name")] [StringLength(20)] public string DisplayName { get; set; } = null!; diff --git a/src/Shentun.Peis.EntityFrameworkCore/DbMapping/FollowUps/FollowUpDbMapping.cs b/src/Shentun.Peis.EntityFrameworkCore/DbMapping/FollowUps/FollowUpDbMapping.cs new file mode 100644 index 0000000..a759fcb --- /dev/null +++ b/src/Shentun.Peis.EntityFrameworkCore/DbMapping/FollowUps/FollowUpDbMapping.cs @@ -0,0 +1,26 @@ +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 FollowUpDbMapping : IEntityTypeConfiguration + { + public void Configure(EntityTypeBuilder entity) + { + entity.HasComment("随访表"); + entity.Property(t => t.PatientRegisterId).HasComment("人员登记ID").IsRequired(); + entity.Property(t => t.IsPhoneComplete).HasComment("是否电话随访创建完成").IsRequired().HasDefaultValueSql("'N'"); + entity.Property(t => t.IsSmsComplete).HasComment("是否短信随访创建完成").IsRequired().HasDefaultValueSql("'N'"); + + entity.ConfigureByConvention(); + } + } +} diff --git a/src/Shentun.Peis.EntityFrameworkCore/DbMapping/PhoneFollows/PhoneFollowDbMapping.cs b/src/Shentun.Peis.EntityFrameworkCore/DbMapping/PhoneFollows/PhoneFollowDbMapping.cs index 96cb2e8..98f933a 100644 --- a/src/Shentun.Peis.EntityFrameworkCore/DbMapping/PhoneFollows/PhoneFollowDbMapping.cs +++ b/src/Shentun.Peis.EntityFrameworkCore/DbMapping/PhoneFollows/PhoneFollowDbMapping.cs @@ -10,16 +10,17 @@ using System.Threading.Tasks; namespace Shentun.Peis.DbMapping { - internal class PhoneFollowDbMapping : IEntityTypeConfiguration + internal class PhoneFollowDbMapping : IEntityTypeConfiguration { - public void Configure(EntityTypeBuilder entity) + public void Configure(EntityTypeBuilder entity) { entity.HasComment("电话随访"); entity.Property(t => t.PatientRegisterId).HasComment("病人登记ID").IsRequired(); - entity.Property(t => t.FollowContent).HasComment("随访内容"); + entity.Property(t => t.FollowUpContent).HasComment("随访内容"); entity.Property(t => t.ReplyContent).HasComment("回复内容"); - entity.Property(t => t.FollowUpPlanId).HasComment("随访计划ID"); - + //entity.Property(t => t.FollowUpPlanId).HasComment("随访计划ID"); + entity.Property(t => t.IsComplete).HasComment("是否完成").IsRequired().HasDefaultValueSql("'N'"); + entity.Property(e => e.Id).ValueGeneratedNever().IsRequired(); //entity.Property(e => e.CreationTime).HasDefaultValueSql("(date(timezone('UTC-8'::text, now())) - 1)"); diff --git a/src/Shentun.Peis.EntityFrameworkCore/DbMapping/RegisterChecks/RegisterCheckDbMapping.cs b/src/Shentun.Peis.EntityFrameworkCore/DbMapping/RegisterChecks/RegisterCheckDbMapping.cs index f484703..c64bff9 100644 --- a/src/Shentun.Peis.EntityFrameworkCore/DbMapping/RegisterChecks/RegisterCheckDbMapping.cs +++ b/src/Shentun.Peis.EntityFrameworkCore/DbMapping/RegisterChecks/RegisterCheckDbMapping.cs @@ -23,10 +23,10 @@ namespace Shentun.Peis.DbMapping entity.Property(t => t.CriticalRangeValue).HasComment("危急值"); entity.Property(t => t.IsCriticalValue).HasComment("危急值标志").HasDefaultValueSql("0"); entity.Property(t => t.CriticalValueContent).HasComment("危急值处理内容"); - entity.Property(t => t.CriticalValueProcessFlag).HasComment("危急值处理标志"); - entity.Property(t => t.CriticalValueProcessDoctor).HasComment("危急值处理医生"); - entity.Property(t => t.CriticalValueProcessDate).HasComment("危急值处理日期"); - entity.Property(t => t.CriticalValueCreateDate).HasComment("危急值创建日期"); + //entity.Property(t => t.CriticalValueProcessFlag).HasComment("危急值处理标志"); + //entity.Property(t => t.CriticalValueProcessDoctor).HasComment("危急值处理医生"); + //entity.Property(t => t.CriticalValueProcessDate).HasComment("危急值处理日期"); + //entity.Property(t => t.CriticalValueCreateDate).HasComment("危急值创建日期"); entity.Property(t => t.CheckDoctorId).HasComment("检查医生ID"); entity.Property(t => t.CheckDate).HasComment("检查日期"); entity.Property(t => t.IsAudit).HasComment("是审核"); diff --git a/src/Shentun.Peis.EntityFrameworkCore/DbMapping/SmsSends/SmsSendDbMapping.cs b/src/Shentun.Peis.EntityFrameworkCore/DbMapping/SmsSends/SmsSendDbMapping.cs index 3a22ac7..20a60fe 100644 --- a/src/Shentun.Peis.EntityFrameworkCore/DbMapping/SmsSends/SmsSendDbMapping.cs +++ b/src/Shentun.Peis.EntityFrameworkCore/DbMapping/SmsSends/SmsSendDbMapping.cs @@ -16,7 +16,7 @@ namespace Shentun.Peis.DbMapping { entity.HasComment("短信发送"); entity.Property(t => t.SmsTypeId).HasComment("短信类别ID").IsRequired(); - entity.Property(t => t.FollowUpPlanId).HasComment("随访计划ID"); + //entity.Property(t => t.FollowUpPlanId).HasComment("随访计划ID"); entity.Property(t => t.PatientId).HasComment("人员ID").IsRequired(); entity.Property(t => t.PatientName).HasComment("姓名").IsRequired(); entity.Property(t => t.MobileTelephone).HasComment("手机号").IsRequired(); diff --git a/src/Shentun.Peis.EntityFrameworkCore/EntityFrameworkCore/PeisDbContext.cs b/src/Shentun.Peis.EntityFrameworkCore/EntityFrameworkCore/PeisDbContext.cs index 347742a..c035861 100644 --- a/src/Shentun.Peis.EntityFrameworkCore/EntityFrameworkCore/PeisDbContext.cs +++ b/src/Shentun.Peis.EntityFrameworkCore/EntityFrameworkCore/PeisDbContext.cs @@ -227,7 +227,7 @@ public class PeisDbContext : public DbSet PayModes { get; set; } = null!; public DbSet PersonnelTypes { get; set; } = null!; - public DbSet PhoneFollows { get; set; } = null!; + public DbSet PhoneFollows { get; set; } = null!; public DbSet Poisons { get; set; } = null!; public DbSet PoisonTypes { get; set; } = null!; public DbSet PositionTypes { get; set; } = null!; @@ -359,6 +359,8 @@ public class PeisDbContext : public DbSet RoomDetails { get; set; } = null!; + public DbSet FollowUps { get; set; } = null!; + public PeisDbContext(DbContextOptions options) : base(options) { @@ -600,7 +602,8 @@ public class PeisDbContext : .ApplyConfiguration(new PatientOccupationalMedicalHistoryDbMapping()) .ApplyConfiguration(new PatientPastMedicalHistoryDbMapping()) .ApplyConfiguration(new OcCheckTypeDetailDbMapping()) - .ApplyConfiguration(new RoomDetailDbMapping()); + .ApplyConfiguration(new RoomDetailDbMapping()) + .ApplyConfiguration(new FollowUpDbMapping()); #endregion