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
cf5db7db
Commit
cf5db7db
authored
May 31, 2022
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合并冲突报错修复
parent
beed87e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
36 deletions
+8
-36
performance/Performance.Services/ExtractExcelService/ExtractService.cs
+7
-7
performance/Performance.Services/PersonService.cs
+1
-29
No files found.
performance/Performance.Services/ExtractExcelService/ExtractService.cs
View file @
cf5db7db
...
...
@@ -322,13 +322,13 @@ private List<ExtractTransDto> StandDataFormat(int hospitalId, int allotId, List<
DoctorName
=
item
.
DoctorName
,
PersonnelNumber
=
item
.
PersonnelNumber
,
Value
=
item
.
Fee
??
0
,
OutDoctorAccounting
=
firstDic
?.
OutDoctorAccounting
?.
AccountingUnit
,
OutNurseAccounting
=
firstDic
?.
OutNurseAccounting
?.
AccountingUnit
,
OutTechnicAccounting
=
firstDic
?.
OutTechnicAccounting
?.
AccountingUnit
,
InpatDoctorAccounting
=
firstDic
?.
InpatDoctorAccounting
?.
AccountingUnit
,
InpatNurseAccounting
=
firstDic
?.
InpatNurseAccounting
?.
AccountingUnit
,
InpatTechnicAccounting
=
firstDic
?.
InpatTechnicAccounting
?.
AccountingUnit
,
SpecialAccounting
=
firstDic
?.
SpecialAccounting
?.
AccountingUnit
??
dept
,
OutDoctorAccounting
=
firstDic
?.
OutDoctorAccounting
,
OutNurseAccounting
=
firstDic
?.
OutNurseAccounting
,
OutTechnicAccounting
=
firstDic
?.
OutTechnicAccounting
,
InpatDoctorAccounting
=
firstDic
?.
InpatDoctorAccounting
,
InpatNurseAccounting
=
firstDic
?.
InpatNurseAccounting
,
InpatTechnicAccounting
=
firstDic
?.
InpatTechnicAccounting
,
SpecialAccounting
=
firstDic
?.
SpecialAccounting
??
dept
,
EName
=
types
.
FirstOrDefault
(
w
=>
w
.
Id
==
item
.
TypeId
)?.
EName
,
};
data
.
Add
(
d
);
...
...
performance/Performance.Services/PersonService.cs
View file @
cf5db7db
...
...
@@ -423,7 +423,7 @@ public IEnumerable<DeptdicResponse> GetDepartments(int allotId)
var
allot
=
perallotRepository
.
GetEntity
(
t
=>
t
.
ID
==
allotId
);
if
(
allot
==
null
||
!
depts
.
Any
())
return
null
;
Func
<
per_dept_dic
,
Deptdic
>
getDeptdic
=
(
dic
)
=>
new
Deptdic
{
Id
=
dic
?.
Id
??
0
,
IsVerify
=
dic
?.
IsVerify
??
1
,
AccountingUnit
=
dic
?.
AccountingUnit
,
VerifyMessage
=
dic
?.
VerifyMessage
,
}
;
Func
<
per_dept_dic
,
string
>
getDeptdic
=
(
dic
)
=>
dic
?.
AccountingUnit
;
var
result
=
depts
.
GroupBy
(
t
=>
new
{
t
.
HISDeptName
,
t
.
Department
}).
Select
(
t
=>
new
DeptdicResponse
{
AllotId
=
allotId
,
...
...
@@ -442,34 +442,6 @@ public IEnumerable<DeptdicResponse> GetDepartments(int allotId)
IsVerify
=
t
.
Min
(
w
=>
w
.
IsVerify
)
??
1
,
});
}
var
dic
=
dics
.
FirstOrDefault
(
group
=>
group
.
Department
==
department
&&
group
.
HISDeptName
==
hISDeptName
&&
group
.
UnitType
==
unitType
.
ToString
()
&&
group
.
Source
==
source
);
if
(
dic
==
null
)
dic
=
dics
.
FirstOrDefault
(
group
=>
group
.
Department
==
department
&&
group
.
HISDeptName
==
hISDeptName
&&
group
.
UnitType
==
unitType
.
ToString
());
return
dic
?.
AccountingUnit
;
}
var
result
=
depts
.
GroupBy
(
t
=>
new
{
t
.
HISDeptName
,
t
.
Department
})
.
Select
(
t
=>
new
DeptdicResponse
{
HospitalId
=
hospitalId
,
HISDeptName
=
t
.
Key
.
HISDeptName
,
Department
=
t
.
Key
.
Department
,
OutDoctorAccounting
=
GetDeptdic
(
t
.
ToList
(),
t
.
Key
.
Department
,
t
.
Key
.
HISDeptName
,
UnitType
.
医生组
,
"门诊"
),
OutNurseAccounting
=
GetDeptdic
(
t
.
ToList
(),
t
.
Key
.
Department
,
t
.
Key
.
HISDeptName
,
UnitType
.
护理组
,
"门诊"
),
OutTechnicAccounting
=
GetDeptdic
(
t
.
ToList
(),
t
.
Key
.
Department
,
t
.
Key
.
HISDeptName
,
UnitType
.
医技组
,
"门诊"
),
InpatDoctorAccounting
=
GetDeptdic
(
t
.
ToList
(),
t
.
Key
.
Department
,
t
.
Key
.
HISDeptName
,
UnitType
.
医生组
,
"住院"
),
InpatNurseAccounting
=
GetDeptdic
(
t
.
ToList
(),
t
.
Key
.
Department
,
t
.
Key
.
HISDeptName
,
UnitType
.
护理组
,
"住院"
),
InpatTechnicAccounting
=
GetDeptdic
(
t
.
ToList
(),
t
.
Key
.
Department
,
t
.
Key
.
HISDeptName
,
UnitType
.
医技组
,
"住院"
),
LogisticsAccounting
=
GetDeptdic
(
t
.
ToList
(),
t
.
Key
.
Department
,
t
.
Key
.
HISDeptName
,
UnitType
.
行政后勤
),
SpecialAccounting
=
GetDeptdic
(
t
.
ToList
(),
t
.
Key
.
Department
,
t
.
Key
.
HISDeptName
,
UnitType
.
特殊核算组
),
CreateTime
=
t
.
Max
(
group
=>
group
.
CreateTime
),
IsVerify
=
t
.
Min
(
w
=>
w
.
IsVerify
)
??
1
,
});
return
result
.
OrderBy
(
w
=>
w
.
IsVerify
).
ThenByDescending
(
t
=>
t
.
CreateTime
).
ThenBy
(
t
=>
t
.
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