14 changed files with 161 additions and 59 deletions
-
16src/Shentun.Peis.Application/BeiJingMZAKExportDatas/BeiJingMZAKExportDataAppService.cs
-
24src/Shentun.Peis.Application/DataMigrations/BaseDataHandleAppService.cs
-
6src/Shentun.Peis.Application/PeisApplicationAutoMapperProfile.cs
-
8src/Shentun.Peis.Application/TransToWebPeis/TransToWebPeisAppService.cs
-
46src/Shentun.Peis.Domain/FollowUps/FollowUp.cs
-
8src/Shentun.Peis.Domain/PatientRegisters/PatientRegister.cs
-
29src/Shentun.Peis.Domain/PhoneFollows/PhoneFollowUp.cs
-
20src/Shentun.Peis.Domain/SmsSends/SmsSend.cs
-
7src/Shentun.Peis.Domain/SmsTypes/SmsType.cs
-
26src/Shentun.Peis.EntityFrameworkCore/DbMapping/FollowUps/FollowUpDbMapping.cs
-
9src/Shentun.Peis.EntityFrameworkCore/DbMapping/PhoneFollows/PhoneFollowDbMapping.cs
-
8src/Shentun.Peis.EntityFrameworkCore/DbMapping/RegisterChecks/RegisterCheckDbMapping.cs
-
2src/Shentun.Peis.EntityFrameworkCore/DbMapping/SmsSends/SmsSendDbMapping.cs
-
7src/Shentun.Peis.EntityFrameworkCore/EntityFrameworkCore/PeisDbContext.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 |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 随访表
|
||||
|
/// </summary>
|
||||
|
[Table("follow_up")] |
||||
|
public class FollowUp : AuditedEntity<Guid>, IHasConcurrencyStamp |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 登记流水号
|
||||
|
/// </summary>
|
||||
|
[Column("patient_register_id")] |
||||
|
public Guid PatientRegisterId { get; set; } |
||||
|
|
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 是否短信随访创建完成
|
||||
|
/// </summary>
|
||||
|
[Column("is_sms_complete")] |
||||
|
[MaxLength(1)] |
||||
|
public char IsSmsComplete { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 是否电话随访创建完成
|
||||
|
/// </summary>
|
||||
|
[Column("is_phone_complete")] |
||||
|
[MaxLength(1)] |
||||
|
public char IsPhoneComplete { get; set; } |
||||
|
|
||||
|
|
||||
|
[Column("concurrency_stamp")] |
||||
|
public string ConcurrencyStamp { get; set; } |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
@ -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<FollowUp> |
||||
|
{ |
||||
|
public void Configure(EntityTypeBuilder<FollowUp> 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(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue