Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
performance
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zry
performance
Commits
56f40a0c
Commit
56f40a0c
authored
Jan 11, 2021
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加科室条件
parent
8eeea943
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
1 deletions
+16
-1
performance/Performance.Api/GraphQLSchema/PerformanceQuery.cs
+2
-1
performance/Performance.Api/GraphQLSchema/QueryParams.cs
+2
-0
performance/Performance.Api/GraphQLSchema/ReportPerformanceType.cs
+2
-0
performance/Performance.DtoModels/ReportTable.cs
+10
-0
No files found.
performance/Performance.Api/GraphQLSchema/PerformanceQuery.cs
View file @
56f40a0c
...
...
@@ -47,6 +47,7 @@ public PerformanceQuery(GraphQLService service)
Field
<
ListGraphType
<
ReportPerformanceType
>>(
"performances"
,
arguments
:
Arguments
(
new
QueryArgument
<
StringGraphType
>()
{
Name
=
QueryParams
.
accountingUnit
},
new
QueryArgument
<
StringGraphType
>()
{
Name
=
QueryParams
.
category
},
new
QueryArgument
<
StringGraphType
>()
{
Name
=
QueryParams
.
itemName
}
),
...
...
@@ -55,7 +56,7 @@ public PerformanceQuery(GraphQLService service)
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
,
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
);
}
);
...
...
performance/Performance.Api/GraphQLSchema/QueryParams.cs
View file @
56f40a0c
...
...
@@ -21,6 +21,8 @@ public struct QueryParams
public
const
string
sourceType
=
"sourceType"
;
public
const
string
accountingUnit
=
"accountingUnit"
;
public
const
string
category
=
"category"
;
public
const
string
itemName
=
"itemName"
;
...
...
performance/Performance.Api/GraphQLSchema/ReportPerformanceType.cs
View file @
56f40a0c
...
...
@@ -8,6 +8,8 @@ public class ReportPerformanceType : ObjectGraphType<ReportTable>
{
public
ReportPerformanceType
()
{
Field
(
x
=>
x
.
PersonnelName
,
nullable
:
true
);
Field
(
x
=>
x
.
PersonnelNumber
,
nullable
:
true
);
Field
(
x
=>
x
.
AccountingUnit
,
nullable
:
true
);
Field
(
x
=>
x
.
Category
,
nullable
:
true
);
Field
(
x
=>
x
.
ItemName
,
nullable
:
true
);
...
...
performance/Performance.DtoModels/ReportTable.cs
View file @
56f40a0c
...
...
@@ -7,6 +7,16 @@ namespace Performance.DtoModels
public
class
ReportTable
{
/// <summary>
/// 人员信息
/// </summary>
public
string
PersonnelName
{
get
;
set
;
}
/// <summary>
/// 人员工号
/// </summary>
public
string
PersonnelNumber
{
get
;
set
;
}
/// <summary>
/// 核算单元
/// </summary>
public
string
AccountingUnit
{
get
;
set
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment