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
2b44bef5
Commit
2b44bef5
authored
May 20, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hotfix/9.10打印缺失'
parents
18d994a8
cd6a235b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
3 deletions
+26
-3
performance/Performance.Services/SecondAllotService.cs
+26
-3
No files found.
performance/Performance.Services/SecondAllotService.cs
View file @
2b44bef5
...
@@ -2083,9 +2083,7 @@ public List<SecPrintResponse> Print(int secondId)
...
@@ -2083,9 +2083,7 @@ public List<SecPrintResponse> Print(int secondId)
//if (computes == null || !computes.Any())
//if (computes == null || !computes.Any())
// return new List<SecPrintResponse>();
// return new List<SecPrintResponse>();
bool
isOtherTemp
=
second
.
UseTempId
.
HasValue
&&
second
.
UseTempId
==
6
;
if
(
second
.
UseTempId
.
HasValue
&&
second
.
UseTempId
==
6
)
if
(
isOtherTemp
)
{
{
var
data
=
agothersourceRepository
.
GetEntities
(
t
=>
t
.
SecondId
==
secondId
);
var
data
=
agothersourceRepository
.
GetEntities
(
t
=>
t
.
SecondId
==
secondId
);
if
(
data
==
null
||
!
data
.
Any
())
return
new
List
<
SecPrintResponse
>();
if
(
data
==
null
||
!
data
.
Any
())
return
new
List
<
SecPrintResponse
>();
...
@@ -2093,6 +2091,31 @@ public List<SecPrintResponse> Print(int secondId)
...
@@ -2093,6 +2091,31 @@ public List<SecPrintResponse> Print(int secondId)
var
result
=
Mapper
.
Map
<
List
<
SecPrintResponse
>>(
data
);
var
result
=
Mapper
.
Map
<
List
<
SecPrintResponse
>>(
data
);
return
result
.
OrderBy
(
t
=>
t
.
JobNumber
).
ThenBy
(
t
=>
t
.
PersonName
).
ToList
();
return
result
.
OrderBy
(
t
=>
t
.
JobNumber
).
ThenBy
(
t
=>
t
.
PersonName
).
ToList
();
}
}
else
if
(
second
.
UseTempId
.
HasValue
&&
(
new
int
[]
{
9
,
10
}).
Contains
(
second
.
UseTempId
.
Value
))
{
var
data
=
agbodysourceRepository
.
GetEntities
(
t
=>
t
.
SecondId
==
secondId
);
if
(
data
==
null
||
!
data
.
Any
())
return
new
List
<
SecPrintResponse
>();
var
bodyDynamic
=
agworkloadsourceRepository
.
GetEntities
(
t
=>
data
.
Select
(
w
=>
w
.
Id
).
Contains
(
t
.
BodyId
));
if
(
data
==
null
||
!
data
.
Any
())
return
new
List
<
SecPrintResponse
>();
var
result
=
data
.
Select
(
w
=>
new
SecPrintResponse
{
JobNumber
=
w
.
WorkNumber
,
PersonName
=
w
.
Name
,
Department
=
w
.
Department
,
RealAmount
=
w
.
RealAmount
,
WorkPost
=
w
.
Post
,
TitlePerfor
=
w
.
TitlePerformance
,
WorkPerformance
=
bodyDynamic
?.
Where
(
b
=>
b
.
BodyId
==
w
.
Id
&&
b
.
ItemId
.
StartsWith
(
"WorkPerformance_"
)).
Sum
(
b
=>
b
.
Value
)
??
0
,
DeptReward
=
w
.
DeptReward
,
DistPerformance
=
w
.
DistPerformance
,
OtherPerformance
=
w
.
OtherPerformance
,
NightWorkPerformance
=
w
.
NightWorkPerformance
,
}).
ToList
();
return
result
.
OrderBy
(
t
=>
t
.
JobNumber
).
ThenBy
(
t
=>
t
.
PersonName
).
ToList
();
}
else
else
{
{
var
itemname
=
new
List
<
string
>
{
"人员工号"
,
"姓名"
,
"职称"
,
"职称绩效"
,
"工作量绩效工资"
,
"单项奖励小计"
,
"可分配绩效"
,
"医院其他绩效"
,
"夜班工作量绩效"
};
var
itemname
=
new
List
<
string
>
{
"人员工号"
,
"姓名"
,
"职称"
,
"职称绩效"
,
"工作量绩效工资"
,
"单项奖励小计"
,
"可分配绩效"
,
"医院其他绩效"
,
"夜班工作量绩效"
};
...
...
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