Commit d5de727e by lcx

chartdata添加过滤字段

parent f636c8e4
......@@ -34,13 +34,13 @@ public PerformanceQuery(GraphQLService service)
);
Field<ListGraphType<ChartDataType>>("chardata",
arguments: Arguments(),
arguments: Arguments(new QueryArgument<StringGraphType>() { Name = QueryParams.itemName }),
resolve: context =>
{
int reportId = context.Arguments.ContainsKey(QueryParams.reportId)
? ConvertHelper.To<int>(context.Arguments[QueryParams.reportId])
: 0;
var parameters = GetDynamicParameters(context.Arguments, QueryParams.hospitalId, QueryParams.year, QueryParams.month);
var parameters = GetDynamicParameters(context.Arguments, QueryParams.hospitalId, QueryParams.year, QueryParams.month, QueryParams.itemName);
return service.GetChartData(reportId, parameters);
}
);
......
......@@ -20,5 +20,7 @@ public struct QueryParams
public const string reportId = "reportID";
public const string category = "category";
public const string itemName = "itemName";
}
}
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