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
7db4a3bf
Commit
7db4a3bf
authored
Sep 24, 2019
by
李承祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
其他组科室绩效
parent
548efcab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
performance/Performance.Api/Controllers/ComputeController.cs
+16
-0
performance/Performance.Services/ComputeService.cs
+14
-0
No files found.
performance/Performance.Api/Controllers/ComputeController.cs
View file @
7db4a3bf
...
...
@@ -95,6 +95,22 @@ public ApiResponse<List<DeptResponse>> GetNurse([FromBody]ComputerRequest reques
}
/// <summary>
/// 其他组科室绩效列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[
Route
(
"getotherdata"
)]
[
HttpPost
]
public
ApiResponse
<
List
<
DeptResponse
>>
GetOther
([
FromBody
]
ComputerRequest
request
)
{
var
allot
=
_allotService
.
GetAllot
(
request
.
AllotId
);
if
(
null
==
allot
)
throw
new
PerformanceException
(
"当前绩效记录不存在"
);
var
list
=
_computeService
.
GetOtherPerformance
(
request
.
AllotId
);
return
new
ApiResponse
<
List
<
DeptResponse
>>(
ResponseType
.
OK
,
"ok"
,
list
);
}
/// <summary>
/// 科室绩效详情
/// </summary>
/// <param name="request"></param>
...
...
performance/Performance.Services/ComputeService.cs
View file @
7db4a3bf
...
...
@@ -116,6 +116,20 @@ public List<DeptResponse> GetNursePerformance(int allotId)
}
/// <summary>
/// 返回其他组科室绩效
/// </summary>
/// <param name="allotId">绩效ID</param>
/// <returns></returns>
public
List
<
DeptResponse
>
GetOtherPerformance
(
int
allotId
)
{
var
unitType
=
new
List
<
int
>
{
(
int
)
UnitType
.
其他组
,
(
int
)
UnitType
.
专家组
};
var
list
=
perforResaccountRepository
.
GetEntities
(
t
=>
unitType
.
Contains
(
t
.
UnitType
.
Value
)
&&
t
.
AllotID
==
allotId
)?.
OrderByDescending
(
t
=>
t
.
AccountingUnit
);
List
<
DeptResponse
>
other
=
Mapper
.
Map
<
List
<
DeptResponse
>>(
list
);
other
?.
ForEach
(
t
=>
t
.
UnitName
=
((
UnitType
)
t
.
UnitType
).
ToString
());
return
other
;
}
/// <summary>
/// 查看科室绩效
/// </summary>
/// <param name="allotId"></param>
...
...
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