Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
queryPlatform
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
唐仲阳
queryPlatform
Commits
8d6658a9
Commit
8d6658a9
authored
Aug 31, 2023
by
tangzhongyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a
parent
bce59136
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
api/queryPlaform.Api/Infrastructure/Queries/HomeQueries.cs
+5
-8
No files found.
api/queryPlaform.Api/Infrastructure/Queries/HomeQueries.cs
View file @
8d6658a9
...
...
@@ -1438,17 +1438,13 @@ public List<string> Cursor(CursorModel model)
{
var
dbs
=
"SELECT ExecOpenLink ,ExecDatabase FROM [DB_SV_Data_Config].[dbo].[SYS_Hospital] where isnull([ExecOpenLink],'')!='' and isnull([ExecDatabase],'')!=''"
;
List
<
string
>
Return
=
new
List
<
string
>();
if
(
string
.
IsNullOrEmpty
(
model
.
ExecuteSql
)
||
string
.
IsNullOrEmpty
(
model
.
TableName
))
Return
.
Add
(
"请填写流水库表名和待执行sql!"
);
if
(
string
.
IsNullOrEmpty
(
model
.
ExecuteSql
)
||
string
.
IsNullOrEmpty
(
model
.
TableName
))
Return
.
Add
(
"请填写流水库表名和待执行sql!"
);
Return
.
Add
(
"医院区域:"
+
(
string
.
IsNullOrEmpty
(
model
.
City
)
?
"全部"
:
model
.
City
));
Return
.
Add
(
"医院等级:"
+
(
string
.
IsNullOrEmpty
(
model
.
HosLevel
)
?
"全部"
:
model
.
HosLevel
));
Return
.
Add
(
"医院类型:"
+
(
string
.
IsNullOrEmpty
(
model
.
HosType
)
?
"全部"
:
model
.
HosType
));
if
(!
string
.
IsNullOrEmpty
(
model
.
City
))
dbs
=
dbs
+
$" and City like '%
{
model
.
City
}
%'"
;
if
(!
string
.
IsNullOrEmpty
(
model
.
HosLevel
))
dbs
=
dbs
+
$" and HosLevel like '%
{
model
.
HosLevel
}
%'"
;
if
(!
string
.
IsNullOrEmpty
(
model
.
HosType
))
dbs
=
dbs
+
$" and HosType like '%
{
model
.
HosType
}
%'"
;
if
(!
string
.
IsNullOrEmpty
(
model
.
City
))
dbs
=
dbs
+
$" and City like '%
{
model
.
City
}
%'"
;
if
(!
string
.
IsNullOrEmpty
(
model
.
HosLevel
))
dbs
=
dbs
+
$" and HosLevel like '%
{
model
.
HosLevel
}
%'"
;
if
(!
string
.
IsNullOrEmpty
(
model
.
HosType
))
dbs
=
dbs
+
$" and HosType like '%
{
model
.
HosType
}
%'"
;
Return
.
Add
(
"ExecuteSql:"
+
model
.
ExecuteSql
);
var
hoss
=
Connection
(
156
).
Query
<
SYS_Hospital
>(
dbs
);
Return
.
Add
(
"需执行医院数:"
+
hoss
.
Count
());
...
...
@@ -1474,6 +1470,7 @@ public List<string> Cursor(CursorModel model)
insertInto
=
insertInto
.
Substring
(
0
,
insertInto
.
Length
-
1
)
+
")"
;
Connection
(
181
).
Execute
(
CreateTable
);
}
//执行
foreach
(
var
hos
in
hoss
)
{
...
...
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