Browse Source

查询增加体检类别

bjmzak
wxd 1 year ago
parent
commit
bf8f469ffd
  1. 7
      src/Shentun.Peis.Application.Contracts/PatientRegisters/DoctorPeisRecordListInputDto.cs
  2. 7
      src/Shentun.Peis.Application.Contracts/PatientRegisters/SumDoctorPeisRecordListInputtDto.cs
  3. 8
      src/Shentun.Peis.Application/PatientRegisters/PatientRegisterAppService.cs

7
src/Shentun.Peis.Application.Contracts/PatientRegisters/DoctorPeisRecordListInputDto.cs

@ -56,6 +56,13 @@ namespace Shentun.Peis.PatientRegisters
///// </summary> ///// </summary>
//public char IsPicture { get; set; } = 'N'; //public char IsPicture { get; set; } = 'N';
/// <summary>
/// 体检类别
/// </summary>
public List<Guid> MedicalTypeIds { get; set; } = new List<Guid>();
public override int MaxResultCount { get; set; } = 100; public override int MaxResultCount { get; set; } = 100;
} }
} }

7
src/Shentun.Peis.Application.Contracts/PatientRegisters/SumDoctorPeisRecordListInputtDto.cs

@ -57,6 +57,13 @@ namespace Shentun.Peis.PatientRegisters
public List<Guid> Asbitems { get; set; } = new List<Guid>(); public List<Guid> Asbitems { get; set; } = new List<Guid>();
/// <summary>
/// 体检类别
/// </summary>
public List<Guid> MedicalTypeIds { get; set; } = new List<Guid>();
public override int MaxResultCount { get; set; } = 100; public override int MaxResultCount { get; set; } = 100;
} }
} }

8
src/Shentun.Peis.Application/PatientRegisters/PatientRegisterAppService.cs

@ -1509,6 +1509,10 @@ namespace Shentun.Peis.PatientRegisters
sumquery = sumquery.Where(m => m.RegisterCheckIsAudit == input.AsbitemIsAudit); sumquery = sumquery.Where(m => m.RegisterCheckIsAudit == input.AsbitemIsAudit);
} }
if (input.MedicalTypeIds.Any())
{
sumquery = sumquery.Where(m => m.a.MedicalTypeId != null && input.MedicalTypeIds.Contains(m.a.MedicalTypeId.Value));
}
#region 增加项目类别权限 #region 增加项目类别权限
@ -1787,6 +1791,10 @@ namespace Shentun.Peis.PatientRegisters
sumquery = sumquery.Where(m => m.RegisterCheckIsAudit == input.AsbitemIsAudit); sumquery = sumquery.Where(m => m.RegisterCheckIsAudit == input.AsbitemIsAudit);
} }
if (input.MedicalTypeIds.Any())
{
sumquery = sumquery.Where(m => m.a.MedicalTypeId != null && input.MedicalTypeIds.Contains(m.a.MedicalTypeId.Value));
}
var sumqueryGroup = sumquery.ToList().GroupBy(g => g.a.Id); var sumqueryGroup = sumquery.ToList().GroupBy(g => g.a.Id);

Loading…
Cancel
Save