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
45af3feb
Commit
45af3feb
authored
Aug 15, 2022
by
Licx
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release/v22.4.18-Beta-wuzhou' into develop
parents
829748d3
56185588
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
9 deletions
+35
-9
performance/Performance.DtoModels/Response/DeptdicResponse.cs
+8
-8
performance/Performance.Services/ExtractExcelService/ExtractService.cs
+27
-1
No files found.
performance/Performance.DtoModels/Response/DeptdicResponse.cs
View file @
45af3feb
...
@@ -10,14 +10,14 @@ public class DeptdicResponse
...
@@ -10,14 +10,14 @@ public class DeptdicResponse
public
int
HospitalId
{
get
;
set
;
}
public
int
HospitalId
{
get
;
set
;
}
public
string
HISDeptName
{
get
;
set
;
}
public
string
HISDeptName
{
get
;
set
;
}
public
string
Department
{
get
;
set
;
}
public
string
Department
{
get
;
set
;
}
public
Deptdic
OutDoctorAccounting
{
get
;
set
;
}
public
Deptdic
OutDoctorAccounting
{
get
;
set
;
}
=
new
Deptdic
();
public
Deptdic
OutNurseAccounting
{
get
;
set
;
}
public
Deptdic
OutNurseAccounting
{
get
;
set
;
}
=
new
Deptdic
();
public
Deptdic
OutTechnicAccounting
{
get
;
set
;
}
public
Deptdic
OutTechnicAccounting
{
get
;
set
;
}
=
new
Deptdic
();
public
Deptdic
InpatDoctorAccounting
{
get
;
set
;
}
public
Deptdic
InpatDoctorAccounting
{
get
;
set
;
}
=
new
Deptdic
();
public
Deptdic
InpatNurseAccounting
{
get
;
set
;
}
public
Deptdic
InpatNurseAccounting
{
get
;
set
;
}
=
new
Deptdic
();
public
Deptdic
InpatTechnicAccounting
{
get
;
set
;
}
public
Deptdic
InpatTechnicAccounting
{
get
;
set
;
}
=
new
Deptdic
();
public
Deptdic
LogisticsAccounting
{
get
;
set
;
}
public
Deptdic
LogisticsAccounting
{
get
;
set
;
}
=
new
Deptdic
();
public
Deptdic
SpecialAccounting
{
get
;
set
;
}
public
Deptdic
SpecialAccounting
{
get
;
set
;
}
=
new
Deptdic
();
public
DateTime
?
CreateTime
{
get
;
set
;
}
public
DateTime
?
CreateTime
{
get
;
set
;
}
public
int
IsVerify
{
get
;
set
;
}
public
int
IsVerify
{
get
;
set
;
}
}
}
...
...
performance/Performance.Services/ExtractExcelService/ExtractService.cs
View file @
45af3feb
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
using
System.Data
;
using
System.Data
;
using
System.IO
;
using
System.IO
;
using
System.Linq
;
using
System.Linq
;
using
System.Linq.Expressions
;
namespace
Performance.Services.ExtractExcelService
namespace
Performance.Services.ExtractExcelService
{
{
...
@@ -321,7 +322,32 @@ private List<ExtractTransDto> StandDataFormat(int hospitalId, int allotId, List<
...
@@ -321,7 +322,32 @@ private List<ExtractTransDto> StandDataFormat(int hospitalId, int allotId, List<
.
GroupJoin
(
dict
,
outer
=>
new
{
Department
=
outer
.
Department
},
inner
=>
new
{
Department
=
inner
.
HISDeptName
},
(
outer
,
inner
)
=>
new
{
outer
,
inner
})
.
GroupJoin
(
dict
,
outer
=>
new
{
Department
=
outer
.
Department
},
inner
=>
new
{
Department
=
inner
.
HISDeptName
},
(
outer
,
inner
)
=>
new
{
outer
,
inner
})
.
Select
(
t
=>
.
Select
(
t
=>
{
{
var
dept
=
!
string
.
IsNullOrEmpty
(
t
.
inner
.
FirstOrDefault
()?.
Department
)
?
t
.
inner
.
FirstOrDefault
()?.
Department
:
t
.
outer
.
Department
;
Func
<
DeptdicResponse
,
bool
>
exp
=
t
.
outer
.
Source
.
StartsWith
(
"3.1"
)
?
(
e
)
=>
!
string
.
IsNullOrEmpty
(
e
.
InpatDoctorAccounting
.
AccountingUnit
)
||
!
string
.
IsNullOrEmpty
(
e
.
OutDoctorAccounting
.
AccountingUnit
)
||
!
string
.
IsNullOrEmpty
(
e
.
InpatTechnicAccounting
.
AccountingUnit
)
||
!
string
.
IsNullOrEmpty
(
e
.
OutTechnicAccounting
.
AccountingUnit
)
:
(
exp
=
t
.
outer
.
Source
.
StartsWith
(
"3.2"
)
?
(
e
)
=>
!
string
.
IsNullOrEmpty
(
e
.
InpatNurseAccounting
.
AccountingUnit
)
||
!
string
.
IsNullOrEmpty
(
e
.
OutNurseAccounting
.
AccountingUnit
)
:
(
e
)
=>
true
);
#
region
根据
sheet
区分医生或者护理(暂时不做处理)
//Func<DeptdicResponse, bool> exp =
// exp = (t.outer.Source.Contains("护士") || t.outer.Source.Contains("护理"))
// ? (e) => !string.IsNullOrEmpty(e.InpatNurseAccounting.AccountingUnit) || !string.IsNullOrEmpty(e.OutNurseAccounting.AccountingUnit)
// : (e) => !string.IsNullOrEmpty(e.InpatDoctorAccounting.AccountingUnit)
// || !string.IsNullOrEmpty(e.OutDoctorAccounting.AccountingUnit)
// || !string.IsNullOrEmpty(e.InpatTechnicAccounting.AccountingUnit)
// || !string.IsNullOrEmpty(e.OutTechnicAccounting.AccountingUnit)
// || !string.IsNullOrEmpty(e.SpecialAccounting.AccountingUnit);
#
endregion
var
dept
=
!
string
.
IsNullOrEmpty
(
t
.
inner
.
FirstOrDefault
(
exp
)?.
Department
)
?
t
.
inner
.
FirstOrDefault
(
exp
)?.
Department
:
t
.
outer
.
Department
;
if
(
scripts
.
Any
(
w
=>
w
.
TypeId
==
t
.
outer
.
TypeId
&&
w
.
IsOrgDepartment
==
1
))
if
(
scripts
.
Any
(
w
=>
w
.
TypeId
==
t
.
outer
.
TypeId
&&
w
.
IsOrgDepartment
==
1
))
dept
=
t
.
outer
.
Department
;
dept
=
t
.
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