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
edfe9a03
Commit
edfe9a03
authored
Jun 28, 2021
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取绩效列表数据时,如果不存在,返回空列表
parent
a2471c96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
performance/Performance.Services/CostTransfer/CostTransferService.cs
+2
-2
No files found.
performance/Performance.Services/CostTransfer/CostTransferService.cs
View file @
edfe9a03
...
@@ -567,10 +567,10 @@ private per_allot PrevAllot(int hospitalId, int allotId)
...
@@ -567,10 +567,10 @@ private per_allot PrevAllot(int hospitalId, int allotId)
private
List
<
per_allot
>
PrevAllotList
(
int
hospitalId
,
int
allotId
)
private
List
<
per_allot
>
PrevAllotList
(
int
hospitalId
,
int
allotId
)
{
{
var
allotList
=
perallotRepository
.
GetEntities
(
w
=>
w
.
HospitalId
==
hospitalId
)?.
OrderBy
(
s
=>
s
.
Year
).
ThenBy
(
s
=>
s
.
Month
).
ToList
();
var
allotList
=
perallotRepository
.
GetEntities
(
w
=>
w
.
HospitalId
==
hospitalId
)?.
OrderBy
(
s
=>
s
.
Year
).
ThenBy
(
s
=>
s
.
Month
).
ToList
();
if
(
allotList
==
null
||
!
allotList
.
Any
())
throw
new
PerformanceException
(
"未查询到符合的绩效记录"
);
if
(
allotList
==
null
||
!
allotList
.
Any
())
return
new
List
<
per_allot
>(
);
var
allot
=
allotList
.
FirstOrDefault
(
w
=>
w
.
ID
==
allotId
);
var
allot
=
allotList
.
FirstOrDefault
(
w
=>
w
.
ID
==
allotId
);
if
(
allot
==
null
)
throw
new
PerformanceException
(
"未查询到符合的绩效记录"
);
if
(
allot
==
null
)
return
new
List
<
per_allot
>(
);
return
allotList
.
Where
(
t
=>
t
.
Year
<=
allot
.
Year
&&
t
.
Month
<=
allot
.
Month
)?.
ToList
();
return
allotList
.
Where
(
t
=>
t
.
Year
<=
allot
.
Year
&&
t
.
Month
<=
allot
.
Month
)?.
ToList
();
}
}
...
...
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