Commit 61a795ea by 纪旭 韦

修改视图

parent ab2d5185
...@@ -20,6 +20,11 @@ public class EmployeeReservedDto ...@@ -20,6 +20,11 @@ public class EmployeeReservedDto
/// ///
/// </summary> /// </summary>
public string UnitType { get; set; } public string UnitType { get; set; }
/// <summary>
/// 来源
/// </summary>
public string Source { get; set; }
/// <summary> /// <summary>
/// 核算单元 /// 核算单元
......
...@@ -387,7 +387,7 @@ public List<PerReport> NurseAvg(ReportRequest request) ...@@ -387,7 +387,7 @@ public List<PerReport> NurseAvg(ReportRequest request)
/// <returns></returns> /// <returns></returns>
public List<EmployeeReservedDto> GetEmployeeReserved(ReservedRequest request) public List<EmployeeReservedDto> GetEmployeeReserved(ReservedRequest request)
{ {
string view = request.Source == 1 ? "view_allot_result_report_emp" : request.Source == 2 ? "view_allot_result_report_issue": request.Source == 3 ? "view_allot_result_report":""; string view = request.Source == 1 ? "view_allot_result_report_emp" : request.Source == 2 ? "view_allot_result_report_issue_source" : request.Source == 3 ? "view_allot_result_report" : "";
string sql = $"SELECT * FROM {view} WHERE HospitalID=@HospitalID AND Year=@Year"; string sql = $"SELECT * FROM {view} WHERE HospitalID=@HospitalID AND Year=@Year";
return DapperQuery<EmployeeReservedDto>(sql, new { HospitalID = request.HospitalId, Year = request.Year }, commandTimeout: 60 * 10)?.ToList(); return DapperQuery<EmployeeReservedDto>(sql, new { HospitalID = request.HospitalId, Year = request.Year }, commandTimeout: 60 * 10)?.ToList();
......
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