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
83b29100
Commit
83b29100
authored
Mar 17, 2022
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release/v22.1.24' into release/v22.2.10-Beta-ninghai
parents
46924e28
b1c1e8dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
performance/Performance.Services/EmployeeService.cs
+1
-1
performance/Performance.Services/RedistributionService.cs
+7
-1
No files found.
performance/Performance.Services/EmployeeService.cs
View file @
83b29100
...
...
@@ -1502,7 +1502,7 @@ public void CheckGatherData(int allotId, SaveGatherData saveGather)
var
departments
=
perdeptdicRepository
.
GetEntities
(
w
=>
w
.
HospitalId
==
allot
.
HospitalId
);
if
(
departments
==
null
||
!
departments
.
Any
())
throw
new
PerformanceException
(
"未配置科室字典"
);
var
notExistsDeptData
=
data
.
Where
(
w
=>
!
departments
.
Select
(
t
=>
t
.
Department
).
Contains
(
w
[
0
]));
var
notExistsDeptData
=
data
.
Where
(
w
=>
!
departments
.
Select
(
t
=>
t
.
HISDeptName
).
Contains
(
w
[
0
]));
if
(
notExistsDeptData
!=
null
&&
notExistsDeptData
.
Any
())
throw
new
PerformanceException
(
$"科室字典中不存在科室[
{
string
.
Join
(
","
,
notExistsDeptData
.
Select
(
t
=>
t
[
0
]).
Distinct
())}
]"
);
...
...
performance/Performance.Services/RedistributionService.cs
View file @
83b29100
...
...
@@ -39,6 +39,7 @@ public class RedistributionService : IAutoInjection
private
readonly
PerforAgworkloadRepository
_agworkloadRepository
;
private
readonly
PerforAgworkloadsourceRepository
_agworkloadsourceRepository
;
private
readonly
PerforAgworkloadtypeRepository
_agworkloadtypeRepository
;
private
readonly
PerforImemployeeclinicRepository
_imemployeeclinicRepository
;
private
readonly
PerforImemployeelogisticsRepository
_imemployeelogisticsRepository
;
public
RedistributionService
(
...
...
@@ -59,6 +60,7 @@ public class RedistributionService : IAutoInjection
PerforAgworkloadRepository
agworkloadRepository
,
PerforAgworkloadsourceRepository
agworkloadsourceRepository
,
PerforAgworkloadtypeRepository
agworkloadtypeRepository
,
PerforImemployeeclinicRepository
imemployeeclinicRepository
,
PerforImemployeelogisticsRepository
imemployeelogisticsRepository
)
{
_logger
=
logger
;
...
...
@@ -78,6 +80,7 @@ public class RedistributionService : IAutoInjection
_agworkloadRepository
=
agworkloadRepository
;
_agworkloadsourceRepository
=
agworkloadsourceRepository
;
_agworkloadtypeRepository
=
agworkloadtypeRepository
;
_imemployeeclinicRepository
=
imemployeeclinicRepository
;
_imemployeelogisticsRepository
=
imemployeelogisticsRepository
;
}
#
endregion
...
...
@@ -393,7 +396,10 @@ public List<SecondColumnDictionary> GetTableHeaderDictionary(ComputeMode compute
var
refAvg
=
0
m
;
if
(
Enum
.
TryParse
(
typeof
(
UnitType
),
second
.
UnitType
,
true
,
out
object
unittype
))
{
var
rescompute
=
_resaccountRepository
.
GetEntity
(
w
=>
w
.
AccountingUnit
==
second
.
Department
&&
w
.
UnitType
==
(
int
)((
UnitType
)
unittype
));
// 优先取 业务中层实际人均绩效 否则 取 科室人均
var
empolyee
=
_imemployeeclinicRepository
.
GetEntity
(
w
=>
w
.
AllotID
==
allot
.
ID
&&
w
.
AccountingUnit
==
second
.
Department
&&
w
.
UnitType
==
second
.
UnitType
);
var
rescompute
=
_resaccountRepository
.
GetEntity
(
w
=>
w
.
AllotID
==
allot
.
ID
&&
w
.
AccountingUnit
==
second
.
Department
&&
w
.
UnitType
==
(
int
)((
UnitType
)
unittype
));
var
avg
=
(
empolyee
!=
null
&&
empolyee
.
FitPeopleValue
.
HasValue
)
?
empolyee
.
FitPeopleValue
:
rescompute
?.
Avg
??
0
;
refAvg
=
rescompute
?.
Avg
??
0
;
}
head
.
AddOrUpdate
(
"RefAvg"
,
Math
.
Round
(
refAvg
,
0
,
MidpointRounding
.
AwayFromZero
));
...
...
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