Commit 0660e202 by 李承祥

新增报表中增加年月过滤条件

parent dac88b32
......@@ -156,7 +156,7 @@ public ApiResponse IndexReport([CustomizeValidator(RuleSet = "Index"), FromBody]
[HttpPost]
public ApiResponse MenuReport([CustomizeValidator(RuleSet = "Menu"), FromBody]ReportRequest request)
{
var list = reportService.MenuReport(request.HospitalId, request.OnlyYear, request.Source);
var list = reportService.MenuReport(request);
return new ApiResponse(ResponseType.OK, "", list);
}
}
......
......@@ -1458,6 +1458,12 @@
<member name="P:Performance.DtoModels.ReportRequest.Source">
<summary> 报表名称 </summary>
</member>
<member name="P:Performance.DtoModels.ReportRequest.Year">
<summary></summary>
</member>
<member name="P:Performance.DtoModels.ReportRequest.Month">
<summary></summary>
</member>
<member name="T:Performance.DtoModels.SetDepartmentRequest">
<summary>
登录请求
......
......@@ -17,6 +17,12 @@ public class ReportRequest
/// <summary> 报表名称 </summary>
public string Source { get; set; }
/// <summary> 年 </summary>
public string Year { get; set; }
/// <summary> 月 </summary>
public string Month { get; set; }
}
public class ReportRequestValidator : AbstractValidator<ReportRequest>
{
......
using Performance.EntityModels;
using Performance.DtoModels;
using Performance.EntityModels;
using System;
using System.Collections.Generic;
using System.Linq;
......@@ -157,124 +158,205 @@ public List<PerReport> IndexStructRatio(int hospitalId, string currentDate)
/// 业务总收入
/// </summary>
/// <returns></returns>
public List<PerReport> GeneralIncome(int hospitalId, int isOnlyYear)
public List<PerReport> GeneralIncome(ReportRequest request)
{
string sql = $"select year x,'业务总收入(年)' y,sum(CellValue) value from report_original_income where hospitalid = @hospitalId group by year;";
if (isOnlyYear != 1)
sql = $"select concat(year,'-',lpad(month,2,'0')) x,'业务总收入(月)' y,sum(CellValue) value from report_original_income where hospitalid = @hospitalId group by year,month;";
return DapperQuery(sql, new { hospitalId }).ToList();
string where = "";
if (!string.IsNullOrEmpty(request.Year))
{
where += $" and year in ({request.Year}) ";
}
if (!string.IsNullOrEmpty(request.Month))
{
where += $" and month in ({request.Month}) ";
}
string sql = $"select year x,'业务总收入(年)' y,sum(CellValue) value from report_original_income where hospitalid = @hospitalId {where} group by year;";
if (request.OnlyYear != 1)
sql = $"select concat(year,'-',lpad(month,2,'0')) x,'业务总收入(月)' y,sum(CellValue) value from report_original_income where hospitalid = @hospitalId {where} group by year,month;";
return DapperQuery(sql, new { hospitalId = request.HospitalId }).ToList();
}
/// <summary>
/// 门诊、住院业务收入占比
/// </summary>
/// <returns></returns>
public List<PerReport> InHosIncome(int hospitalId, int isOnlyYear)
public List<PerReport> InHosIncome(ReportRequest request)
{
string sql = $"select '住院' x,year y,round(t.InHos/(t.InHos + t.Outpatient) * 100, 2) value from (select year,sum(case SourceType when '住院' then CellValue else 0 end) InHos,sum(case SourceType when '门诊' then CellValue else 0 end) Outpatient from report_original_income where hospitalid = @hospitalId group by year)t" +
string where = "";
if (!string.IsNullOrEmpty(request.Year))
{
where += $" and year in ({request.Year}) ";
}
if (!string.IsNullOrEmpty(request.Month))
{
where += $" and month in ({request.Month}) ";
}
string sql = $"select '住院' x,year y,round(t.InHos/(t.InHos + t.Outpatient) * 100, 2) value from (select year,sum(case SourceType when '住院' then CellValue else 0 end) InHos,sum(case SourceType when '门诊' then CellValue else 0 end) Outpatient from report_original_income where hospitalid = @hospitalId {where} group by year)t" +
$" union " +
$"select '门诊' x,year y,round(t.Outpatient/(t.InHos + t.Outpatient) * 100, 2) value from (select year,sum(case SourceType when '住院' then CellValue else 0 end) InHos,sum(case SourceType when '门诊' then CellValue else 0 end) Outpatient from report_original_income where hospitalid = @hospitalId group by year)t;";
if (isOnlyYear != 1)
sql = $"select '住院' x,concat(year,'-',lpad(month,2,'0')) y,round(t.InHos/(t.InHos+t.Outpatient) * 100, 2) value from (select year,month,sum(case SourceType when '住院' then CellValue else 0 end) InHos,sum(case SourceType when '门诊' then CellValue else 0 end) Outpatient from report_original_income where hospitalid = @hospitalId group by year,month)t" +
$"select '门诊' x,year y,round(t.Outpatient/(t.InHos + t.Outpatient) * 100, 2) value from (select year,sum(case SourceType when '住院' then CellValue else 0 end) InHos,sum(case SourceType when '门诊' then CellValue else 0 end) Outpatient from report_original_income where hospitalid = @hospitalId {where} group by year)t;";
if (request.OnlyYear != 1)
sql = $"select '住院' x,concat(year,'-',lpad(month,2,'0')) y,round(t.InHos/(t.InHos+t.Outpatient) * 100, 2) value from (select year,month,sum(case SourceType when '住院' then CellValue else 0 end) InHos,sum(case SourceType when '门诊' then CellValue else 0 end) Outpatient from report_original_income where hospitalid = @hospitalId {where} group by year,month)t" +
$" union " +
$"select '门诊' x,concat(year,'-',lpad(month,2,'0')) y,round(t.Outpatient/(t.InHos+t.Outpatient) * 100, 2) value from (select year,month,sum(case SourceType when '住院' then CellValue else 0 end) InHos,sum(case SourceType when '门诊' then CellValue else 0 end) Outpatient from report_original_income where hospitalid = @hospitalId group by year,month)t;";
return DapperQuery(sql, new { hospitalId }).ToList();
$"select '门诊' x,concat(year,'-',lpad(month,2,'0')) y,round(t.Outpatient/(t.InHos+t.Outpatient) * 100, 2) value from (select year,month,sum(case SourceType when '住院' then CellValue else 0 end) InHos,sum(case SourceType when '门诊' then CellValue else 0 end) Outpatient from report_original_income where hospitalid = @hospitalId {where} group by year,month)t;";
return DapperQuery(sql, new { hospitalId = request.HospitalId }).ToList();
}
/// <summary>
/// 业务收入结构占比
/// </summary>
/// <returns></returns>
public List<PerReport> StructRatio(int hospitalId, int isOnlyYear)
public List<PerReport> StructRatio(ReportRequest request)
{
string sql = $"select TypeName x,t1.y,round(CellValue/t2.`value`*100,2) value from (select year y,TypeName,sum(CellValue) CellValue from report_original_income where HospitalID = @hospitalId group by year,TypeName) t1 inner join (select year y,sum(CellValue) value from report_original_income where hospitalid = @hospitalId group by year)t2 on t1.y = t2.y order by y asc,value desc;";
if (isOnlyYear != 1)
sql = $"select TypeName x,t1.y,round(CellValue/t2.`value`*100,2) value from (select concat(year,'-',lpad(month,2,'0')) y,TypeName,sum(CellValue) CellValue from report_original_income where HospitalID = @hospitalId group by year,month,TypeName) t1 inner join (select concat(year,'-',lpad(month,2,'0')) y,sum(CellValue) value from report_original_income where hospitalid = @hospitalId group by year,month)t2 on t1.y = t2.y order by y asc,value desc;";
return DapperQuery(sql, new { hospitalId }).ToList();
string where = "";
if (!string.IsNullOrEmpty(request.Year))
{
where += $" and year in ({request.Year}) ";
}
if (!string.IsNullOrEmpty(request.Month))
{
where += $" and month in ({request.Month}) ";
}
string sql = $"select TypeName x,t1.y,round(CellValue/t2.`value`*100,2) value from (select year y,TypeName,sum(CellValue) CellValue from report_original_income where HospitalID = @hospitalId {where} group by year,TypeName) t1 inner join (select year y,sum(CellValue) value from report_original_income where hospitalid = @hospitalId {where} group by year)t2 on t1.y = t2.y order by y asc,value desc;";
if (request.OnlyYear != 1)
sql = $"select TypeName x,t1.y,round(CellValue/t2.`value`*100,2) value from (select concat(year,'-',lpad(month,2,'0')) y,TypeName,sum(CellValue) CellValue from report_original_income where HospitalID = @hospitalId {where} group by year,month,TypeName) t1 inner join (select concat(year,'-',lpad(month,2,'0')) y,sum(CellValue) value from report_original_income where hospitalid = @hospitalId {where} group by year,month)t2 on t1.y = t2.y order by y asc,value desc;";
return DapperQuery(sql, new { hospitalId = request.HospitalId }).ToList();
}
/// <summary>
/// 药占比
/// </summary>
/// <param name="hospitalId"></param>
/// <param name="isOnlyYear"></param>
/// <param name="request.OnlyYear"></param>
/// <returns></returns>
public List<PerReport> DrugRatio(int hospitalId, int isOnlyYear)
public List<PerReport> DrugRatio(ReportRequest request)
{
string sql = $"select TypeName x,t1.y,round(CellValue/t2.`value`*100,2) value from (select year y,TypeName,sum(CellValue) CellValue from report_original_income t1 inner join cof_drugtype t2 on t1.TypeName = t2.Charge and t1.AllotID = t2.AllotId and t2.ChargeType = '药品' where HospitalID = @hospitalId group by year,TypeName) t1 inner join (select year y,sum(CellValue) value from report_original_income where hospitalid = @hospitalId group by year)t2 on t1.y = t2.y;";
if (isOnlyYear != 1)
sql = $"select TypeName x,t1.y,round(CellValue/t2.`value`*100,2) value from (select concat(year,'-',lpad(month,2,'0')) y,TypeName,sum(CellValue) CellValue from report_original_income t1 inner join cof_drugtype t2 on t1.TypeName = t2.Charge and t1.AllotID = t2.AllotId and t2.ChargeType = '药品' where HospitalID = @hospitalId group by year,month,TypeName) t1 inner join (select concat(year,'-',lpad(month,2,'0')) y,sum(CellValue) value from report_original_income where hospitalid = @hospitalId group by year,month)t2 on t1.y = t2.y;";
return DapperQuery(sql, new { hospitalId }).ToList();
string where = "";
if (!string.IsNullOrEmpty(request.Year))
{
where += $" and year in ({request.Year}) ";
}
if (!string.IsNullOrEmpty(request.Month))
{
where += $" and month in ({request.Month}) ";
}
string sql = $"select TypeName x,t1.y,round(CellValue/t2.`value`*100,2) value from (select year y,TypeName,sum(CellValue) CellValue from report_original_income t1 inner join cof_drugtype t2 on t1.TypeName = t2.Charge and t1.AllotID = t2.AllotId and t2.ChargeType = '药品' where HospitalID = @hospitalId {where} group by year,TypeName) t1 inner join (select year y,sum(CellValue) value from report_original_income where hospitalid = @hospitalId {where} group by year)t2 on t1.y = t2.y;";
if (request.OnlyYear != 1)
sql = $"select TypeName x,t1.y,round(CellValue/t2.`value`*100,2) value from (select concat(year,'-',lpad(month,2,'0')) y,TypeName,sum(CellValue) CellValue from report_original_income t1 inner join cof_drugtype t2 on t1.TypeName = t2.Charge and t1.AllotID = t2.AllotId and t2.ChargeType = '药品' where HospitalID = @hospitalId {where} group by year,month,TypeName) t1 inner join (select concat(year,'-',lpad(month,2,'0')) y,sum(CellValue) value from report_original_income where hospitalid = @hospitalId {where} group by year,month)t2 on t1.y = t2.y;";
return DapperQuery(sql, new { hospitalId = request.HospitalId }).ToList();
}
/// <summary>
/// 材料占比
/// </summary>
/// <param name="hospitalId"></param>
/// <param name="isOnlyYear"></param>
/// <param name="request.OnlyYear"></param>
/// <returns></returns>
public List<PerReport> MaterialRatio(int hospitalId, int isOnlyYear)
public List<PerReport> MaterialRatio(ReportRequest request)
{
string sql = $"select TypeName x,t1.y,round(CellValue/t2.`value`*100,2) value from (select year y,TypeName,sum(CellValue) CellValue from report_original_income t1 inner join cof_drugtype t2 on t1.TypeName = t2.Charge and t1.AllotID = t2.AllotId and t2.ChargeType = '耗材' where HospitalID = @hospitalId group by year,TypeName) t1 inner join (select year y,sum(CellValue) value from report_original_income where hospitalid = @hospitalId group by year)t2 on t1.y = t2.y;";
if (isOnlyYear != 1)
sql = $"select TypeName x,t1.y,round(CellValue/t2.`value`*100,2) value from (select concat(year,'-',lpad(month,2,'0')) y,TypeName,sum(CellValue) CellValue from report_original_income t1 inner join cof_drugtype t2 on t1.TypeName = t2.Charge and t1.AllotID = t2.AllotId and t2.ChargeType = '耗材' where HospitalID = @hospitalId group by year,month,TypeName) t1 inner join (select concat(year,'-',lpad(month,2,'0')) y,sum(CellValue) value from report_original_income where hospitalid = @hospitalId group by year,month)t2 on t1.y = t2.y;";
return DapperQuery(sql, new { hospitalId }).ToList();
string where = "";
if (!string.IsNullOrEmpty(request.Year))
{
where += $" and year in ({request.Year}) ";
}
if (!string.IsNullOrEmpty(request.Month))
{
where += $" and month in ({request.Month}) ";
}
string sql = $"select TypeName x,t1.y,round(CellValue/t2.`value`*100,2) value from (select year y,TypeName,sum(CellValue) CellValue from report_original_income t1 inner join cof_drugtype t2 on t1.TypeName = t2.Charge and t1.AllotID = t2.AllotId and t2.ChargeType = '耗材' where HospitalID = @hospitalId {where} group by year,TypeName) t1 inner join (select year y,sum(CellValue) value from report_original_income where hospitalid = @hospitalId {where} group by year)t2 on t1.y = t2.y;";
if (request.OnlyYear != 1)
sql = $"select TypeName x,t1.y,round(CellValue/t2.`value`*100,2) value from (select concat(year,'-',lpad(month,2,'0')) y,TypeName,sum(CellValue) CellValue from report_original_income t1 inner join cof_drugtype t2 on t1.TypeName = t2.Charge and t1.AllotID = t2.AllotId and t2.ChargeType = '耗材' where HospitalID = @hospitalId {where} group by year,month,TypeName) t1 inner join (select concat(year,'-',lpad(month,2,'0')) y,sum(CellValue) value from report_original_income where hospitalid = @hospitalId {where} group by year,month)t2 on t1.y = t2.y;";
return DapperQuery(sql, new { hospitalId = request.HospitalId }).ToList();
}
/// <summary>
/// 绩效发放金额占全院收入占比
/// </summary>
/// <param name="hospitalId"></param>
/// <param name="isOnlyYear"></param>
/// <param name="request.OnlyYear"></param>
/// <returns></returns>
public List<PerReport> PerforRatio(int hospitalId, int isOnlyYear)
public List<PerReport> PerforRatio(ReportRequest request)
{
string sql = $"select t2.x,'绩效发放金额占全院收入占比(年)' y,round(t1.RealGiveFee/t2.income * 100, 2) value from (select `year`,sum(realgivefee) realgivefee from report_allot_summary where HospitalID = @hospitalId group by year) t1 inner join (select year x,sum(CellValue) income from report_original_income where HospitalId = @hospitalId group by year)t2 on t1.`Year` = t2.x;";
if (isOnlyYear != 1)
sql = $"select t2.x,'绩效发放金额占全院收入占比(月)' y,round(t1.RealGiveFee/t2.income * 100, 2) value from report_allot_summary t1 inner join (select concat(year,'-',lpad(month,2,'0')) x,sum(CellValue) income from report_original_income where HospitalId = @hospitalId group by year,month)t2 on concat(t1.year,'-',lpad(t1.month,2,'0')) = t2.x where t1.HospitalID = @hospitalId;";
return DapperQuery(sql, new { hospitalId }).ToList();
string where = "";
if (!string.IsNullOrEmpty(request.Year))
{
where += $" and year in ({request.Year}) ";
}
if (!string.IsNullOrEmpty(request.Month))
{
where += $" and month in ({request.Month}) ";
}
string sql = $"select t2.x,'绩效发放金额占全院收入占比(年)' y,round(t1.RealGiveFee/t2.income * 100, 2) value from (select `year`,sum(realgivefee) realgivefee from report_allot_summary where HospitalID = @hospitalId {where} group by year) t1 inner join (select year x,sum(CellValue) income from report_original_income where HospitalId = @hospitalId {where} group by year)t2 on t1.`Year` = t2.x;";
if (request.OnlyYear != 1)
sql = $"select t2.x,'绩效发放金额占全院收入占比(月)' y,round(t1.RealGiveFee/t2.income * 100, 2) value from report_allot_summary t1 inner join (select concat(year,'-',lpad(month,2,'0')) x,sum(CellValue) income from report_original_income where HospitalId = @hospitalId {where} group by year,month)t2 on concat(t1.year,'-',lpad(t1.month,2,'0')) = t2.x where t1.HospitalID = @hospitalId {where};";
return DapperQuery(sql, new { hospitalId = request.HospitalId }).ToList();
}
/// <summary>
/// 绩效群体收入
/// </summary>
/// <param name="hospitalId"></param>
/// <param name="isOnlyYear"></param>
/// <param name="request.OnlyYear"></param>
/// <returns></returns>
public List<PerReport> PerforGroup(int hospitalId, int isOnlyYear)
public List<PerReport> PerforGroup(ReportRequest request)
{
string sql = $"select PositionName x,year y,round(sum(avgvalue), 2) value from (select t1.PositionName,year,AvgValue from res_baiscnorm t1 inner join per_allot t2 on t1.AllotID = t2.Id and t2.HospitalId = @hospitalId and locate('保底', t1.PositionName) = 0)t group by PositionName,year;";
if (isOnlyYear != 1)
sql = $"select t1.PositionName x, concat(t2.year, '-', lpad(t2.month, 2, '0')) y,round(AvgValue, 2) value from res_baiscnorm t1 inner join per_allot t2 on t1.AllotID = t2.Id and t2.HospitalId = @hospitalId and locate('保底', t1.PositionName) = 0;";
return DapperQuery(sql, new { hospitalId }).ToList();
string where = "";
if (!string.IsNullOrEmpty(request.Year))
{
where += $" and year in ({request.Year}) ";
}
if (!string.IsNullOrEmpty(request.Month))
{
where += $" and month in ({request.Month}) ";
}
string sql = $"select PositionName x,year y,round(sum(avgvalue), 2) value from (select t1.PositionName,year,AvgValue from res_baiscnorm t1 inner join per_allot t2 on t1.AllotID = t2.Id and t2.HospitalId = @hospitalId {where} and locate('保底', t1.PositionName) = 0)t group by PositionName,year;";
if (request.OnlyYear != 1)
sql = $"select t1.PositionName x, concat(t2.year, '-', lpad(t2.month, 2, '0')) y,round(AvgValue, 2) value from res_baiscnorm t1 inner join per_allot t2 on t1.AllotID = t2.Id and t2.HospitalId = @hospitalId {where} and locate('保底', t1.PositionName) = 0;";
return DapperQuery(sql, new { hospitalId = request.HospitalId }).ToList();
}
/// <summary>
/// 医生核算单元人均绩效
/// </summary>
/// <param name="hospitalId"></param>
/// <param name="isOnlyYear"></param>
/// <param name="request.OnlyYear"></param>
/// <returns></returns>
public List<PerReport> DoctorAvg(int hospitalId, int isOnlyYear)
public List<PerReport> DoctorAvg(ReportRequest request)
{
string sql = $"select `Year` y,AccountingUnit x,round(sum(avg),2) value from (select t1.AccountingUnit,t1.Avg,t2.`Year`,t2.`Month`,t2.ID from res_account t1 inner join per_allot t2 on t1.AllotID = t2.ID and t2.HospitalId = @hospitalId and t1.UnitType != 2)t group by year,AccountingUnit;";
if (isOnlyYear != 1)
sql = $"select concat(year,'-',lpad(month,2,'0')) y,AccountingUnit x,round(sum(avg),2) value from (select t1.AccountingUnit,t1.Avg,t2.`Year`,t2.`Month`,t2.ID from res_account t1 inner join per_allot t2 on t1.AllotID = t2.ID and t2.HospitalId = @hospitalId and t1.UnitType != 2)t group by year,month,AccountingUnit;";
return DapperQuery(sql, new { hospitalId }).ToList();
string where = "";
if (!string.IsNullOrEmpty(request.Year))
{
where += $" and t2.year in ({request.Year}) ";
}
if (!string.IsNullOrEmpty(request.Month))
{
where += $" and t2.month in ({request.Month}) ";
}
string sql = $"select `Year` y,AccountingUnit x,round(sum(avg),2) value from (select t1.AccountingUnit,t1.Avg,t2.`Year`,t2.`Month`,t2.ID from res_account t1 inner join per_allot t2 on t1.AllotID = t2.ID and t2.HospitalId = @hospitalId and t1.UnitType != 2 where 1=1 {where})t group by year,AccountingUnit;";
if (request.OnlyYear != 1)
sql = $"select concat(year,'-',lpad(month,2,'0')) y,AccountingUnit x,round(sum(avg),2) value from (select t1.AccountingUnit,t1.Avg,t2.`Year`,t2.`Month`,t2.ID from res_account t1 inner join per_allot t2 on t1.AllotID = t2.ID and t2.HospitalId = @hospitalId and t1.UnitType != 2 where 1=1 {where})t group by year,month,AccountingUnit;";
return DapperQuery(sql, new { hospitalId = request.HospitalId }).ToList();
}
/// <summary>
/// 护理核算单元人均绩效
/// </summary>
/// <param name="hospitalId"></param>
/// <param name="isOnlyYear"></param>
/// <param name="request.OnlyYear"></param>
/// <returns></returns>
public List<PerReport> NurseAvg(int hospitalId, int isOnlyYear)
public List<PerReport> NurseAvg(ReportRequest request)
{
string sql = $"select `Year` y,AccountingUnit x,round(sum(avg),2) value from (select t1.AccountingUnit,t1.Avg,t2.`Year`,t2.`Month`,t2.ID from res_account t1 inner join per_allot t2 on t1.AllotID = t2.ID and t2.HospitalId = @hospitalId and t1.UnitType = 2)t group by year,AccountingUnit;";
if (isOnlyYear != 1)
sql = $"select concat(year,'-',lpad(month,2,'0')) y,AccountingUnit x,round(sum(avg),2) value from (select t1.AccountingUnit,t1.Avg,t2.`Year`,t2.`Month`,t2.ID from res_account t1 inner join per_allot t2 on t1.AllotID = t2.ID and t2.HospitalId = @hospitalId and t1.UnitType = 2)t group by year,month,AccountingUnit;";
return DapperQuery(sql, new { hospitalId }).ToList();
string where = "";
if (!string.IsNullOrEmpty(request.Year))
{
where += $" and t2.year in ({request.Year}) ";
}
if (!string.IsNullOrEmpty(request.Month))
{
where += $" and t2.month in ({request.Month}) ";
}
string sql = $"select `Year` y,AccountingUnit x,round(sum(avg),2) value from (select t1.AccountingUnit,t1.Avg,t2.`Year`,t2.`Month`,t2.ID from res_account t1 inner join per_allot t2 on t1.AllotID = t2.ID and t2.HospitalId = @hospitalId and t1.UnitType = 2 where 1=1 {where})t group by year,AccountingUnit;";
if (request.OnlyYear != 1)
sql = $"select concat(year,'-',lpad(month,2,'0')) y,AccountingUnit x,round(sum(avg),2) value from (select t1.AccountingUnit,t1.Avg,t2.`Year`,t2.`Month`,t2.ID from res_account t1 inner join per_allot t2 on t1.AllotID = t2.ID and t2.HospitalId = @hospitalId and t1.UnitType = 2 where 1=1 {where})t group by year,month,AccountingUnit;";
return DapperQuery(sql, new { hospitalId = request.HospitalId }).ToList();
}
#endregion
}
......
......@@ -280,37 +280,37 @@ public List<PerReport> IndexReport(int hospitalId, string source)
/// </summary>
/// <param name="hospitalId"></param>
/// <returns></returns>
public List<PerReport> MenuReport(int hospitalId, int isOnlyYear, string source)
public List<PerReport> MenuReport(ReportRequest request)
{
var report = new List<PerReport>();
switch (source)
switch (request.Source)
{
case "业务总收入":
report = perforReportRepository.GeneralIncome(hospitalId, isOnlyYear);
report = perforReportRepository.GeneralIncome(request);
break;
case "门诊住院业务收入占比":
report = perforReportRepository.InHosIncome(hospitalId, isOnlyYear);
report = perforReportRepository.InHosIncome(request);
break;
case "业务收入结构占比":
report = perforReportRepository.StructRatio(hospitalId, isOnlyYear);
report = perforReportRepository.StructRatio(request);
break;
case "药占比":
report = perforReportRepository.DrugRatio(hospitalId, isOnlyYear);
report = perforReportRepository.DrugRatio(request);
break;
case "材料占比":
report = perforReportRepository.MaterialRatio(hospitalId, isOnlyYear);
report = perforReportRepository.MaterialRatio(request);
break;
case "绩效发放金额占全院收入占比":
report = perforReportRepository.PerforRatio(hospitalId, isOnlyYear);
report = perforReportRepository.PerforRatio(request);
break;
case "绩效群体收入":
report = perforReportRepository.PerforGroup(hospitalId, isOnlyYear);
report = perforReportRepository.PerforGroup(request);
break;
case "医生核算单元人均绩效":
report = perforReportRepository.DoctorAvg(hospitalId, isOnlyYear);
report = perforReportRepository.DoctorAvg(request);
break;
case "护理核算单元人均绩效":
report = perforReportRepository.NurseAvg(hospitalId, isOnlyYear);
report = perforReportRepository.NurseAvg(request);
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment