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
0a9aedaa
Commit
0a9aedaa
authored
Jan 06, 2022
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取数据添加条件 - 医院
parent
3deb2184
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
performance/Performance.DtoModels/Request/ComputerRequest.cs
+3
-7
performance/Performance.Repository/PerforReportRepository .cs
+1
-1
No files found.
performance/Performance.DtoModels/Request/ComputerRequest.cs
View file @
0a9aedaa
...
...
@@ -54,21 +54,17 @@ public class ComputerAliasRequest
public
string
[]
Heads
{
get
;
set
;
}
}
public
abstract
class
BeginEndTimeDown
public
class
BeginEndTime
{
public
string
BeginTime
{
get
;
set
;
}
// 2021-01
public
string
EndTime
{
get
;
set
;
}
// 2021-08
public
int
HospitalId
{
get
;
set
;
}
public
List
<
TitleValue
>
Search
{
get
;
set
;
}
public
string
SortBy
{
get
;
set
;
}
}
public
class
BeginEndTime
:
BeginEndTimeDown
{
public
int
CurrentPage
{
get
;
set
;
}
=
0
;
public
int
PageSize
{
get
;
set
;
}
=
0
;
}
public
class
HospitalGrantSummary
:
BeginEndTime
{
public
List
<
string
>
GroupBy
{
get
;
set
;
}
...
...
@@ -84,7 +80,7 @@ public class QueryComputeByDateGetPage : GetPage
{
public
List
<
dynamic
>
Data
{
get
;
set
;
}
public
Dictionary
<
string
,
decimal
>
TotalData
{
get
;
set
;
}
}
public
class
GetPage
...
...
performance/Performance.Repository/PerforReportRepository .cs
View file @
0a9aedaa
...
...
@@ -407,7 +407,7 @@ public List<dynamic> QueryComputeByDate(string viewName, BeginEndTime request)
{
var
sql
=
$@"SELECT * FROM
{
viewName
}
where STR_TO_DATE(concat(Year,'-',Month,'-01'),'%Y-%m-%d') >= @beginTime
and STR_TO_DATE(concat(Year,'-',Month,'-01'),'%Y-%m-%d') < @endTime"
;
and STR_TO_DATE(concat(Year,'-',Month,'-01'),'%Y-%m-%d') < @endTime
and hospitalid =
{
request
.
HospitalId
}
"
;
if
(
request
.
Search
!=
null
&&
request
.
Search
.
Any
(
w
=>
!
string
.
IsNullOrEmpty
(
w
.
Title
)
&&
!
string
.
IsNullOrEmpty
(
w
.
Value
)))
{
...
...
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