Commit be92e228 by 纪旭 韦

解决列头报错

parent cc67323c
......@@ -386,12 +386,14 @@ public ApiResponse<res_baiscnorm> EditHospitalAvg([FromBody] ComputerAvgRequest
[HttpPost]
public ApiResponse CustomColumnHeaders([FromBody] ComputerAliasRequest request)
{
if (request.Heads != null)
for (int i = 0; i < request.Heads.Length; i++)
{
request.Heads[i] = request.Heads[i].ToLower();
}
var result = _computeService.CustomColumnHeaders(request.HospitalId, request.Route,request.Heads);
return new ApiResponse(ResponseType.OK, result);
}
/// <summary>
......
......@@ -2159,7 +2159,7 @@ public class ComputeConfig
{
public static List<cof_alias> PerformanceTotal(string route,string[] heads)
{
if (heads.Length == 0 || string.IsNullOrEmpty(heads[0]) || heads[0] == null)
if (heads == null || heads.Length == 0 || (heads.Length > 0 && heads[0] == ""))
{
if (route == "/report/wholehospital_grant_summary")
return AllComputeView.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