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
4591d836
Commit
4591d836
authored
Apr 29, 2021
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
抽取数据时4.1不进行数据清除
parent
88d2bab9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
performance/Performance.Services/ExtractExcelService/ExtractService.cs
+2
-3
No files found.
performance/Performance.Services/ExtractExcelService/ExtractService.cs
View file @
4591d836
...
@@ -139,7 +139,7 @@ private void WriteDataToFile(IWorkbook workbook, per_allot allot, Dictionary<ExD
...
@@ -139,7 +139,7 @@ private void WriteDataToFile(IWorkbook workbook, per_allot allot, Dictionary<ExD
logger
.
LogInformation
(
$"allotId:
{
allot
.
ID
}
: 总金额 -
{
extractDto
?.
Sum
(
s
=>
s
.
Value
??
0
)}
"
);
logger
.
LogInformation
(
$"allotId:
{
allot
.
ID
}
: 总金额 -
{
extractDto
?.
Sum
(
s
=>
s
.
Value
??
0
)}
"
);
WriteDataFactory
factory
=
new
WriteDataFactory
();
WriteDataFactory
factory
=
new
WriteDataFactory
();
var
types
=
new
List
<
SheetType
>
{
SheetType
.
OtherIncome
,
SheetType
.
Income
,
SheetType
.
Expend
,
SheetType
.
Workload
,
SheetType
.
OtherWorkload
,
SheetType
.
AccountBasic
};
var
types
=
new
List
<
SheetType
>
{
SheetType
.
OtherIncome
,
SheetType
.
Income
,
SheetType
.
Expend
,
SheetType
.
Workload
,
SheetType
.
OtherWorkload
/*, SheetType.AccountBasic*/
};
decimal
ratio
=
60
m
;
decimal
ratio
=
60
m
;
for
(
int
sheetIndex
=
0
;
sheetIndex
<
workbook
.
NumberOfSheets
;
sheetIndex
++)
for
(
int
sheetIndex
=
0
;
sheetIndex
<
workbook
.
NumberOfSheets
;
sheetIndex
++)
{
{
...
@@ -242,7 +242,7 @@ private List<ExtractTransDto> StandDataFormat(int hospitalId, List<ex_result> re
...
@@ -242,7 +242,7 @@ private List<ExtractTransDto> StandDataFormat(int hospitalId, List<ex_result> re
InpatTechnicAccounting
=
t
.
inner
.
FirstOrDefault
(
f
=>
f
.
Department
==
dept
)?.
InpatTechnicAccounting
?.
AccountingUnit
,
InpatTechnicAccounting
=
t
.
inner
.
FirstOrDefault
(
f
=>
f
.
Department
==
dept
)?.
InpatTechnicAccounting
?.
AccountingUnit
,
};
};
});
});
logger
.
LogInformation
(
"************抽取结果1***************: "
+
JsonHelper
.
Serialize
(
data
.
Where
(
t
=>
t
.
Department
==
"一病区(外科一)"
&&
t
.
Category
==
"CT费"
)));
var
groupdata
=
data
.
GroupBy
(
t
=>
new
{
t
.
Department
,
t
.
Category
,
t
.
SheetName
}).
Select
(
t
=>
new
ExtractTransDto
var
groupdata
=
data
.
GroupBy
(
t
=>
new
{
t
.
Department
,
t
.
Category
,
t
.
SheetName
}).
Select
(
t
=>
new
ExtractTransDto
{
{
SheetName
=
t
.
Key
.
SheetName
,
SheetName
=
t
.
Key
.
SheetName
,
...
@@ -256,7 +256,6 @@ private List<ExtractTransDto> StandDataFormat(int hospitalId, List<ex_result> re
...
@@ -256,7 +256,6 @@ private List<ExtractTransDto> StandDataFormat(int hospitalId, List<ex_result> re
InpatNurseAccounting
=
t
.
First
().
InpatNurseAccounting
,
InpatNurseAccounting
=
t
.
First
().
InpatNurseAccounting
,
InpatTechnicAccounting
=
t
.
First
().
InpatTechnicAccounting
,
InpatTechnicAccounting
=
t
.
First
().
InpatTechnicAccounting
,
});
});
logger
.
LogInformation
(
"************抽取结果2***************: "
+
JsonHelper
.
Serialize
(
groupdata
.
Where
(
t
=>
t
.
Department
==
"一病区(外科一)"
&&
t
.
Category
==
"CT费"
)));
return
groupdata
.
ToList
();
return
groupdata
.
ToList
();
}
}
...
...
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