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
1614427e
Commit
1614427e
authored
Dec 10, 2021
by
纪旭 韦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
手工录入详情增加搜索
parent
c09235ad
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
performance/Performance.Services/EmployeeService.cs
+8
-3
No files found.
performance/Performance.Services/EmployeeService.cs
View file @
1614427e
...
...
@@ -1243,7 +1243,12 @@ public void SaveGatherHands(int allotId, SaveGatherData request)
public
GatherInfo
GetGather
(
int
allotId
,
string
department
,
string
source
,
PersonParamsRequest
request
)
{
var
datas
=
exresultgatherRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
allotId
&&
t
.
Department
.
Contains
(
department
)
&&
t
.
Source
.
Contains
(
source
)
&&
(
t
.
PersonnelNumber
!=
""
||
t
.
DoctorName
!=
""
));
Expression
<
Func
<
ex_result_gather
,
bool
>>
exp
=
t
=>
t
.
AllotId
==
allotId
&&
t
.
Department
.
Contains
(
department
)
&&
t
.
Source
.
Contains
(
source
)
&&
(
t
.
PersonnelNumber
!=
""
||
t
.
DoctorName
!=
""
);
if
(
request
!=
null
&&
!
string
.
IsNullOrEmpty
(
request
.
SearchQuery
))
exp
=
exp
.
And
(
t
=>
t
.
AllotId
==
allotId
&&
t
.
Department
.
Contains
(
department
)
&&
t
.
Source
.
Contains
(
source
)
&&
(
t
.
PersonnelNumber
!=
""
||
t
.
DoctorName
!=
""
)
&&
t
.
DoctorName
.
Contains
(
request
.
SearchQuery
)
||
t
.
PersonnelNumber
.
Contains
(
request
.
SearchQuery
));
var
datas
=
exresultgatherRepository
.
GetEntities
(
exp
);
var
result
=
datas
.
GroupBy
(
a
=>
new
{
a
.
Department
,
a
.
DoctorName
,
a
.
PersonnelNumber
}).
Select
(
t
=>
new
{
...
...
@@ -1325,10 +1330,10 @@ public GatherResponse GetGatherTotal(int allotId, PersonParamsRequest request)
};*/
#
endregion
Expression
<
Func
<
ex_result_gather
,
bool
>>
exp
=
t
=>
t
.
AllotId
==
allotId
&&
t
.
DoctorName
!=
""
||
t
.
PersonnelNumber
!=
""
;
Expression
<
Func
<
ex_result_gather
,
bool
>>
exp
=
t
=>
t
.
AllotId
==
allotId
&&
(
t
.
DoctorName
!=
""
||
t
.
PersonnelNumber
!=
""
)
;
if
(
request
!=
null
&&
!
string
.
IsNullOrEmpty
(
request
.
SearchQuery
))
exp
=
exp
.
And
(
t
=>
t
.
Department
.
Contains
(
request
.
SearchQuery
)
||
t
.
Source
.
Contains
(
request
.
SearchQuery
));
exp
=
exp
.
And
(
t
=>
t
.
AllotId
==
allotId
&&
(
t
.
DoctorName
!=
""
||
t
.
PersonnelNumber
!=
""
)
&&
t
.
Department
.
Contains
(
request
.
SearchQuery
)
||
t
.
Source
.
Contains
(
request
.
SearchQuery
));
var
datas
=
exresultgatherRepository
.
GetEntities
(
exp
);
...
...
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