From ed580eab741f15c28aa602d9d2dfaccc05b6d2f4 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Tue, 23 Sep 2025 10:08:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=95=8C=E9=9D=A2=E5=A2=9E=E5=8A=A0=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Application/Service/Visit/DTO/PatientViewModel.cs | 2 ++ IRaCIS.Core.Application/Service/Visit/_MapConfig.cs | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/IRaCIS.Core.Application/Service/Visit/DTO/PatientViewModel.cs b/IRaCIS.Core.Application/Service/Visit/DTO/PatientViewModel.cs index 488782087..f8178014f 100644 --- a/IRaCIS.Core.Application/Service/Visit/DTO/PatientViewModel.cs +++ b/IRaCIS.Core.Application/Service/Visit/DTO/PatientViewModel.cs @@ -346,6 +346,8 @@ namespace IRaCIS.Application.Contracts public DateTime UpdateTime { get; set; } = DateTime.Now; public Guid CreateUserId { get; set; } public DateTime CreateTime { get; set; } = DateTime.Now; + + public int? SCPStudyCount { get; set; } } public class UpdateSubjectVisitStudyBindingCommand diff --git a/IRaCIS.Core.Application/Service/Visit/_MapConfig.cs b/IRaCIS.Core.Application/Service/Visit/_MapConfig.cs index 7f225ac77..aaff7cdf3 100644 --- a/IRaCIS.Core.Application/Service/Visit/_MapConfig.cs +++ b/IRaCIS.Core.Application/Service/Visit/_MapConfig.cs @@ -112,7 +112,8 @@ namespace IRaCIS.Core.Application.Service CreateMap() .ForMember(d => d.CalledAEList, u => u.MapFrom(s => s.SCPStudyList.Select(t => t.CalledAE).Distinct())) .ForMember(d => d.CallingAEList, u => u.MapFrom(s => s.SCPStudyList.Select(t => t.CallingAE).Distinct())) - .ForMember(d => d.PatientId, u => u.MapFrom(s => s.Id)); + .ForMember(d => d.PatientId, u => u.MapFrom(s => s.Id)) + .ForMember(d => d.SCPStudyCount, u => u.MapFrom(s => s.SCPStudyList.Count())); CreateMap().IncludeMembers(t => t.SCPStudy) .ForMember(d => d.VisitName, u => u.MapFrom(s => s.SubjectVisit.VisitName));