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
16785ae8
Commit
16785ae8
authored
Nov 09, 2022
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
从二次绩效配置中带出职称绩效 工作量绩效
parent
cacffe87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
performance/Performance.Services/RedistributionService.cs
+10
-2
No files found.
performance/Performance.Services/RedistributionService.cs
View file @
16785ae8
...
@@ -29,6 +29,7 @@ public class RedistributionService : IAutoInjection
...
@@ -29,6 +29,7 @@ public class RedistributionService : IAutoInjection
private
readonly
PerforPeremployeeRepository
_peremployeeRepository
;
private
readonly
PerforPeremployeeRepository
_peremployeeRepository
;
private
readonly
PerforRescomputeRepository
_rescomputeRepository
;
private
readonly
PerforRescomputeRepository
_rescomputeRepository
;
private
readonly
PerforResaccountRepository
_resaccountRepository
;
private
readonly
PerforResaccountRepository
_resaccountRepository
;
private
readonly
PerforCofagainRepository
_cofagainRepository
;
private
readonly
PerforAgsecondallotRepository
_secondallotRepository
;
private
readonly
PerforAgsecondallotRepository
_secondallotRepository
;
private
readonly
PerforPerapramountRepository
_perapramountRepository
;
private
readonly
PerforPerapramountRepository
_perapramountRepository
;
private
readonly
PerforAgothersourceRepository
_agothersourceRepository
;
private
readonly
PerforAgothersourceRepository
_agothersourceRepository
;
...
@@ -51,6 +52,7 @@ public class RedistributionService : IAutoInjection
...
@@ -51,6 +52,7 @@ public class RedistributionService : IAutoInjection
PerforPeremployeeRepository
peremployeeRepository
,
PerforPeremployeeRepository
peremployeeRepository
,
PerforRescomputeRepository
rescomputeRepository
,
PerforRescomputeRepository
rescomputeRepository
,
PerforResaccountRepository
resaccountRepository
,
PerforResaccountRepository
resaccountRepository
,
PerforCofagainRepository
cofagainRepository
,
PerforAgsecondallotRepository
secondallotRepository
,
PerforAgsecondallotRepository
secondallotRepository
,
PerforPerapramountRepository
perapramountRepository
,
PerforPerapramountRepository
perapramountRepository
,
PerforAgothersourceRepository
agothersourceRepository
,
PerforAgothersourceRepository
agothersourceRepository
,
...
@@ -71,6 +73,7 @@ public class RedistributionService : IAutoInjection
...
@@ -71,6 +73,7 @@ public class RedistributionService : IAutoInjection
_peremployeeRepository
=
peremployeeRepository
;
_peremployeeRepository
=
peremployeeRepository
;
_rescomputeRepository
=
rescomputeRepository
;
_rescomputeRepository
=
rescomputeRepository
;
_resaccountRepository
=
resaccountRepository
;
_resaccountRepository
=
resaccountRepository
;
_cofagainRepository
=
cofagainRepository
;
_secondallotRepository
=
secondallotRepository
;
_secondallotRepository
=
secondallotRepository
;
_perapramountRepository
=
perapramountRepository
;
_perapramountRepository
=
perapramountRepository
;
_agothersourceRepository
=
agothersourceRepository
;
_agothersourceRepository
=
agothersourceRepository
;
...
@@ -475,8 +478,13 @@ public void RowsExpand(per_allot allot, List<SecondColumnDictionary> dic, List<D
...
@@ -475,8 +478,13 @@ public void RowsExpand(per_allot allot, List<SecondColumnDictionary> dic, List<D
if
(
history
==
null
&&
prevSecondAllot
!=
null
&&
secondId
!=
prevSecondAllot
.
Id
)
if
(
history
==
null
&&
prevSecondAllot
!=
null
&&
secondId
!=
prevSecondAllot
.
Id
)
history
=
_agheadsourceRepository
.
GetEntity
(
t
=>
t
.
SecondId
==
prevSecondAllot
.
Id
);
history
=
_agheadsourceRepository
.
GetEntity
(
t
=>
t
.
SecondId
==
prevSecondAllot
.
Id
);
head
.
AddOrUpdate
(
nameof
(
ag_headsource
.
SeniorityTitlesAccountedPerformance
),
history
?.
SeniorityTitlesAccountedPerformance
??
0.2
m
);
// 从二次绩效配置中带出
head
.
AddOrUpdate
(
nameof
(
ag_headsource
.
Workload_Ratio_Default
),
history
?.
Workload_Ratio_Default
??
0.8
m
);
var
cfgs
=
_cofagainRepository
.
GetEntities
(
w
=>
w
.
AllotID
==
allot
.
ID
)
??
new
List
<
cof_again
>();
var
titleRatio
=
cfgs
.
Where
(
w
=>
w
.
Type
==
1
||
w
.
TypeName
==
"职称绩效"
)?.
OrderByDescending
(
w
=>
w
.
ID
)?.
FirstOrDefault
()?.
Value
??
0.2
m
;
var
workloadRatio
=
cfgs
.
Where
(
w
=>
w
.
Type
==
2
||
w
.
TypeName
==
"工作量绩效"
)?.
OrderByDescending
(
w
=>
w
.
ID
)?.
FirstOrDefault
()?.
Value
??
0.8
m
;
head
.
AddOrUpdate
(
nameof
(
ag_headsource
.
SeniorityTitlesAccountedPerformance
),
history
?.
SeniorityTitlesAccountedPerformance
??
titleRatio
);
head
.
AddOrUpdate
(
nameof
(
ag_headsource
.
Workload_Ratio_Default
),
history
?.
Workload_Ratio_Default
??
workloadRatio
);
head
.
AddOrUpdate
(
nameof
(
ag_headsource
.
DaysFullAttendance
),
DateTime
.
DaysInMonth
(
allot
.
Year
,
allot
.
Month
));
head
.
AddOrUpdate
(
nameof
(
ag_headsource
.
DaysFullAttendance
),
DateTime
.
DaysInMonth
(
allot
.
Year
,
allot
.
Month
));
// 多工作量加载
// 多工作量加载
...
...
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