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
9bf85042
Commit
9bf85042
authored
Apr 26, 2022
by
1391696987
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
手工录入通过和失败搜索
parent
c91e04e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
performance/Performance.Services/EmployeeService.cs
+9
-3
No files found.
performance/Performance.Services/EmployeeService.cs
View file @
9bf85042
...
@@ -1406,7 +1406,6 @@ public GatherInfo GetGather(Gather gather)
...
@@ -1406,7 +1406,6 @@ public GatherInfo GetGather(Gather gather)
if
(
gather
!=
null
&&
!
string
.
IsNullOrEmpty
(
gather
.
SearchQuery
))
if
(
gather
!=
null
&&
!
string
.
IsNullOrEmpty
(
gather
.
SearchQuery
))
exp
=
exp
.
And
(
t
=>
t
.
DoctorName
.
Contains
(
gather
.
SearchQuery
)
||
t
.
PersonnelNumber
.
Contains
(
gather
.
SearchQuery
));
exp
=
exp
.
And
(
t
=>
t
.
DoctorName
.
Contains
(
gather
.
SearchQuery
)
||
t
.
PersonnelNumber
.
Contains
(
gather
.
SearchQuery
));
var
datas
=
exresultgatherRepository
.
GetEntities
(
exp
).
OrderByDescending
(
t
=>
t
.
CreateTime
);
var
datas
=
exresultgatherRepository
.
GetEntities
(
exp
).
OrderByDescending
(
t
=>
t
.
CreateTime
);
var
result
=
datas
.
Select
(
t
=>
new
GatherInfoRequest
var
result
=
datas
.
Select
(
t
=>
new
GatherInfoRequest
...
@@ -1457,6 +1456,8 @@ public GatherResponse GetGatherTotal(Gather gather)
...
@@ -1457,6 +1456,8 @@ public GatherResponse GetGatherTotal(Gather gather)
}
}
var
datas
=
exresultgatherRepository
.
GetEntities
(
exp
)
var
datas
=
exresultgatherRepository
.
GetEntities
(
exp
)
.
GroupBy
(
t
=>
new
{
t
.
Department
,
t
.
Source
,
t
.
Category
,
t
.
Submitter
})
.
GroupBy
(
t
=>
new
{
t
.
Department
,
t
.
Source
,
t
.
Category
,
t
.
Submitter
})
.
Select
(
s
=>
new
.
Select
(
s
=>
new
...
@@ -1472,9 +1473,14 @@ public GatherResponse GetGatherTotal(Gather gather)
...
@@ -1472,9 +1473,14 @@ public GatherResponse GetGatherTotal(Gather gather)
:
s
.
Count
()
==
s
.
Where
(
w
=>
w
.
States
==
(
int
)
AuditGather
.
已通过
).
Count
()
?
"已通过"
:
s
.
Count
()
==
s
.
Where
(
w
=>
w
.
States
==
(
int
)
AuditGather
.
已通过
).
Count
()
?
"已通过"
:
s
.
Count
()
==
s
.
Where
(
w
=>
w
.
States
==
(
int
)
AuditGather
.
未审核
).
Count
()
?
"未审核"
:
"未知"
,
:
s
.
Count
()
==
s
.
Where
(
w
=>
w
.
States
==
(
int
)
AuditGather
.
未审核
).
Count
()
?
"未审核"
:
"未知"
,
Remark
=
s
.
FirstOrDefault
()?.
Remark
,
Remark
=
s
.
FirstOrDefault
()?.
Remark
,
}).
OrderByDescending
(
t
=>
t
.
CreateTime
);
});
if
(
gather
.
Status
==
"失败"
)
datas
=
datas
.
Where
(
w
=>
w
.
States
==
"未通过"
);
if
(
gather
.
Status
==
"通过"
)
datas
=
datas
.
Where
(
w
=>
w
.
States
==
"已通过"
);
var
ser
=
JsonConvert
.
SerializeObject
(
datas
);
var
ser
=
JsonConvert
.
SerializeObject
(
datas
.
OrderByDescending
(
t
=>
t
.
CreateTime
)
);
var
rows
=
JsonConvert
.
DeserializeObject
<
List
<
Dictionary
<
string
,
object
>>>(
ser
);
var
rows
=
JsonConvert
.
DeserializeObject
<
List
<
Dictionary
<
string
,
object
>>>(
ser
);
var
data
=
new
List
<
Dictionary
<
string
,
object
>>();
var
data
=
new
List
<
Dictionary
<
string
,
object
>>();
...
...
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