Browse Source

预约

master
DESKTOP-G961P6V\Zhh 1 year ago
parent
commit
557de6b1d2
  1. 20
      src/Shentun.WebPeis.Application.Contracts/AppointPatientRegisters/AppointPatientRegisterInputDto.cs
  2. 4
      src/Shentun.WebPeis.Application/AppointPatientRegisters/AppointPatientRegisterAppService.cs

20
src/Shentun.WebPeis.Application.Contracts/AppointPatientRegisters/AppointPatientRegisterInputDto.cs

@ -6,12 +6,32 @@ namespace Shentun.WebPeis.AppointPatientRegisters
{ {
public class AppointPatientRegisterInputDto public class AppointPatientRegisterInputDto
{ {
/// <summary>
/// 体检中心ID
/// </summary>
public Guid? MedicalCenterId { get; set; } public Guid? MedicalCenterId { get; set; }
/// <summary>
/// 身份证号
/// </summary>
public string? IdNo { get; set; } public string? IdNo { get; set; }
/// <summary>
/// 手机号
/// </summary>
public string? MobilePhone { get; set; } public string? MobilePhone { get; set; }
/// <summary>
/// 预约开始日期
/// </summary>
public DateTime? AppointStartDate { get; set; } public DateTime? AppointStartDate { get; set; }
/// <summary>
/// 预约结束日期
/// </summary>
public DateTime? AppointStopDate { get; set; } public DateTime? AppointStopDate { get; set; }
/// <summary>
/// 完成标志
/// </summary>
public char? CompleteFlag { get; set; }
} }
} }

4
src/Shentun.WebPeis.Application/AppointPatientRegisters/AppointPatientRegisterAppService.cs

@ -225,6 +225,10 @@ namespace Shentun.WebPeis.AppointPatientRegisters
query = query.Where(o => o.user.PhoneNumber == input.MobilePhone); 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 appointPatientRegisterDtos = query.ToList();
var list = appointPatientRegisterDtos.GroupBy(o => o.appointPatientRegister) var list = appointPatientRegisterDtos.GroupBy(o => o.appointPatientRegister)

Loading…
Cancel
Save