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
b28087cf
Commit
b28087cf
authored
Jun 08, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
880cb1ef
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
performance/Performance.Services/DFExtractService1.cs
+3
-3
No files found.
performance/Performance.Services/DFExtractService1.cs
View file @
b28087cf
...
...
@@ -149,7 +149,7 @@ public string ExtractData(int allotId, string email, int hospitalId, string file
private
List
<
ex_result
>
ExtractIncome
<
TEntity
>(
List
<
TEntity
>
entities
,
List
<
ex_script
>
scripts
,
List
<
sys_hospitalconfig
>
configs
,
per_allot
allot
)
{
var
data
=
new
List
<
ex_result
>();
var
modules
=
entities
?.
Select
(
t
=>
t
as
ex_module
)
;
var
modules
=
entities
as
List
<
ex_module
>
;
if
(
modules
==
null
||
!
modules
.
Any
(
t
=>
t
.
SheetType
==
(
int
)
SheetType
.
Income
&&
t
.
TypeId
>
0
))
return
data
;
...
...
@@ -181,7 +181,7 @@ private List<ex_result> ExtractIncome<TEntity>(List<TEntity> entities, List<ex_s
private
List
<
ex_result
>
ExtractItems
<
TEntity
>(
List
<
TEntity
>
entities
,
List
<
ex_script
>
scripts
,
List
<
sys_hospitalconfig
>
configs
,
per_allot
allot
,
List
<
ex_module
>
modules
)
{
var
data
=
new
List
<
ex_result
>();
var
items
=
entities
?.
Select
(
t
=>
t
as
ex_item
)
;
var
items
=
entities
as
List
<
ex_item
>
;
if
(
items
==
null
||
!
items
.
Any
(
t
=>
t
.
TypeId
>
0
))
return
data
;
...
...
@@ -216,7 +216,7 @@ private List<ex_result> ExtractItems<TEntity>(List<TEntity> entities, List<ex_sc
private
List
<
ex_result
>
ExtractSpcial
<
TEntity
>(
List
<
TEntity
>
entities
,
List
<
ex_script
>
scripts
,
List
<
sys_hospitalconfig
>
configs
,
per_allot
allot
)
{
var
data
=
new
List
<
ex_result
>();
var
specials
=
entities
?.
Select
(
t
=>
t
as
ex_special
)
;
var
specials
=
entities
as
List
<
ex_special
>
;
if
(
specials
==
null
||
!
specials
.
Any
(
t
=>
t
.
TypeId
>
0
))
return
data
;
...
...
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