Browse Source

科室统计

bjmzak
wxd 2 years ago
parent
commit
137db5ac38
  1. 5
      src/Shentun.Peis.Application.Contracts/InternalReports/GetItemTypeWorkLoadInStandardDto.cs
  2. 4
      src/Shentun.Peis.Application/InternalReports/InternalReportAppService.cs

5
src/Shentun.Peis.Application.Contracts/InternalReports/GetItemTypeWorkLoadInStandardDto.cs

@ -21,6 +21,11 @@ namespace Shentun.Peis.InternalReports
/// </summary> /// </summary>
public int AsbitemCount { get; set; } public int AsbitemCount { get; set; }
/// <summary>
/// 已检人次 组合项目数量
/// </summary>
public int CheckAsbitemCount { get; set; }
/// <summary> /// <summary>
/// 标准均价 /// 标准均价
/// </summary> /// </summary>

4
src/Shentun.Peis.Application/InternalReports/InternalReportAppService.cs

@ -231,7 +231,7 @@ namespace Shentun.Peis.InternalReports
join c in await _itemTypeRepository.GetQueryableAsync() on b.ItemTypeId equals c.Id join c in await _itemTypeRepository.GetQueryableAsync() on b.ItemTypeId equals c.Id
join d in await _registerCheckRepository.GetQueryableAsync() on a.RegisterCheckId equals d.Id join d in await _registerCheckRepository.GetQueryableAsync() on a.RegisterCheckId equals d.Id
join patientRegister in await _patientRegisterRepository.GetQueryableAsync() on d.PatientRegisterId equals patientRegister.Id join patientRegister in await _patientRegisterRepository.GetQueryableAsync() on d.PatientRegisterId equals patientRegister.Id
where (!string.IsNullOrEmpty(d.CheckDoctorId) && d.CheckDate != null)
//where (!string.IsNullOrEmpty(d.CheckDoctorId) && d.CheckDate != null)
select new select new
{ {
a.AsbitemId, a.AsbitemId,
@ -242,6 +242,7 @@ namespace Shentun.Peis.InternalReports
ItemTypeId = b.ItemTypeId, ItemTypeId = b.ItemTypeId,
ItemTypeName = c.DisplayName, ItemTypeName = c.DisplayName,
d.CheckDate, d.CheckDate,
d.CheckDoctorId,
MedicalTypeId = patientRegister.MedicalTypeId MedicalTypeId = patientRegister.MedicalTypeId
}; };
@ -264,6 +265,7 @@ namespace Shentun.Peis.InternalReports
.Select(s => new GetItemTypeWorkLoadInStandardDto .Select(s => new GetItemTypeWorkLoadInStandardDto
{ {
AsbitemName = s.First().AsbitemName, AsbitemName = s.First().AsbitemName,
CheckAsbitemCount = s.Where(m => !string.IsNullOrEmpty(m.CheckDoctorId) && m.CheckDate != null).Count(),
AsbitemCount = s.Count(), AsbitemCount = s.Count(),
ItemTypeName = s.First().ItemTypeName, ItemTypeName = s.First().ItemTypeName,
AvgChargePrice = Math.Round(s.Average(v => v.ChargePrice), 2), AvgChargePrice = Math.Round(s.Average(v => v.ChargePrice), 2),

Loading…
Cancel
Save