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
1987d1a7
Commit
1987d1a7
authored
Aug 04, 2021
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改提取日志
parent
dd95d912
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
performance/Performance.Services/ExtractExcelService/DictionaryService.cs
+3
-1
No files found.
performance/Performance.Services/ExtractExcelService/DictionaryService.cs
View file @
1987d1a7
...
...
@@ -62,12 +62,12 @@ public void Handler(int hospitalId, per_allot allot, string groupName, bool isSi
var
types
=
extypeRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
&&
new
int
[]
{
(
int
)
SheetType
.
Employee
,
(
int
)
SheetType
.
OnlyExtract
}.
Contains
(
t
.
Source
));
if
(
types
!=
null
&&
types
.
Any
())
{
logService
.
ReturnTheLog
(
allot
.
ID
,
groupName
,
2
,
"提取数据"
,
$"提取人员信息数据"
,
isSingle
:
isSingle
);
var
scripts
=
exscriptRepository
.
GetEntities
(
t
=>
types
.
Select
(
s
=>
s
.
Id
).
Contains
(
t
.
TypeId
)
&&
t
.
IsEnable
==
1
);
if
(
scripts
!=
null
&&
scripts
.
Any
())
{
if
(
types
.
Any
(
t
=>
t
.
Source
==
(
int
)
SheetType
.
Employee
))
//人员字典抽取配置
{
logService
.
ReturnTheLog
(
allot
.
ID
,
groupName
,
2
,
"提取数据"
,
$"提取人员信息数据"
,
isSingle
:
isSingle
);
var
typeIds
=
types
.
Where
(
t
=>
t
.
Source
==
(
int
)
SheetType
.
Employee
).
Select
(
t
=>
t
.
Id
);
var
script
=
scripts
.
FirstOrDefault
(
t
=>
typeIds
.
Contains
(
t
.
TypeId
));
if
(
script
!=
null
)
...
...
@@ -75,6 +75,7 @@ public void Handler(int hospitalId, per_allot allot, string groupName, bool isSi
}
if
(
types
.
Any
(
t
=>
t
.
Source
==
(
int
)
SheetType
.
OnlyExtract
))
//不写入Excel的提取数据
{
logService
.
ReturnTheLog
(
allot
.
ID
,
groupName
,
2
,
"提取数据"
,
$"提取通用工作量数据"
,
isSingle
:
isSingle
);
foreach
(
var
type
in
types
.
Where
(
t
=>
t
.
Source
==
(
int
)
SheetType
.
OnlyExtract
))
{
var
thisTypeScripts
=
scripts
.
Where
(
t
=>
t
.
TypeId
==
type
.
Id
);
...
...
@@ -82,6 +83,7 @@ public void Handler(int hospitalId, per_allot allot, string groupName, bool isSi
foreach
(
var
script
in
thisTypeScripts
)
{
logger
.
LogInformation
(
$"提取sql:
{
script
.
ExecScript
}
"
);
ExResult
(
allot
,
configs
.
FirstOrDefault
(
t
=>
t
.
Id
==
script
.
ConfigId
),
script
.
ExecScript
,
type
.
EName
);
}
}
...
...
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