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)