Commit cdff00e8 by 纪旭 韦

no message

parent aea7d36f
...@@ -399,8 +399,24 @@ public ApiResponse GetWholeHospitalGrantSummary([FromBody] HospitalGrantSummary ...@@ -399,8 +399,24 @@ public ApiResponse GetWholeHospitalGrantSummary([FromBody] HospitalGrantSummary
if (null == datas) if (null == datas)
throw new PerformanceException("当前绩效记录不存在"); throw new PerformanceException("当前绩效记录不存在");
var headlist = request.GroupBy.Union(request.SumBy).Select(t=>t.ToLower()).ToList();
var AllComputeView = ComputeConfig.AllComputeView.Where(t=> headlist.Contains(t.Name.ToLower())).ToList();
List<Head> head = new List<Head>();
foreach (var item in AllComputeView)
{
Head head1 = new Head()
{
Name = item.Name,
Alias = item.Alias
};
head.Add(head1);
}
var list = new QueryComputeByDateGetTotal var list = new QueryComputeByDateGetTotal
{ {
Head = head,
Data = datas.ToList(), Data = datas.ToList(),
TotalData = _computeService.SumDatas(datas), TotalData = _computeService.SumDatas(datas),
}; };
......
using FluentValidation; using FluentValidation;
using Performance.EntityModels;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text; using System.Text;
...@@ -84,6 +85,13 @@ public class QueryComputeByDateGetPage ...@@ -84,6 +85,13 @@ public class QueryComputeByDateGetPage
} }
public class QueryComputeByDateGetTotal public class QueryComputeByDateGetTotal
{ {
public List<Head> Head { get; set; }
public List<dynamic> Data { get; set; } public List<dynamic> Data { get; set; }
public Dictionary<string, decimal> TotalData { get; set; }} public Dictionary<string, decimal> TotalData { get; set; }}
} }
public class Head
{
public string Name { get; set; }
public string Alias { get; set; }
}
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