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
39985a14
Commit
39985a14
authored
Jul 08, 2021
by
lcx
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/自定义模板抽取' into develop
parents
f59f0a4e
9d7b3e78
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
performance/Performance.Services/ExtractExcelService/DictionaryService.cs
+1
-0
performance/Performance.Services/ExtractExcelService/ExtractService.cs
+3
-0
performance/Performance.Services/ExtractExcelService/QueryService.cs
+1
-3
No files found.
performance/Performance.Services/ExtractExcelService/DictionaryService.cs
View file @
39985a14
...
@@ -74,6 +74,7 @@ public void Handler(int hospitalId, per_allot allot, string groupName, bool isSi
...
@@ -74,6 +74,7 @@ public void Handler(int hospitalId, per_allot allot, string groupName, bool isSi
if
(
hisScrips
==
null
||
!
hisScrips
.
Any
())
return
;
if
(
hisScrips
==
null
||
!
hisScrips
.
Any
())
return
;
foreach
(
var
item
in
hisScrips
)
foreach
(
var
item
in
hisScrips
)
{
{
logService
.
ReturnTheLog
(
allot
.
ID
,
groupName
,
2
,
"提取数据"
,
$"提取
{
item
.
SourceType
}
-
{
item
.
Category
}
数据"
,
isSingle
:
isSingle
);
HisData
(
allot
,
configs
.
FirstOrDefault
(
t
=>
t
.
Id
==
item
.
ConfigId
),
item
);
HisData
(
allot
,
configs
.
FirstOrDefault
(
t
=>
t
.
Id
==
item
.
ConfigId
),
item
);
}
}
}
}
...
...
performance/Performance.Services/ExtractExcelService/ExtractService.cs
View file @
39985a14
...
@@ -80,6 +80,9 @@ public string Main(int allotId, int hospitalId, string email, string groupName,
...
@@ -80,6 +80,9 @@ public string Main(int allotId, int hospitalId, string email, string groupName,
var
dict
=
new
Dictionary
<
ExDataDict
,
object
>();
var
dict
=
new
Dictionary
<
ExDataDict
,
object
>();
logService
.
ReturnTheLog
(
allotId
,
groupName
,
3
,
""
,
5
,
1
,
isSingle
);
logService
.
ReturnTheLog
(
allotId
,
groupName
,
3
,
""
,
5
,
1
,
isSingle
);
queryService
.
ClearHistoryData
(
allot
.
ID
,
groupName
,
isSingle
);
dictionaryService
.
Handler
(
hospitalId
,
allot
,
groupName
,
isSingle
);
dictionaryService
.
Handler
(
hospitalId
,
allot
,
groupName
,
isSingle
);
var
data
=
queryService
.
Handler
(
hospitalId
,
allot
,
groupName
,
isSingle
,
ref
dict
);
var
data
=
queryService
.
Handler
(
hospitalId
,
allot
,
groupName
,
isSingle
,
ref
dict
);
var
standData
=
StandDataFormat
(
hospitalId
,
data
);
var
standData
=
StandDataFormat
(
hospitalId
,
data
);
...
...
performance/Performance.Services/ExtractExcelService/QueryService.cs
View file @
39985a14
...
@@ -77,8 +77,6 @@ public List<ex_result> Handler(int hospitalId, per_allot allot, string groupName
...
@@ -77,8 +77,6 @@ public List<ex_result> Handler(int hospitalId, per_allot allot, string groupName
};
};
var
extypeIds
=
GetQueryScriptIds
(
hospitalId
,
ref
dict
);
var
extypeIds
=
GetQueryScriptIds
(
hospitalId
,
ref
dict
);
ClearHistoryData
(
allot
.
ID
,
groupName
,
isSingle
);
var
data
=
new
List
<
ex_result
>();
var
data
=
new
List
<
ex_result
>();
logService
.
ReturnTheLog
(
allot
.
ID
,
groupName
,
2
,
"提取数据"
,
$"开始提取数据"
,
isSingle
:
isSingle
);
logService
.
ReturnTheLog
(
allot
.
ID
,
groupName
,
2
,
"提取数据"
,
$"开始提取数据"
,
isSingle
:
isSingle
);
...
@@ -157,7 +155,7 @@ private List<int> GetQueryScriptIds(int hospitalId, ref Dictionary<ExDataDict, o
...
@@ -157,7 +155,7 @@ private List<int> GetQueryScriptIds(int hospitalId, ref Dictionary<ExDataDict, o
/// 清除历史抽取数据
/// 清除历史抽取数据
/// </summary>
/// </summary>
/// <param name="allotId"></param>
/// <param name="allotId"></param>
p
rivate
void
ClearHistoryData
(
int
allotId
,
string
groupName
,
bool
isSingle
)
p
ublic
void
ClearHistoryData
(
int
allotId
,
string
groupName
,
bool
isSingle
)
{
{
logService
.
ReturnTheLog
(
allotId
,
groupName
,
2
,
"清除数据"
,
$"开始清除历史提取数据"
,
1
,
isSingle
);
logService
.
ReturnTheLog
(
allotId
,
groupName
,
2
,
"清除数据"
,
$"开始清除历史提取数据"
,
1
,
isSingle
);
perallotRepository
.
ClearResultData
(
allotId
);
perallotRepository
.
ClearResultData
(
allotId
);
...
...
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