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
259016d2
Commit
259016d2
authored
Jun 07, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/医院其他绩效性能优化' into develop
parents
8d45a787
f6121928
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
6 deletions
+34
-6
performance/Performance.Repository/PerforPerapramountRepository.cs
+17
-3
performance/Performance.Repository/PerforPerapramounthideRepository.cs
+17
-3
No files found.
performance/Performance.Repository/PerforPerapramountRepository.cs
View file @
259016d2
...
...
@@ -6,6 +6,7 @@
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Linq.Expressions
;
using
Performance.EntityModels
;
namespace
Performance.Repository
...
...
@@ -15,10 +16,23 @@ namespace Performance.Repository
/// </summary>
public
partial
class
PerforPerapramountRepository
:
PerforRepository
<
per_apr_amount
>
{
public
List
<
view_per_apr_amount
>
GetFullAmount
(
Func
<
per_apr_amount
,
bool
>
predicate
)
public
List
<
view_per_apr_amount
>
GetFullAmount
(
Expression
<
Func
<
per_apr_amount
,
bool
>
>
predicate
)
{
var
employees
=
this
.
context
.
Set
<
per_employee
>().
AsEnumerable
();
var
amounts
=
this
.
context
.
Set
<
per_apr_amount
>().
Where
(
predicate
);
var
amounts
=
GetEntities
(
predicate
);
if
(
amounts
==
null
||
!
amounts
.
Any
())
return
new
List
<
view_per_apr_amount
>();
var
ids
=
amounts
.
Select
(
w
=>
w
.
AllotId
).
Distinct
().
ToList
();
var
employees
=
this
.
context
.
Set
<
per_employee
>()
.
Where
(
w
=>
w
.
AllotId
.
HasValue
&&
ids
.
Contains
(
w
.
AllotId
.
Value
))
.
Select
(
w
=>
new
{
UnitType
=
w
.
UnitType
,
AccountingUnit
=
w
.
AccountingUnit
,
AllotId
=
w
.
AllotId
,
PersonnelNumber
=
w
.
PersonnelNumber
,
});
var
res
=
from
outer
in
amounts
join
inner
in
employees
...
...
performance/Performance.Repository/PerforPerapramounthideRepository.cs
View file @
259016d2
...
...
@@ -6,6 +6,7 @@
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Linq.Expressions
;
using
Performance.EntityModels
;
namespace
Performance.Repository
...
...
@@ -15,10 +16,23 @@ namespace Performance.Repository
/// </summary>
public
partial
class
PerforPerapramounthideRepository
:
PerforRepository
<
per_apr_amount_hide
>
{
public
List
<
view_per_apr_amount
>
GetFullAmount
(
Func
<
per_apr_amount_hide
,
bool
>
predicate
)
public
List
<
view_per_apr_amount
>
GetFullAmount
(
Expression
<
Func
<
per_apr_amount_hide
,
bool
>
>
predicate
)
{
var
employees
=
this
.
context
.
Set
<
per_employee
>().
AsEnumerable
();
var
amounts
=
this
.
context
.
Set
<
per_apr_amount_hide
>().
Where
(
predicate
);
var
amounts
=
GetEntities
(
predicate
);
if
(
amounts
==
null
||
!
amounts
.
Any
())
return
new
List
<
view_per_apr_amount
>();
var
ids
=
amounts
.
Select
(
w
=>
w
.
AllotId
).
Distinct
().
ToList
();
var
employees
=
this
.
context
.
Set
<
per_employee
>()
.
Where
(
w
=>
w
.
AllotId
.
HasValue
&&
ids
.
Contains
(
w
.
AllotId
.
Value
))
.
Select
(
w
=>
new
{
UnitType
=
w
.
UnitType
,
AccountingUnit
=
w
.
AccountingUnit
,
AllotId
=
w
.
AllotId
,
PersonnelNumber
=
w
.
PersonnelNumber
,
});
var
res
=
from
outer
in
amounts
join
inner
in
employees
...
...
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