From 91f6c67cc601ce4a0621b781a6d43a612d1c792c Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Wed, 11 Jan 2023 10:54:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IRaCIS.Core.Application.xml | 75 +++++++++++++++++++ IRaCIS.Core.Domain/Management/User.cs | 1 + .../EntityConfigration/DoctorConfigration.cs | 19 +++++ 3 files changed, 95 insertions(+) diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml index fbcb10d6a..62ac3efaa 100644 --- a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml +++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml @@ -10011,6 +10011,46 @@ 文件类型 + + + 文件名称 + + + + + 文件路径 + + + + + 标准类型 + + + + + 医生Id + + + + + 备注 + + + + + 文件类型 + + + + + CreateUserId + + + + + CreateTime + + 文件类型 @@ -10051,6 +10091,41 @@ 后台查询模型 + + + 文件名称 + + + + + 文件路径 + + + + + 标准类型 + + + + + 医生Id + + + + + 备注 + + + + + 文件类型 + + + + + 待办数量 + + 获取是和否 diff --git a/IRaCIS.Core.Domain/Management/User.cs b/IRaCIS.Core.Domain/Management/User.cs index 4239ad586..2aa4d1e0e 100644 --- a/IRaCIS.Core.Domain/Management/User.cs +++ b/IRaCIS.Core.Domain/Management/User.cs @@ -19,6 +19,7 @@ namespace IRaCIS.Core.Domain.Models public List UserDoctors { get; set; } = new List(); [JsonIgnore] public List UserTrials { get; set; } = new List(); + [JsonIgnore] public List VisitTaskList { get; set; } diff --git a/IRaCIS.Core.Infra.EFCore/EntityConfigration/DoctorConfigration.cs b/IRaCIS.Core.Infra.EFCore/EntityConfigration/DoctorConfigration.cs index afcafa48f..7c6cc7b08 100644 --- a/IRaCIS.Core.Infra.EFCore/EntityConfigration/DoctorConfigration.cs +++ b/IRaCIS.Core.Infra.EFCore/EntityConfigration/DoctorConfigration.cs @@ -22,6 +22,25 @@ namespace IRaCIS.Core.Infra.EFCore.EntityConfigration .WithMany(d => d.DoctorDicRelationList) .HasForeignKey(dd => dd.DictionaryId); } + + + } + + public class DoctorTaskConfigration : IEntityTypeConfiguration + { + + + public void Configure(EntityTypeBuilder builder) + { + builder + .HasOne(dd => dd.DoctorUser) + .WithMany(p => p.VisitTaskList) + .HasForeignKey(dd => dd.DoctorUserId); + + + } + + } public class DictionaryConfigration : IEntityTypeConfiguration