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
15b64912
Commit
15b64912
authored
Sep 25, 2019
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG修复
parent
c53ee56d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
performance/Performance.Services/AllotCompute/ResultComputeService.cs
+1
-1
performance/Performance.Services/PerExcelService/ComputeEmpolyee/ComputeDirector.cs
+3
-4
No files found.
performance/Performance.Services/AllotCompute/ResultComputeService.cs
View file @
15b64912
...
@@ -56,7 +56,7 @@ public List<res_baiscnorm> Compute(per_allot allot, PerExcel excel, List<PerShee
...
@@ -56,7 +56,7 @@ public List<res_baiscnorm> Compute(per_allot allot, PerExcel excel, List<PerShee
List
<
ComputeEmployee
>
computeEmployees
=
Mapper
.
Map
<
List
<
ComputeEmployee
>>(
empolyeeList
);
List
<
ComputeEmployee
>
computeEmployees
=
Mapper
.
Map
<
List
<
ComputeEmployee
>>(
empolyeeList
);
logManageService
.
WriteMsg
(
"正在生成绩效"
,
"临床科室主任、临床科室副主任、临床科室护士长 最终绩效数据计算"
,
1
,
allot
.
ID
,
"ReceiveMessage"
);
logManageService
.
WriteMsg
(
"正在生成绩效"
,
"临床科室主任、临床科室副主任、临床科室护士长 最终绩效数据计算"
,
1
,
allot
.
ID
,
"ReceiveMessage"
);
var
computResult
=
computeDirector
.
Compute
(
computeEmployees
,
accountbasicList
,
accountSheet
,
allot
,
isMinimum
);
var
computResult
=
computeDirector
.
Compute
(
computeEmployees
,
accountbasicList
,
accountSheet
,
allot
);
//计算 绩效标准 基数(科主任、副主任、护士长 =>> 平均值)
//计算 绩效标准 基数(科主任、副主任、护士长 =>> 平均值)
List
<
res_baiscnorm
>
baiscnormList
=
new
List
<
res_baiscnorm
>();
List
<
res_baiscnorm
>
baiscnormList
=
new
List
<
res_baiscnorm
>();
baiscNormService
.
ComputeAvg
(
baiscnormList
,
accountbasicList
,
computResult
);
baiscNormService
.
ComputeAvg
(
baiscnormList
,
accountbasicList
,
computResult
);
...
...
performance/Performance.Services/PerExcelService/ComputeEmpolyee/ComputeDirector.cs
View file @
15b64912
...
@@ -137,7 +137,7 @@ public class ComputeDirector : IAutoInjection
...
@@ -137,7 +137,7 @@ public class ComputeDirector : IAutoInjection
/// <param name="nurseList"></param>
/// <param name="nurseList"></param>
/// <param name="directorList"></param>
/// <param name="directorList"></param>
/// <returns></returns>
/// <returns></returns>
public
List
<
ComputeResult
>
Compute
(
List
<
ComputeEmployee
>
empolyeeList
,
List
<
im_accountbasic
>
accountbasicList
,
List
<
PerSheet
>
accountSheet
,
per_allot
allot
,
bool
isMinimum
=
false
)
public
List
<
ComputeResult
>
Compute
(
List
<
ComputeEmployee
>
empolyeeList
,
List
<
im_accountbasic
>
accountbasicList
,
List
<
PerSheet
>
accountSheet
,
per_allot
allot
)
{
{
var
basicRuleList
=
new
[]
var
basicRuleList
=
new
[]
{
{
...
@@ -174,8 +174,7 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<im_a
...
@@ -174,8 +174,7 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<im_a
var
perforTotal
=
resAccount
.
Sum
(
t
=>
t
.
PerforTotal
);
var
perforTotal
=
resAccount
.
Sum
(
t
=>
t
.
PerforTotal
);
var
realGiveFee
=
resAccount
.
Sum
(
t
=>
t
.
RealGiveFee
);
var
realGiveFee
=
resAccount
.
Sum
(
t
=>
t
.
RealGiveFee
);
var
avg
=
resAccount
.
Average
(
t
=>
t
.
Avg
);
var
avg
=
resAccount
.
Average
(
t
=>
t
.
Avg
);
if
(!
isMinimum
&&
resAccount
.
Any
(
t
=>
t
.
ManagerNumber
>
0
||
t
.
Number
>
0
))
var
realAvg
=
resAccount
.
Sum
(
t
=>
(
t
.
ManagerNumber
+
t
.
Number
)
==
0
?
0
:
t
.
RealGiveFee
/
(
t
.
ManagerNumber
+
t
.
Number
))
/
resAccount
.
Count
();
avg
=
resAccount
.
Sum
(
t
=>
t
.
RealGiveFee
/
(
t
.
ManagerNumber
+
t
.
Number
))
/
resAccount
.
Count
();
var
basicRule
=
basicRuleList
.
FirstOrDefault
(
t
=>
t
.
UnitType
==
(
UnitType
)
accountbasic
.
UnitType
);
var
basicRule
=
basicRuleList
.
FirstOrDefault
(
t
=>
t
.
UnitType
==
(
UnitType
)
accountbasic
.
UnitType
);
if
(
basicRule
==
null
)
continue
;
if
(
basicRule
==
null
)
continue
;
...
@@ -210,7 +209,7 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<im_a
...
@@ -210,7 +209,7 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<im_a
Number
=
number
,
Number
=
number
,
PerforTotal
=
realGiveFee
,
PerforTotal
=
realGiveFee
,
Avg
=
a
vg
,
Avg
=
realA
vg
,
Efficiency
=
avg
*
(
accountbasic
.
DoctorEffic
??
1
),
Efficiency
=
avg
*
(
accountbasic
.
DoctorEffic
??
1
),
Scale
=
perforTotal
*
(
accountbasic
.
DoctorScale
??
1
),
Scale
=
perforTotal
*
(
accountbasic
.
DoctorScale
??
1
),
Adjust
=
empolyee
.
Adjust
,
Adjust
=
empolyee
.
Adjust
,
...
...
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