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
f0358673
Commit
f0358673
authored
Jun 05, 2019
by
李承祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同一家医院匹配核算单元
parent
b86bc909
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
performance/Performance.Repository/Repository/PerforImdataRepository.cs
+3
-3
performance/Performance.Services/ExtractService.cs
+2
-1
No files found.
performance/Performance.Repository/Repository/PerforImdataRepository.cs
View file @
f0358673
...
...
@@ -18,11 +18,11 @@ public PerforImdataRepository(PerformanceDbContext context) : base(context)
{
}
public
IEnumerable
<
im_data
>
GetAccountingUnit
(
List
<
int
>
sheetList
,
List
<
string
>
deptList
)
public
IEnumerable
<
im_data
>
GetAccountingUnit
(
List
<
int
>
sheetList
,
List
<
string
>
deptList
,
List
<
int
>
allotList
)
{
string
sql
=
"select distinct accountingUnit,department,unittype from im_data "
+
"where sheetid in @sheetList and department in @deptList"
;
return
DapperQuery
(
sql
,
new
{
sheetList
,
deptList
},
1000
*
60
*
5
);
"where sheetid in @sheetList and department in @deptList
and allotid in @allotList
"
;
return
DapperQuery
(
sql
,
new
{
sheetList
,
deptList
,
allotList
},
1000
*
60
*
5
);
}
}
}
performance/Performance.Services/ExtractService.cs
View file @
f0358673
...
...
@@ -338,7 +338,8 @@ private bool WriteExcel(string newpath, string originalPath, List<PerSheet> shee
//用于查询核算单元
var
deptList
=
dataList
.
Where
(
t
=>
t
.
ColumnName
==
"科室名称"
).
Select
(
t
=>
t
.
Value
.
ToString
()).
Distinct
().
ToList
();
var
sheetIdList
=
perforPersheetRepository
.
GetEntities
(
t
=>
t
.
SheetType
==
(
int
)
sheet
.
SheetType
).
Select
(
t
=>
t
.
ID
).
ToList
();
var
imdata
=
perforImdataRepository
.
GetAccountingUnit
(
sheetIdList
,
deptList
);
var
allotIdList
=
perforPerallotRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
).
Select
(
t
=>
t
.
ID
).
ToList
();
var
imdata
=
perforImdataRepository
.
GetAccountingUnit
(
sheetIdList
,
deptList
,
allotIdList
);
//创建数据行
foreach
(
var
pointRow
in
dataList
.
Select
(
t
=>
t
.
RowNumber
).
Distinct
().
OrderBy
(
t
=>
t
))
...
...
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