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
aa85054c
Commit
aa85054c
authored
Aug 27, 2019
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重复保存修复
parent
7472ddda
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
performance/Performance.Services/AllotCompute/ResultComputeService.cs
+4
-1
performance/Performance.Services/AllotService.cs
+1
-1
No files found.
performance/Performance.Services/AllotCompute/ResultComputeService.cs
View file @
aa85054c
...
@@ -47,7 +47,7 @@ public class ResultComputeService : IAutoInjection
...
@@ -47,7 +47,7 @@ public class ResultComputeService : IAutoInjection
/// 计算最终数据
/// 计算最终数据
/// </summary>
/// </summary>
/// <param name="excel"></param>
/// <param name="excel"></param>
public
List
<
res_baiscnorm
>
Compute
(
per_allot
allot
,
PerExcel
excel
,
List
<
PerSheet
>
accountSheet
)
public
List
<
res_baiscnorm
>
Compute
(
per_allot
allot
,
PerExcel
excel
,
List
<
PerSheet
>
accountSheet
,
bool
isSave
=
true
)
{
{
//取出人员信息
//取出人员信息
var
empolyeeList
=
perforImEmployeeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allot
.
ID
);
var
empolyeeList
=
perforImEmployeeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allot
.
ID
);
...
@@ -67,10 +67,13 @@ public List<res_baiscnorm> Compute(per_allot allot, PerExcel excel, List<PerShee
...
@@ -67,10 +67,13 @@ public List<res_baiscnorm> Compute(per_allot allot, PerExcel excel, List<PerShee
//计算 行政人员 平均值
//计算 行政人员 平均值
baiscNormService
.
ComputeOtherAvg
(
baiscnormList
,
computResult2
,
empolyeeList
);
baiscNormService
.
ComputeOtherAvg
(
baiscnormList
,
computResult2
,
empolyeeList
);
if
(
isSave
)
{
var
computes
=
Mapper
.
Map
<
List
<
res_compute
>>(
computResult
);
var
computes
=
Mapper
.
Map
<
List
<
res_compute
>>(
computResult
);
computes
.
AddRange
(
Mapper
.
Map
<
List
<
res_compute
>>(
computResult2
));
computes
.
AddRange
(
Mapper
.
Map
<
List
<
res_compute
>>(
computResult2
));
computes
.
ForEach
(
t
=>
t
.
AllotID
=
allot
.
ID
);
computes
.
ForEach
(
t
=>
t
.
AllotID
=
allot
.
ID
);
perforRescomputeRepository
.
AddRange
(
computes
.
ToArray
());
perforRescomputeRepository
.
AddRange
(
computes
.
ToArray
());
}
baiscnormList
.
ForEach
(
t
=>
t
.
AllotID
=
allot
.
ID
);
baiscnormList
.
ForEach
(
t
=>
t
.
AllotID
=
allot
.
ID
);
logManageService
.
WriteMsg
(
"正在生成绩效"
,
"保存最终绩效数据"
,
1
,
allot
.
ID
,
"ReceiveMessage"
);
logManageService
.
WriteMsg
(
"正在生成绩效"
,
"保存最终绩效数据"
,
1
,
allot
.
ID
,
"ReceiveMessage"
);
...
...
performance/Performance.Services/AllotService.cs
View file @
aa85054c
...
@@ -258,7 +258,7 @@ public void Generate(per_allot allot, string mail)
...
@@ -258,7 +258,7 @@ public void Generate(per_allot allot, string mail)
//计算各人群人均保底绩效
//计算各人群人均保底绩效
logManageService
.
WriteMsg
(
"计算保底绩效参考标准值"
,
"正在生成保底绩效行政工勤人均绩效"
,
1
,
allot
.
ID
,
"ReceiveMessage"
,
true
);
logManageService
.
WriteMsg
(
"计算保底绩效参考标准值"
,
"正在生成保底绩效行政工勤人均绩效"
,
1
,
allot
.
ID
,
"ReceiveMessage"
,
true
);
var
minimumBaiscnorm2
=
resultComputeService
.
Compute
(
allot
,
excel
,
sheet
);
var
minimumBaiscnorm2
=
resultComputeService
.
Compute
(
allot
,
excel
,
sheet
,
false
);
if
(
minimumBaiscnorm2
!=
null
&&
minimumBaiscnorm2
.
Any
(
t
=>
t
.
PositionName
==
EnumHelper
.
GetDescription
(
PerforType
.
行政工勤
)))
if
(
minimumBaiscnorm2
!=
null
&&
minimumBaiscnorm2
.
Any
(
t
=>
t
.
PositionName
==
EnumHelper
.
GetDescription
(
PerforType
.
行政工勤
)))
{
{
var
minimum
=
minimumBaiscnorm2
.
First
(
t
=>
t
.
PositionName
==
EnumHelper
.
GetDescription
(
PerforType
.
行政工勤
));
var
minimum
=
minimumBaiscnorm2
.
First
(
t
=>
t
.
PositionName
==
EnumHelper
.
GetDescription
(
PerforType
.
行政工勤
));
...
...
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