Commit 56f40a0c by lcx

添加科室条件

parent 8eeea943
...@@ -47,6 +47,7 @@ public PerformanceQuery(GraphQLService service) ...@@ -47,6 +47,7 @@ public PerformanceQuery(GraphQLService service)
Field<ListGraphType<ReportPerformanceType>>("performances", Field<ListGraphType<ReportPerformanceType>>("performances",
arguments: Arguments( arguments: Arguments(
new QueryArgument<StringGraphType>() { Name = QueryParams.accountingUnit },
new QueryArgument<StringGraphType>() { Name = QueryParams.category }, new QueryArgument<StringGraphType>() { Name = QueryParams.category },
new QueryArgument<StringGraphType>() { Name = QueryParams.itemName } new QueryArgument<StringGraphType>() { Name = QueryParams.itemName }
), ),
...@@ -55,7 +56,7 @@ public PerformanceQuery(GraphQLService service) ...@@ -55,7 +56,7 @@ public PerformanceQuery(GraphQLService service)
int reportId = context.Arguments.ContainsKey(QueryParams.reportId) int reportId = context.Arguments.ContainsKey(QueryParams.reportId)
? ConvertHelper.To<int>(context.Arguments[QueryParams.reportId]) ? ConvertHelper.To<int>(context.Arguments[QueryParams.reportId])
: 0; : 0;
var parameters = GetDynamicParameters(context.Arguments, QueryParams.hospitalId, QueryParams.year, QueryParams.month, QueryParams.category, QueryParams.itemName); var parameters = GetDynamicParameters(context.Arguments, QueryParams.hospitalId, QueryParams.year, QueryParams.month, QueryParams.accountingUnit, QueryParams.category, QueryParams.itemName);
return service.GetReportPerformance(reportId, parameters); return service.GetReportPerformance(reportId, parameters);
} }
); );
......
...@@ -21,6 +21,8 @@ public struct QueryParams ...@@ -21,6 +21,8 @@ public struct QueryParams
public const string sourceType = "sourceType"; public const string sourceType = "sourceType";
public const string accountingUnit = "accountingUnit";
public const string category = "category"; public const string category = "category";
public const string itemName = "itemName"; public const string itemName = "itemName";
......
...@@ -8,6 +8,8 @@ public class ReportPerformanceType : ObjectGraphType<ReportTable> ...@@ -8,6 +8,8 @@ public class ReportPerformanceType : ObjectGraphType<ReportTable>
{ {
public ReportPerformanceType() public ReportPerformanceType()
{ {
Field(x => x.PersonnelName, nullable: true);
Field(x => x.PersonnelNumber, nullable: true);
Field(x => x.AccountingUnit, nullable: true); Field(x => x.AccountingUnit, nullable: true);
Field(x => x.Category, nullable: true); Field(x => x.Category, nullable: true);
Field(x => x.ItemName, nullable: true); Field(x => x.ItemName, nullable: true);
......
...@@ -7,6 +7,16 @@ namespace Performance.DtoModels ...@@ -7,6 +7,16 @@ namespace Performance.DtoModels
public class ReportTable public class ReportTable
{ {
/// <summary> /// <summary>
/// 人员信息
/// </summary>
public string PersonnelName { get; set; }
/// <summary>
/// 人员工号
/// </summary>
public string PersonnelNumber { get; set; }
/// <summary>
/// 核算单元 /// 核算单元
/// </summary> /// </summary>
public string AccountingUnit { get; set; } public string AccountingUnit { 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