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
98666b1c
Commit
98666b1c
authored
Mar 25, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v20201230yubei' into v2020morge-graphql
parents
a10db34d
89216bde
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
65 additions
and
7 deletions
+65
-7
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
+1
-1
performance/Performance.DtoModels/PerExcel/PerDataAccountBaisc.cs
+1
-1
performance/Performance.Services/AllotCompute/ProcessComputService.cs
+2
-2
performance/Performance.Services/ComputeService.cs
+28
-2
performance/Performance.Services/Details/SecondAllotDetails.cs
+4
-1
performance/Performance.Services/UnitTypeUtil.cs
+29
-0
No files found.
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
View file @
98666b1c
...
...
@@ -966,7 +966,7 @@
</member>
<member
name=
"P:Performance.DtoModels.PerDataAccountBaisc.BasicFactor"
>
<summary>
医生基础系数
预算比例
</summary>
</member>
<member
name=
"P:Performance.DtoModels.PerDataAccountBaisc.AssessBeforeOtherFee"
>
...
...
performance/Performance.DtoModels/PerExcel/PerDataAccountBaisc.cs
View file @
98666b1c
...
...
@@ -54,7 +54,7 @@ public class PerDataAccountBaisc : IPerData
public
decimal
Number
{
get
;
set
;
}
/// <summary>
///
医生基础系数
///
预算比例
/// </summary>
public
decimal
BasicFactor
{
get
;
set
;
}
...
...
performance/Performance.Services/AllotCompute/ProcessComputService.cs
View file @
98666b1c
...
...
@@ -381,7 +381,7 @@ public void ComputeOffice(per_allot allot, PerExcel excel)
dept
.
Income
=
empolyees
.
Sum
(
w
=>
w
.
PerforTotal
??
0
);
dept
.
NeedSecondAllot
=
empolyees
.
Any
(
w
=>
w
.
NeedSecondAllot
==
"是"
)
?
"是"
:
"否"
;
if
(
resAccount
?.
UnitType
==
UnitType
.
行政后勤
.
ToString
()
&&
resAccount
?
.
NeedSecondAllot
==
"是"
)
if
(
UnitTypeUtil
.
IsOffice
(
resAccount
?.
UnitType
)
&&
dept
.
NeedSecondAllot
==
"是"
)
{
dept
.
ScoringAverage
=
resAccount
?.
ScoringAverage
==
null
?
0
:
resAccount
.
ScoringAverage
;
dept
.
AdjustFactor
=
(
isBudget
?
adjust
:
resAccount
?.
AdjustFactor
)
??
1
;
...
...
@@ -392,7 +392,7 @@ public void ComputeOffice(per_allot allot, PerExcel excel)
dept
.
AssessBeforeOtherFee
=
resAccount
?.
AssessBeforeOtherFee
??
0
;
dept
.
AssessLaterOtherFee
=
resAccount
?.
AssessLaterOtherFee
??
0
;
// 行政后勤 没有 调节后其他绩效
//
dept.AdjustLaterOtherFee = resAccount?.AdjustLaterOtherFee ?? 0;
dept
.
AdjustLaterOtherFee
=
resAccount
?.
AdjustLaterOtherFee
??
0
;
}
else
{
...
...
performance/Performance.Services/ComputeService.cs
View file @
98666b1c
...
...
@@ -555,8 +555,34 @@ public List<DeptResponse> GetAdminPerformance(int allotId)
}).
Distinct
();
result
.
AddRange
(
specialResult
);
// 需要二次分配的行政科室
var
needSecond
=
perforResaccountRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
t
.
UnitType
.
Value
==
(
int
)
UnitType
.
行政后勤
&&
t
.
NeedSecondAllot
==
"是"
)
??
new
List
<
res_account
>();
var
needSecondResult
=
needSecond
.
Select
(
t
=>
new
DeptResponse
{
UnitName
=
((
UnitType
)
t
.
UnitType
).
ToString
()
==
"行政后勤"
?
"行政工勤"
:
((
UnitType
)
t
.
UnitType
).
ToString
(),
AccountingUnit
=
t
.
AccountingUnit
,
Department
=
t
.
AccountingUnit
,
PerforFee
=
t
.
PerforFee
,
WorkloadFee
=
t
.
WorkloadFee
,
AssessBeforeOtherFee
=
t
.
AssessBeforeOtherFee
,
PerforTotal
=
t
.
PerforTotal
,
ScoringAverage
=
t
.
ScoringAverage
,
Extra
=
t
.
Extra
,
MedicineExtra
=
t
.
MedicineExtra
,
MaterialsExtra
=
t
.
MaterialsExtra
,
AssessLaterOtherFee
=
t
.
AssessLaterOtherFee
,
AssessLaterPerforTotal
=
t
.
AssessLaterPerforTotal
,
AdjustFactor
=
t
.
AdjustFactor
,
AdjustLaterOtherFee
=
t
.
AdjustLaterOtherFee
,
AssessLaterManagementFee
=
clinicalComputes
?.
Where
(
w
=>
w
.
AccountingUnit
==
t
.
AccountingUnit
&&
w
.
UnitType
==
((
UnitType
)
t
.
UnitType
).
ToString
())?.
Sum
(
c
=>
c
.
RealGiveFee
),
RealGiveFee
=
t
.
RealGiveFee
,
});
result
.
AddRange
(
needSecondResult
);
// 不需要二次分配的行政科室
var
officeTypes
=
new
List
<
string
>
{
"行政工勤"
,
"行政高层"
,
"行政中层"
};
var
computes
=
_perforRescomputeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
officeTypes
.
Contains
(
t
.
AccountType
))
??
new
List
<
res_compute
>();
var
computes
=
_perforRescomputeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
officeTypes
.
Contains
(
t
.
AccountType
)
&&
t
.
NeedSecondAllot
==
"否"
)
??
new
List
<
res_compute
>();
var
officeResult
=
computes
.
GroupBy
(
t
=>
new
{
t
.
AccountingUnit
,
t
.
AccountType
,
t
.
UnitType
}).
Select
(
t
=>
new
DeptResponse
{
...
...
@@ -754,7 +780,7 @@ private List<ComputeResponse> GetAllotPerformance(int allotId, int hospitalId, i
//// 业务中层人员信息
//var empolyeeList = _perforImemployeeclinicRepository.GetEntities(t => t.AllotID == allotId);
// 一次绩效 获取特定人员绩效结果
var
allot
=
_perforRescomputeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
mTypes
.
Contains
(
t
.
AccountType
)
&&
t
.
NeedSecondAllot
==
"否"
)?.
OrderByDescending
(
t
=>
t
.
AccountingUnit
);
var
allot
=
_perforRescomputeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
mTypes
.
Contains
(
t
.
AccountType
)
&&
(
string
.
IsNullOrEmpty
(
t
.
NeedSecondAllot
)
||
t
.
NeedSecondAllot
==
"否"
)
)?.
OrderByDescending
(
t
=>
t
.
AccountingUnit
);
//var apramounts = perapramountRepository.GetEntities(t => t.AllotId == allotId);
return
allot
?.
Select
(
t
=>
...
...
performance/Performance.Services/Details/SecondAllotDetails.cs
View file @
98666b1c
...
...
@@ -90,7 +90,10 @@ public SecondResponse GetSecondDetails(int userId, int secondId, int hospitalId,
var
userTemp
=
agusetempRepository
.
GetEntity
(
w
=>
w
.
HospitalId
==
hospitalId
&&
w
.
Department
==
secondAllot
.
Department
&&
w
.
UnitType
==
secondAllot
.
UnitType
);
if
(
userTemp
!=
null
)
tempId
=
userTemp
.
UseTempId
??
(
int
)
Temp
.
other
;
//if (tempId == (int)Temp.other) return new SecondResponse();
if
(
new
int
[]
{
2
,
3
}.
Contains
(
secondAllot
.
Status
??
1
))
//纪录被提交后,根据提交时的模板获取对应的数据
tempId
=
(
secondAllot
.
UseTempId
??
0
)
==
0
?
(
int
)
Temp
.
other
:
secondAllot
.
UseTempId
.
Value
;
if
(
tempId
==
(
int
)
Temp
.
other
)
return
new
SecondResponse
();
if
(
isArchive
==
1
||
new
List
<
int
>
{
(
int
)
SecondAllotStatus
.
WaitReview
,
(
int
)
SecondAllotStatus
.
PassAudit
}.
Contains
(
secondAllot
.
Status
??
(
int
)
SecondAllotStatus
.
Uncommitted
))
employeeSource
=
(
int
)
EmployeeSource
.
Initial
;
...
...
performance/Performance.Services/UnitTypeUtil.cs
0 → 100644
View file @
98666b1c
using
Performance.DtoModels
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Performance.Services
{
public
class
UnitTypeUtil
{
/// <summary>
/// 是否是行政后勤/工勤
/// </summary>
/// <param name="unit"></param>
/// <returns></returns>
public
static
bool
IsOffice
(
int
unit
)
{
return
unit
==
(
int
)
UnitType
.
行政后勤
;
}
/// <summary>
/// 是否是行政后勤/工勤
/// </summary>
/// <param name="unit"></param>
/// <returns></returns>
public
static
bool
IsOffice
(
string
unit
)
{
return
!
string
.
IsNullOrEmpty
(
unit
)
&&
(
unit
==
"行政后勤"
||
unit
==
"行政工勤"
);
}
}
}
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