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
960d717c
Commit
960d717c
authored
Jun 06, 2022
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
每月汇报表去掉医院ID过滤
parent
f9988862
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
performance/Performance.Services/StatisticsService.cs
+4
-4
No files found.
performance/Performance.Services/StatisticsService.cs
View file @
960d717c
...
...
@@ -80,7 +80,7 @@ PerforReportStatisticsTreeRepository ReportStatisticsTreeRepository
public
StatisticsInfoDto
GetInfo
(
int
hospitalID
,
int
statisticsId
)
{
var
reportStatistics
=
_reportStatisticsRepository
.
GetEntity
(
t
=>
t
.
ID
==
statisticsId
&&
t
.
HospitalId
==
hospitalID
);
var
reportStatistics
=
_reportStatisticsRepository
.
GetEntity
(
t
=>
t
.
ID
==
statisticsId
);
if
(
reportStatistics
==
null
)
return
new
StatisticsInfoDto
();
...
...
@@ -126,7 +126,7 @@ public StatisticsInfoDto GetInfo(int hospitalID, int statisticsId)
public
List
<
report_statistics_selection_record
>
GetSelectionRecord
(
int
hospitalID
,
int
statisticsId
)
{
var
result
=
_reportStatisticsSelectionRecordRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalID
&&
t
.
StatisticsID
==
statisticsId
).
OrderByDescending
(
t
=>
t
.
UpdateDate
).
OrderByDescending
(
t
=>
t
.
CreateDate
).
ToList
();
var
result
=
_reportStatisticsSelectionRecordRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalID
&&
t
.
StatisticsID
==
statisticsId
).
OrderByDescending
(
t
=>
t
.
UpdateDate
).
OrderByDescending
(
t
=>
t
.
CreateDate
).
ToList
();
return
result
;
}
...
...
@@ -159,7 +159,7 @@ public bool DeleteSelectionRecord(int id)
public
StatisticsQueryResultDto
Search
(
StatisticsQuery
query
)
{
var
reportStatistics
=
_reportStatisticsRepository
.
GetEntity
(
t
=>
t
.
ID
==
query
.
StatisticsID
&&
t
.
HospitalId
==
query
.
HospitalID
);
var
reportStatistics
=
_reportStatisticsRepository
.
GetEntity
(
t
=>
t
.
ID
==
query
.
StatisticsID
);
if
(
reportStatistics
==
null
)
return
new
StatisticsQueryResultDto
();
...
...
@@ -376,7 +376,7 @@ private StatisticsQueryResultDto StatisticsTreeQuery(StatisticsQuery query, List
};
}
private
List
<
Dictionary
<
string
,
object
>>
StatisticsTree
(
List
<
Dictionary
<
string
,
object
>>
oldTree
,
int
parentID
)
private
List
<
Dictionary
<
string
,
object
>>
StatisticsTree
(
List
<
Dictionary
<
string
,
object
>>
oldTree
,
int
parentID
)
{
if
(
oldTree
.
Any
(
w
=>
(
int
)
w
[
"ParentID"
]
==
parentID
))
{
...
...
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