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
4f0bee3d
Commit
4f0bee3d
authored
Nov 10, 2020
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/v2020morge' into v2020morge
parents
135e22c5
1e1b69b5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
79 additions
and
1 deletions
+79
-1
performance/Performance.Api/Controllers/ComputeController.cs
+1
-0
performance/Performance.Api/Controllers/EmployeeController.cs
+55
-1
performance/Performance.Api/wwwroot/Performance.Api.xml
+14
-0
performance/Performance.Services/EmployeeService.cs
+9
-0
No files found.
performance/Performance.Api/Controllers/ComputeController.cs
View file @
4f0bee3d
...
...
@@ -295,6 +295,7 @@ public ApiResponse AllComputeByPM([FromBody] ComputerRequest request)
OthePerfor
=
t
.
Sum
(
s
=>
s
.
OthePerfor
),
NightWorkPerfor
=
t
.
Sum
(
s
=>
s
.
NightWorkPerfor
),
RealGiveFee
=
t
.
Sum
(
s
=>
s
.
RealGiveFee
),
JobTitle
=
t
.
FirstOrDefault
(
f
=>
!
string
.
IsNullOrEmpty
(
f
.
JobTitle
))?.
JobTitle
//ReservedRatio = t.Sum(s => s.ReservedRatio),
//ReservedRatioFee = t.Sum(s => s.ReservedRatioFee),
});
...
...
performance/Performance.Api/Controllers/EmployeeController.cs
View file @
4f0bee3d
...
...
@@ -251,7 +251,6 @@ public ApiResponse Audit(int allotid)
return
result
?
new
ApiResponse
(
ResponseType
.
OK
,
"提交成功"
)
:
new
ApiResponse
(
ResponseType
.
Fail
,
"提交失败"
);
}
/// <summary>
/// 获取人员补充绩效列表
/// </summary>
...
...
@@ -269,6 +268,61 @@ public ApiResponse GetAprList([FromBody] per_apr_amount request)
}
/// <summary>
/// 医院其他绩效审核
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[
Route
(
"apr/getdeptlist"
)]
[
HttpPost
]
public
ApiResponse
GetAprGroupList
([
FromBody
]
per_apr_amount
request
)
{
if
(
request
.
AllotId
==
0
)
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"参数AllotId无效!"
);
var
employee
=
employeeService
.
GetAprList
(
request
.
AllotId
);
if
(
employee
==
null
||
!
employee
.
Any
())
return
new
ApiResponse
(
ResponseType
.
OK
,
"ok"
,
employee
);
var
result
=
employee
.
GroupBy
(
t
=>
new
{
t
.
AccountingUnit
,
t
.
TypeInDepartment
}).
Select
(
t
=>
new
per_apr_amount
{
AccountingUnit
=
t
.
Key
.
AccountingUnit
,
TypeInDepartment
=
t
.
Key
.
TypeInDepartment
,
Amount
=
t
.
Sum
(
s
=>
s
.
Amount
??
0
),
Status
=
t
.
Any
(
s
=>
s
.
Status
==
2
)
?
2
:
t
.
Any
(
s
=>
s
.
Status
==
4
)
?
4
:
t
.
FirstOrDefault
().
Status
});
return
new
ApiResponse
(
ResponseType
.
OK
,
"ok"
,
result
);
}
/// <summary>
/// 医院其他绩效审核详情
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[
Route
(
"apr/getdeptdetail"
)]
[
HttpPost
]
public
ApiResponse
GetAprDetail
([
FromBody
]
per_apr_amount
request
)
{
if
(
request
.
AllotId
==
0
)
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"参数AllotId无效!"
);
var
employee
=
employeeService
.
GetAprList
(
request
.
AllotId
,
request
.
AccountingUnit
,
request
.
TypeInDepartment
);
if
(
employee
==
null
||
!
employee
.
Any
())
return
new
ApiResponse
(
ResponseType
.
OK
,
"ok"
,
employee
);
var
result
=
employee
.
GroupBy
(
t
=>
new
{
t
.
PersonnelNumber
,
t
.
DoctorName
}).
Select
(
t
=>
new
{
PersonnelNumber
=
t
.
Key
.
PersonnelNumber
,
DoctorName
=
t
.
Key
.
DoctorName
,
Detail
=
t
.
GroupBy
(
group
=>
group
.
PerforType
).
Select
(
s
=>
new
TitleValue
<
decimal
>
{
Title
=
s
.
Key
,
Value
=
s
.
Sum
(
sum
=>
sum
.
Amount
??
0
)
})
});
return
new
ApiResponse
(
ResponseType
.
OK
,
"ok"
,
result
);
}
/// <summary>
/// 新增人员补充绩效
/// </summary>
/// <param name="request"></param>
...
...
performance/Performance.Api/wwwroot/Performance.Api.xml
View file @
4f0bee3d
...
...
@@ -699,6 +699,20 @@
<param
name=
"request"
></param>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.EmployeeController.GetAprGroupList(Performance.EntityModels.per_apr_amount)"
>
<summary>
获取人员补充绩效列表
</summary>
<param
name=
"request"
></param>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.EmployeeController.GetAprDetail(Performance.EntityModels.per_apr_amount)"
>
<summary>
获取人员补充绩效列表
</summary>
<param
name=
"request"
></param>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.EmployeeController.InsertApr(Performance.EntityModels.per_apr_amount)"
>
<summary>
新增人员补充绩效
...
...
performance/Performance.Services/EmployeeService.cs
View file @
4f0bee3d
...
...
@@ -383,6 +383,15 @@ public List<per_apr_amount> GetAprList(int allotId)
return
list
;
}
public
List
<
per_apr_amount
>
GetAprList
(
int
allotId
,
string
accountingUnit
,
string
department
)
{
var
list
=
perapramountRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
allotId
&&
t
.
AccountingUnit
==
accountingUnit
&&
t
.
TypeInDepartment
==
department
);
if
(
list
!=
null
&&
list
.
Any
())
list
=
list
.
OrderBy
(
t
=>
t
.
DoctorName
).
ToList
();
return
list
;
}
public
bool
InsertApr
(
per_apr_amount
request
,
int
userId
)
{
if
(
request
==
null
)
...
...
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