diff --git a/src/Shentun.Peis.Application/PatientRegisters/PatientRegisterAppService.cs b/src/Shentun.Peis.Application/PatientRegisters/PatientRegisterAppService.cs index a14f040..cb47522 100644 --- a/src/Shentun.Peis.Application/PatientRegisters/PatientRegisterAppService.cs +++ b/src/Shentun.Peis.Application/PatientRegisters/PatientRegisterAppService.cs @@ -2642,7 +2642,7 @@ namespace Shentun.Peis.PatientRegisters var customerOrgRegisterId = interfaceConfig.GetSection("Interface").GetSection("CustomerOrgRegisterId").Value; if (customerOrgRegisterId == input.CustomerOrgRegisterId.ToString()) { - patientRegister.ThirdBookingId = patientRegister.Id; + patientRegister.ThirdBookingId = patientRegister.Id.ToString(); } } diff --git a/src/Shentun.Peis.Domain/ThirdBookings/ThirdBooking.cs b/src/Shentun.Peis.Domain/ThirdBookings/ThirdBooking.cs index 74830ad..87a3d68 100644 --- a/src/Shentun.Peis.Domain/ThirdBookings/ThirdBooking.cs +++ b/src/Shentun.Peis.Domain/ThirdBookings/ThirdBooking.cs @@ -110,7 +110,7 @@ namespace Shentun.Peis.Models /// ///婚姻状况 0:未婚、1:已婚 /// - [StringLength(20)] + [StringLength(1)] [Column("marital_status")] public string MaritalStatus { get; set; } diff --git a/src/Shentun.Peis.EntityFrameworkCore/DbMapping/ThirdBookings/ThirdBookingDbMapping.cs b/src/Shentun.Peis.EntityFrameworkCore/DbMapping/ThirdBookings/ThirdBookingDbMapping.cs index 5cff0c2..10ef73f 100644 --- a/src/Shentun.Peis.EntityFrameworkCore/DbMapping/ThirdBookings/ThirdBookingDbMapping.cs +++ b/src/Shentun.Peis.EntityFrameworkCore/DbMapping/ThirdBookings/ThirdBookingDbMapping.cs @@ -27,7 +27,7 @@ namespace Shentun.Peis.DbMapping entity.Property(t => t.Phone).HasComment("电话"); entity.Property(t => t.ChildCompanyName).HasComment("分公司"); entity.Property(t => t.DepartmentName).HasComment("部门"); - entity.Property(t => t.MaritalStatusName).HasComment("婚姻状况"); + entity.Property(t => t.MaritalStatus).HasComment("婚姻状况"); entity.Property(t => t.MedicalStatus).HasComment("体检状态 0未开始 1已登记 2已完成体检").HasDefaultValueSql("'0'").IsRequired(); ; entity.Property(e => e.Id).IsFixedLength().IsRequired();