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
ba5ea1ea
Commit
ba5ea1ea
authored
Sep 04, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
特殊科室带出医院奖罚,药占比系数为空
parent
a9456eda
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
3 deletions
+34
-3
performance/Performance.Services/AllotCompute/ProcessComputService.cs
+1
-0
performance/Performance.Services/ComputeService.cs
+31
-1
performance/Performance.Services/SecondAllotService.cs
+2
-2
No files found.
performance/Performance.Services/AllotCompute/ProcessComputService.cs
View file @
ba5ea1ea
...
...
@@ -586,6 +586,7 @@ private List<CofDrugProp> GetDrugConfig(PerExcel excel, int allotid)
var
allData
=
datalist
.
GroupBy
(
t
=>
t
.
AccountingUnit
).
Select
(
t
=>
new
{
AccountingUnit
=
t
.
Key
,
SumValue
=
t
.
Sum
(
s
=>
s
.
CellValue
)
});
var
cofList
=
perforCofdrugpropRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotid
);
if
(
cofList
==
null
||
!
cofList
.
Any
())
return
cofs
;
var
unitList
=
(
drugData
?.
Select
(
t
=>
t
.
AccountingUnit
)
??
new
List
<
string
>()).
Union
(
allData
.
Select
(
t
=>
t
.
AccountingUnit
));
...
...
performance/Performance.Services/ComputeService.cs
View file @
ba5ea1ea
...
...
@@ -836,7 +836,7 @@ public DeptDataDetails SpecialDeptDetail(ag_secondallot second)
PerforFee
=
special
.
FirstOrDefault
()?.
GiveFee
,
PerforTotal
=
special
.
FirstOrDefault
()?.
ResultsTotalFee
,
Income
=
special
.
FirstOrDefault
()?.
ResultsTotalFee
,
//Extra = special.First().Punishment.Value
,
Extra
=
special
.
FirstOrDefault
()?.
Punishment
??
0
,
},
Detail
=
new
List
<
DetailDtos
>(),
};
...
...
@@ -859,9 +859,39 @@ public DeptDataDetails SpecialDeptDetail(ag_secondallot second)
});
}
deptDetails
.
Detail
.
Add
(
detail
);
var
extra
=
new
DetailDtos
{
ItemName
=
"医院奖罚"
,
IncomeType
=
5
,
Amount
=
deptDetails
.
Pandect
.
Extra
,
Items
=
GetExtraDetail
(
second
.
AllotId
.
Value
,
(
int
)
UnitType
.
特殊核算组
,
second
.
Department
),
GroupBasis
=
1
,
};
deptDetails
.
Detail
.
Add
(
extra
);
return
deptDetails
;
}
private
List
<
DetailModule
>
GetExtraDetail
(
int
allotId
,
int
unitType
,
string
accountingUnit
)
{
var
result
=
new
List
<
DetailModule
>();
var
sheetId
=
_perforPerSheetRepository
.
GetEntity
(
t
=>
t
.
AllotID
==
allotId
&&
t
.
SheetType
==
(
int
)
SheetType
.
AccountExtra
)?.
ID
;
if
(!
sheetId
.
HasValue
)
return
result
;
var
data
=
_perforImDataRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
t
.
SheetID
==
sheetId
&&
t
.
UnitType
==
unitType
&&
t
.
AccountingUnit
==
accountingUnit
&&
t
.
IsTotal
!=
1
);
if
(
data
==
null
||
!
data
.
Any
())
return
result
;
result
=
data
.
Select
(
t
=>
new
DetailModule
{
ItemName
=
t
.
TypeName
,
CellValue
=
t
.
CellValue
,
ItemValue
=
t
.
CellValue
,
}).
ToList
();
return
result
;
}
public
ag_secondallot
GetAccountId
(
int
secondId
,
out
int
accountId
)
{
...
...
performance/Performance.Services/SecondAllotService.cs
View file @
ba5ea1ea
...
...
@@ -113,11 +113,11 @@ public List<SecondListResponse> GetSecondList(int userId)
var
secondList
=
perforAgsecondallotRepository
.
GetEntities
(
exp
);
//各科室绩效分配结果
var
accountList
=
perforResaccountRepository
.
GetEntities
(
t
=>
allotListId
.
Contains
(
t
.
AllotID
.
Value
)
&&
t
.
Departmen
t
==
user
.
Department
);
var
accountList
=
perforResaccountRepository
.
GetEntities
(
t
=>
allotListId
.
Contains
(
t
.
AllotID
.
Value
)
&&
t
.
AccountingUni
t
==
user
.
Department
);
//取得未生成二次绩效的绩效id
var
exceptListId
=
secondList
==
null
?
allotListId
:
allotListId
.
Except
(
secondList
.
Select
(
t
=>
t
.
AllotId
.
Value
));
var
specialList
=
resspecialunitRepository
.
GetEntities
(
t
=>
allotListId
.
Contains
(
t
.
AllotID
.
Value
)
&&
t
.
Departmen
t
==
user
.
Department
);
var
specialList
=
resspecialunitRepository
.
GetEntities
(
t
=>
allotListId
.
Contains
(
t
.
AllotID
.
Value
)
&&
t
.
AccountingUni
t
==
user
.
Department
);
#
region
初始化二次绩效
List
<
ag_secondallot
>
newSecond
=
new
List
<
ag_secondallot
>();
...
...
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