From 557de6b1d248596957e2017dd303a3bebe28246a Mon Sep 17 00:00:00 2001
From: "DESKTOP-G961P6V\\Zhh" <839860190@qq.com>
Date: Thu, 6 Jun 2024 16:34:32 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E7=BA=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
 .../AppointPatientRegisterInputDto.cs         | 20 +++++++++++++++++++
 .../AppointPatientRegisterAppService.cs       |  4 ++++
 2 files changed, 24 insertions(+)
diff --git a/src/Shentun.WebPeis.Application.Contracts/AppointPatientRegisters/AppointPatientRegisterInputDto.cs b/src/Shentun.WebPeis.Application.Contracts/AppointPatientRegisters/AppointPatientRegisterInputDto.cs
index d643fc8..f33f320 100644
--- a/src/Shentun.WebPeis.Application.Contracts/AppointPatientRegisters/AppointPatientRegisterInputDto.cs
+++ b/src/Shentun.WebPeis.Application.Contracts/AppointPatientRegisters/AppointPatientRegisterInputDto.cs
@@ -6,12 +6,32 @@ namespace Shentun.WebPeis.AppointPatientRegisters
 {
     public class AppointPatientRegisterInputDto
     {
+        /// 
+        /// 体检中心ID
+        /// 
         public Guid? MedicalCenterId { get; set; }
+        /// 
+        /// 身份证号
+        /// 
         public string? IdNo { get; set; }
+        /// 
+        /// 手机号
+        /// 
         public string? MobilePhone { get; set; }
+        /// 
+        /// 预约开始日期
+        /// 
 
         public DateTime? AppointStartDate { get; set; }
+        /// 
+        /// 预约结束日期
+        /// 
         public DateTime? AppointStopDate { get; set; }
+        /// 
+        /// 完成标志
+        /// 
+
+        public char? CompleteFlag { get; set; }
 
     }
 }
diff --git a/src/Shentun.WebPeis.Application/AppointPatientRegisters/AppointPatientRegisterAppService.cs b/src/Shentun.WebPeis.Application/AppointPatientRegisters/AppointPatientRegisterAppService.cs
index be033cc..2b6a768 100644
--- a/src/Shentun.WebPeis.Application/AppointPatientRegisters/AppointPatientRegisterAppService.cs
+++ b/src/Shentun.WebPeis.Application/AppointPatientRegisters/AppointPatientRegisterAppService.cs
@@ -225,6 +225,10 @@ namespace Shentun.WebPeis.AppointPatientRegisters
                 query = query.Where(o => o.user.PhoneNumber == input.MobilePhone);
             }
 
+            if(input.CompleteFlag != null)
+            {
+                query = query.Where(o => o.appointPatientRegister.CompleteFlag == input.CompleteFlag);
+            }
             var appointPatientRegisterDtos = query.ToList();
 
             var list = appointPatientRegisterDtos.GroupBy(o => o.appointPatientRegister)