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
ef210c57
Commit
ef210c57
authored
May 07, 2024
by
ruyun.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
科室大屏绩效发放占比支持核算组别
parent
af3f7dc9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
performance/Performance.Api/GraphQLSchema/PerformanceQuery.cs
+17
-6
No files found.
performance/Performance.Api/GraphQLSchema/PerformanceQuery.cs
View file @
ef210c57
using
System.Collections.Generic
;
using
Dapper
;
using
System.Linq
;
using
Dapper
;
using
GraphQL.Types
;
using
GraphQL.Types
;
using
Performance.Infrastructure
;
using
Performance.Infrastructure
;
using
Performance.Repository
;
using
Performance.Services
;
using
Performance.Services
;
using
System.Collections.Generic
;
using
System.Linq
;
namespace
Performance.Api
namespace
Performance.Api
{
{
public
class
PerformanceQuery
:
ObjectGraphType
public
class
PerformanceQuery
:
ObjectGraphType
{
{
public
PerformanceQuery
(
GraphQLService
service
)
public
PerformanceQuery
(
GraphQLService
service
,
ClaimService
claimService
,
PerforUserRepository
userRepository
)
{
{
Field
<
ListGraphType
<
ReportDataType
>>(
"info"
,
Field
<
ListGraphType
<
ReportDataType
>>(
"info"
,
resolve
:
context
=>
resolve
:
context
=>
...
@@ -55,9 +56,19 @@ public PerformanceQuery(GraphQLService service)
...
@@ -55,9 +56,19 @@ public PerformanceQuery(GraphQLService service)
resolve
:
context
=>
resolve
:
context
=>
{
{
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
.
accountingUnit
,
QueryParams
.
category
,
QueryParams
.
itemName
);
var
parameters
=
GetDynamicParameters
(
context
.
Arguments
,
QueryParams
.
hospitalId
,
QueryParams
.
year
,
QueryParams
.
month
,
QueryParams
.
accountingUnit
,
QueryParams
.
category
,
QueryParams
.
itemName
);
var
userId
=
claimService
.
GetUserId
();
var
userInfo
=
userRepository
.
GetUser
(
userId
);
if
(
userInfo
?.
URole
!=
null
)
{
var
unitTypes
=
UnitTypeUtil
.
GetMaps
(
userInfo
?.
URole
.
Type
??
0
);
if
(
unitTypes
.
Any
())
parameters
.
Add
(
"unittype"
,
unitTypes
);
}
return
service
.
GetReportPerformance
(
reportId
,
parameters
);
return
service
.
GetReportPerformance
(
reportId
,
parameters
);
}
}
);
);
...
...
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