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
6c302c21
Commit
6c302c21
authored
Aug 09, 2019
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
执行脚本修改
parent
ec5066b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
performance/Performance.Services/NewExtractService.cs
+4
-3
No files found.
performance/Performance.Services/NewExtractService.cs
View file @
6c302c21
...
...
@@ -476,16 +476,17 @@ private List<ExtractDto> QueryDatabase(List<sys_hospitalconfig> hospitalConfigLi
{
LogHelper
.
Information
(
$"执行SQL脚本获取数据,"
,
"提取绩效数据"
);
var
config
=
hospitalConfigList
.
FirstOrDefault
(
t
=>
t
.
Type
==
extract
.
SourceType
);
var
executeScript
=
extract
.
ExecuteScript
;
var
parameters
=
GetParameters
(
allot
);
using
(
var
connection
=
ConnectionBuilder
.
Create
(
DatabaseType
.
SqlServer
,
config
.
DbSource
,
config
.
DbName
,
config
.
DbUser
,
config
.
DbPassword
))
{
foreach
(
var
item
in
parameters
)
{
ex
tract
.
ExecuteScript
=
Regex
.
Replace
(
extract
.
E
xecuteScript
,
item
.
Key
,
item
.
Value
,
RegexOptions
.
IgnoreCase
);
ex
ecuteScript
=
Regex
.
Replace
(
e
xecuteScript
,
item
.
Key
,
item
.
Value
,
RegexOptions
.
IgnoreCase
);
}
LogHelper
.
Information
(
$"SQL脚本
{
ex
tract
.
Ex
ecuteScript
}
,"
,
"提取绩效数据"
);
LogHelper
.
Information
(
$"SQL脚本
{
executeScript
}
,"
,
"提取绩效数据"
);
var
result
=
connection
.
Query
<
ExtractDto
>(
ex
tract
.
Ex
ecuteScript
,
commandTimeout
:
20000
);
var
result
=
connection
.
Query
<
ExtractDto
>(
executeScript
,
commandTimeout
:
20000
);
if
(
result
!=
null
&&
result
.
Count
()
>
0
)
{
if
(
extract
.
ExecuteType
==
2
)
...
...
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