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
b07e1b8e
Commit
b07e1b8e
authored
Oct 14, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取医生收入数据方法添加日志
parent
5b8fa789
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
performance/Performance.Services/ExtractIncomeService.cs
+15
-6
No files found.
performance/Performance.Services/ExtractIncomeService.cs
View file @
b07e1b8e
...
...
@@ -97,16 +97,25 @@ public string Execture(int allotId)
private
IEnumerable
<
IncomeDataDto
>
QueryData
(
sys_hospitalconfig
config
,
per_allot
allot
,
string
execsql
)
{
var
parameters
=
GetParameters
(
allot
);
using
(
var
connection
=
ConnectionBuilder
.
Create
((
DatabaseType
)
config
.
DataBaseType
,
config
.
DbSource
,
config
.
DbName
,
config
.
DbUser
,
config
.
DbPassword
))
try
{
foreach
(
var
item
in
parameters
)
var
parameters
=
GetParameters
(
allot
);
using
(
var
connection
=
ConnectionBuilder
.
Create
((
DatabaseType
)
config
.
DataBaseType
,
config
.
DbSource
,
config
.
DbName
,
config
.
DbUser
,
config
.
DbPassword
))
{
execsql
=
Regex
.
Replace
(
execsql
,
item
.
Key
,
item
.
Value
,
RegexOptions
.
IgnoreCase
);
foreach
(
var
item
in
parameters
)
{
execsql
=
Regex
.
Replace
(
execsql
,
item
.
Key
,
item
.
Value
,
RegexOptions
.
IgnoreCase
);
}
logger
.
LogInformation
(
"获取医生收入sql: "
+
execsql
+
"\n配置:"
+
JsonHelper
.
Serialize
(
config
));
var
result
=
connection
.
Query
<
IncomeDataDto
>(
execsql
,
commandTimeout
:
20000
);
return
result
;
}
var
result
=
connection
.
Query
<
IncomeDataDto
>(
execsql
,
commandTimeout
:
20000
);
return
result
;
}
catch
(
Exception
ex
)
{
logger
.
LogError
(
"获取医生收入时发生异常: "
+
ex
.
ToString
());
}
return
new
List
<
IncomeDataDto
>();
}
private
string
CreateExcel
(
int
hospitalId
,
Dictionary
<
string
,
List
<
IncomeDataDto
>>
dataDict
)
...
...
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