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
aaba54e6
Commit
aaba54e6
authored
Jun 04, 2021
by
lcx
Browse files
Options
Browse Files
Download
Plain Diff
Merge tag '抽取bug修复' into develop
parents
95cb5120
5d68f3a9
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
2 deletions
+9
-2
performance/Performance.Services/ExtractExcelService/ExtractDtos/ExtractTransDto.cs
+5
-0
performance/Performance.Services/ExtractExcelService/ExtractService.cs
+2
-0
performance/Performance.Services/ExtractExcelService/SheetDataWrite/AccountBasicDataWrite.cs
+1
-1
performance/Performance.Services/ExtractExcelService/SheetDataWrite/SpecialUnitDataWrite.cs
+1
-1
No files found.
performance/Performance.Services/ExtractExcelService/ExtractDtos/ExtractTransDto.cs
View file @
aaba54e6
...
@@ -68,5 +68,10 @@ public class ExtractTransDto
...
@@ -68,5 +68,10 @@ public class ExtractTransDto
/// 核算单元(住院医技)
/// 核算单元(住院医技)
/// </summary>
/// </summary>
public
string
InpatTechnicAccounting
{
get
;
set
;
}
public
string
InpatTechnicAccounting
{
get
;
set
;
}
/// <summary>
/// 特殊核算组
/// </summary>
public
string
SpecialAccounting
{
get
;
set
;
}
}
}
}
}
performance/Performance.Services/ExtractExcelService/ExtractService.cs
View file @
aaba54e6
...
@@ -271,6 +271,7 @@ private List<ExtractTransDto> StandDataFormat(int hospitalId, List<ex_result> re
...
@@ -271,6 +271,7 @@ private List<ExtractTransDto> StandDataFormat(int hospitalId, List<ex_result> re
InpatDoctorAccounting
=
t
.
inner
.
FirstOrDefault
(
f
=>
f
.
Department
==
dept
)?.
InpatDoctorAccounting
?.
AccountingUnit
,
InpatDoctorAccounting
=
t
.
inner
.
FirstOrDefault
(
f
=>
f
.
Department
==
dept
)?.
InpatDoctorAccounting
?.
AccountingUnit
,
InpatNurseAccounting
=
t
.
inner
.
FirstOrDefault
(
f
=>
f
.
Department
==
dept
)?.
InpatNurseAccounting
?.
AccountingUnit
,
InpatNurseAccounting
=
t
.
inner
.
FirstOrDefault
(
f
=>
f
.
Department
==
dept
)?.
InpatNurseAccounting
?.
AccountingUnit
,
InpatTechnicAccounting
=
t
.
inner
.
FirstOrDefault
(
f
=>
f
.
Department
==
dept
)?.
InpatTechnicAccounting
?.
AccountingUnit
,
InpatTechnicAccounting
=
t
.
inner
.
FirstOrDefault
(
f
=>
f
.
Department
==
dept
)?.
InpatTechnicAccounting
?.
AccountingUnit
,
SpecialAccounting
=
t
.
inner
.
FirstOrDefault
(
f
=>
f
.
Department
==
dept
)?.
SpecialAccounting
?.
AccountingUnit
??
dept
,
};
};
});
});
...
@@ -286,6 +287,7 @@ private List<ExtractTransDto> StandDataFormat(int hospitalId, List<ex_result> re
...
@@ -286,6 +287,7 @@ private List<ExtractTransDto> StandDataFormat(int hospitalId, List<ex_result> re
InpatDoctorAccounting
=
t
.
First
().
InpatDoctorAccounting
,
InpatDoctorAccounting
=
t
.
First
().
InpatDoctorAccounting
,
InpatNurseAccounting
=
t
.
First
().
InpatNurseAccounting
,
InpatNurseAccounting
=
t
.
First
().
InpatNurseAccounting
,
InpatTechnicAccounting
=
t
.
First
().
InpatTechnicAccounting
,
InpatTechnicAccounting
=
t
.
First
().
InpatTechnicAccounting
,
SpecialAccounting
=
t
.
First
().
SpecialAccounting
});
});
return
groupdata
.
ToList
();
return
groupdata
.
ToList
();
...
...
performance/Performance.Services/ExtractExcelService/SheetDataWrite/AccountBasicDataWrite.cs
View file @
aaba54e6
...
@@ -46,7 +46,7 @@ public void WriteSheetData(ISheet sheet, PerSheetPoint point, SheetType sheetTyp
...
@@ -46,7 +46,7 @@ public void WriteSheetData(ISheet sheet, PerSheetPoint point, SheetType sheetTyp
var
tuples
=
GetAccountingUnitDataNonexistent
(
sheet
,
point
,
accountingUnits
);
var
tuples
=
GetAccountingUnitDataNonexistent
(
sheet
,
point
,
accountingUnits
);
accountingUnits
=
accountingUnits
.
Where
(
t
=>
!
t
.
AccountingUnit
.
Contains
(
"非核算"
))?.
ToList
();
accountingUnits
=
accountingUnits
.
Where
(
t
=>
!
t
.
AccountingUnit
.
Contains
(
"非核算"
)
&&
!
t
.
AccountingUnit
.
Contains
(
"0"
)
&&
!
string
.
IsNullOrEmpty
(
t
.
AccountingUnit
)
)?.
ToList
();
if
(
accountingUnits
!=
null
&&
accountingUnits
.
Any
())
if
(
accountingUnits
!=
null
&&
accountingUnits
.
Any
())
WriteAccountingUnitDataNonexistent
(
sheet
,
point
,
style
,
accountingUnits
,
tuples
);
WriteAccountingUnitDataNonexistent
(
sheet
,
point
,
style
,
accountingUnits
,
tuples
);
...
...
performance/Performance.Services/ExtractExcelService/SheetDataWrite/SpecialUnitDataWrite.cs
View file @
aaba54e6
...
@@ -45,7 +45,7 @@ public void WriteSheetData(ISheet sheet, PerSheetPoint point, SheetType sheetTyp
...
@@ -45,7 +45,7 @@ public void WriteSheetData(ISheet sheet, PerSheetPoint point, SheetType sheetTyp
var
index
=
columns
.
IndexOf
(
SpecialUnitColumns
.
Department
);
var
index
=
columns
.
IndexOf
(
SpecialUnitColumns
.
Department
);
var
needMergedRegions
=
mergedRegions
.
Where
(
t
=>
t
.
FirstColumn
==
index
&&
t
.
LastColumn
==
index
)?.
ToList
()
??
new
List
<
SpecialCellRange
>();
var
needMergedRegions
=
mergedRegions
.
Where
(
t
=>
t
.
FirstColumn
==
index
&&
t
.
LastColumn
==
index
)?.
ToList
()
??
new
List
<
SpecialCellRange
>();
var
specials
=
exSpecials
.
GroupJoin
(
extractDto
,
outer
=>
new
{
outer
.
Department
,
outer
.
Target
},
inner
=>
new
{
Department
=
inner
.
InpatDoctorAccounting
,
Target
=
inner
.
Category
},
var
specials
=
exSpecials
.
GroupJoin
(
extractDto
,
outer
=>
new
{
outer
.
Department
,
outer
.
Target
},
inner
=>
new
{
Department
=
inner
.
Department
,
Target
=
inner
.
Category
},
(
outer
,
inner
)
=>
new
SpecialDto
(
outer
,
inner
)
=>
new
SpecialDto
{
{
Department
=
outer
.
Department
,
Department
=
outer
.
Department
,
...
...
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