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
ffa281f0
Commit
ffa281f0
authored
May 28, 2024
by
wyc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工作量来源,改成视图
parent
2229a0a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
17 deletions
+1
-17
performance/Performance.Repository/PerforPerAllotRepository.cs
+1
-17
No files found.
performance/Performance.Repository/PerforPerAllotRepository.cs
View file @
ffa281f0
...
@@ -300,23 +300,7 @@ public IEnumerable<string> GetSecondWorkloadMaps(int hospitalId)
...
@@ -300,23 +300,7 @@ public IEnumerable<string> GetSecondWorkloadMaps(int hospitalId)
if
(
connection
.
State
!=
ConnectionState
.
Open
)
connection
.
Open
();
if
(
connection
.
State
!=
ConnectionState
.
Open
)
connection
.
Open
();
try
try
{
{
string
query
=
$@"
string
query
=
$@"SELECT DISTINCT Category FROM view_second_workload_category where hospitalId = @hospitalId ORDER BY Sort,Category"
;
SELECT DISTINCT Category FROM (
SELECT IF(Source = 102,EName,ItemName) Category FROM ex_type t1
LEFT JOIN ex_item t2 ON t1.Id = t2.TypeId
WHERE Source IN (102,7) AND HospitalId = @hospitalId
UNION ALL
SELECT DISTINCT Category
FROM ex_result
WHERE IsDelete = 0 AND (source like '%医生组工作量%' or source like '%通用工作量%')
AND AllotId IN (SELECT DISTINCT ID FROM per_allot WHERE HospitalId = @hospitalId)
)TAB
WHERE IFNULL(Category,'')<>''
ORDER BY Category
"
;
return
connection
.
Query
<
string
>(
query
,
new
{
hospitalId
},
commandTimeout
:
60
*
60
);
return
connection
.
Query
<
string
>(
query
,
new
{
hospitalId
},
commandTimeout
:
60
*
60
);
}
}
catch
(
Exception
)
catch
(
Exception
)
...
...
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