Browse Source

阳性结果报表

master
wxd 3 weeks ago
parent
commit
fec79d27b9
  1. 8
      src/Shentun.Peis.Application/CustomerReports/CustomerReportAppService.cs

8
src/Shentun.Peis.Application/CustomerReports/CustomerReportAppService.cs

@ -1116,8 +1116,8 @@ namespace Shentun.Peis.CustomerReports
var sumCount = queryGroup.Count(); var sumCount = queryGroup.Count();
resultListDto.MaleCount = queryGroup.Count(c => c.Key.SexId == 'M');
resultListDto.FemaleCount = queryGroup.Count(c => c.Key.SexId == 'F');
resultListDto.RegisterMaleCount = queryGroup.Count(c => c.Key.SexId == 'M');
resultListDto.RegisterFemaleCount = queryGroup.Count(c => c.Key.SexId == 'F');
List<GetDiseaseCountStatisticsReportPatientRegisterDetailDto> patientRegisterList = new List<GetDiseaseCountStatisticsReportPatientRegisterDetailDto>(); List<GetDiseaseCountStatisticsReportPatientRegisterDetailDto> patientRegisterList = new List<GetDiseaseCountStatisticsReportPatientRegisterDetailDto>();
@ -1234,8 +1234,8 @@ namespace Shentun.Peis.CustomerReports
resultListDto.StartDate = DataHelper.ConversionDateShortToString(input.CustomerOrgs.Where(m => !string.IsNullOrWhiteSpace(m.StartDate)).Select(s => Convert.ToDateTime(s.StartDate)).Min()); resultListDto.StartDate = DataHelper.ConversionDateShortToString(input.CustomerOrgs.Where(m => !string.IsNullOrWhiteSpace(m.StartDate)).Select(s => Convert.ToDateTime(s.StartDate)).Min());
resultListDto.EndDate = DataHelper.ConversionDateShortToString(input.CustomerOrgs.Where(m => !string.IsNullOrWhiteSpace(m.EndDate)).Select(s => Convert.ToDateTime(s.EndDate)).Max()); resultListDto.EndDate = DataHelper.ConversionDateShortToString(input.CustomerOrgs.Where(m => !string.IsNullOrWhiteSpace(m.EndDate)).Select(s => Convert.ToDateTime(s.EndDate)).Max());
//resultListDto.MaleCount = patientRegisters.Count(c => c.SexId == 'M');
//resultListDto.FemaleCount = patientRegisters.Count(c => c.SexId == 'F');
resultListDto.MaleCount = patientRegisterList.Distinct().Count(c => c.SexId == 'M');
resultListDto.FemaleCount = patientRegisterList.Distinct().Count(c => c.SexId == 'F');
resultListDto.Details = entListDto; resultListDto.Details = entListDto;
return resultListDto; return resultListDto;

Loading…
Cancel
Save