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
8a4f34d4
Commit
8a4f34d4
authored
Oct 22, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口优化
parent
32892ee0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
6 deletions
+23
-6
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
+15
-0
performance/Performance.Services/ComputeService.cs
+8
-6
No files found.
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
View file @
8a4f34d4
...
@@ -894,6 +894,11 @@
...
@@ -894,6 +894,11 @@
核算单元
核算单元
</summary>
</summary>
</member>
</member>
<member
name=
"P:Performance.DtoModels.PerDataAccountBaisc.EmployeeName"
>
<summary>
医生姓名
</summary>
</member>
<member
name=
"P:Performance.DtoModels.PerDataAccountBaisc.PermanentStaff"
>
<member
name=
"P:Performance.DtoModels.PerDataAccountBaisc.PermanentStaff"
>
<summary>
<summary>
效率绩效人数
效率绩效人数
...
@@ -939,6 +944,16 @@
...
@@ -939,6 +944,16 @@
考核对分率
考核对分率
</summary>
</summary>
</member>
</member>
<member
name=
"P:Performance.DtoModels.PerDataAccountBaisc.AssessLaterManagementFee"
>
<summary>
考核后管理绩效
</summary>
</member>
<member
name=
"P:Performance.DtoModels.PerDataAccountBaisc.Management"
>
<summary>
管理绩效发放系数
</summary>
</member>
<member
name=
"P:Performance.DtoModels.PerDataAccountBaisc.AssessLaterOtherFee"
>
<member
name=
"P:Performance.DtoModels.PerDataAccountBaisc.AssessLaterOtherFee"
>
<summary>
<summary>
考核后其他绩效
考核后其他绩效
...
...
performance/Performance.Services/ComputeService.cs
View file @
8a4f34d4
...
@@ -1112,13 +1112,13 @@ public DeptDataDetails GetDoctorDetail(int computeId)
...
@@ -1112,13 +1112,13 @@ public DeptDataDetails GetDoctorDetail(int computeId)
var
resCompute
=
_perforRescomputeRepository
.
GetEntity
(
t
=>
t
.
ID
==
computeId
);
var
resCompute
=
_perforRescomputeRepository
.
GetEntity
(
t
=>
t
.
ID
==
computeId
);
if
(
resCompute
==
null
)
return
new
DeptDataDetails
();
if
(
resCompute
==
null
)
return
new
DeptDataDetails
();
var
allot
=
perforPerallotRepository
.
GetEntity
(
t
=>
t
.
ID
==
resCompute
.
AllotID
);
//
var allot = perforPerallotRepository.GetEntity(t => t.ID == resCompute.AllotID);
if
(
allot
==
null
)
return
new
DeptDataDetails
();
//
if (allot == null) return new DeptDataDetails();
var
employee
=
_perforImemployeeclinicRepository
.
GetEntity
(
t
=>
t
.
AllotID
==
resCompute
.
AllotID
&&
t
.
AccountingUnit
==
resCompute
.
AccountingUnit
&&
t
.
UnitType
==
resCompute
.
UnitType
&&
t
.
DoctorName
==
resCompute
.
EmployeeName
);
var
employee
=
_perforImemployeeclinicRepository
.
GetEntity
(
t
=>
t
.
AllotID
==
resCompute
.
AllotID
&&
t
.
AccountingUnit
==
resCompute
.
AccountingUnit
&&
t
.
UnitType
==
resCompute
.
UnitType
&&
t
.
DoctorName
==
resCompute
.
EmployeeName
);
DeptDataDetails
doctorDetails
=
new
DeptDataDetails
DeptDataDetails
doctorDetails
=
new
DeptDataDetails
{
{
ShowFormula
=
allot
.
ShowFormula
,
ShowFormula
=
0
,
Pandect
=
new
PerDataAccountBaisc
Pandect
=
new
PerDataAccountBaisc
{
{
AccountingUnit
=
resCompute
.
AccountingUnit
,
AccountingUnit
=
resCompute
.
AccountingUnit
,
...
@@ -1148,17 +1148,19 @@ public DeptDataDetails GetDoctorDetail(int computeId)
...
@@ -1148,17 +1148,19 @@ public DeptDataDetails GetDoctorDetail(int computeId)
var
sheets
=
_perforPerSheetRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
resCompute
.
AllotID
&&
new
int
[]
{
(
int
)
SheetType
.
PersonExtra
,
(
int
)
SheetType
.
PersonAdjustLaterOtherFee
}.
Contains
(
t
.
SheetType
.
Value
));
var
sheets
=
_perforPerSheetRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
resCompute
.
AllotID
&&
new
int
[]
{
(
int
)
SheetType
.
PersonExtra
,
(
int
)
SheetType
.
PersonAdjustLaterOtherFee
}.
Contains
(
t
.
SheetType
.
Value
));
if
(
sheets
==
null
||
!
sheets
.
Any
())
return
doctorDetails
;
if
(
sheets
==
null
||
!
sheets
.
Any
())
return
doctorDetails
;
var
data
=
_perforImDataRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
resCompute
.
AllotID
&&
sheets
.
Select
(
s
=>
s
.
ID
).
Contains
(
t
.
SheetID
.
Value
)
&&
t
.
JobNumber
==
(
resCompute
.
JobNumber
??
""
)
&&
t
.
EmployeeName
==
resCompute
.
EmployeeName
&&
t
.
AccountingUnit
==
resCompute
.
AccountingUnit
);
var
data
=
_perforImDataRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
resCompute
.
AllotID
&&
sheets
.
Select
(
s
=>
s
.
ID
).
Contains
(
t
.
SheetID
.
Value
));
if
(
data
==
null
||
!
data
.
Any
())
return
doctorDetails
;
if
(
data
==
null
||
!
data
.
Any
(
t
=>
t
.
JobNumber
==
(
resCompute
.
JobNumber
??
""
)
&&
t
.
EmployeeName
==
resCompute
.
EmployeeName
))
return
doctorDetails
;
data
=
data
.
Where
(
t
=>
t
.
JobNumber
==
(
resCompute
.
JobNumber
??
""
)
&&
t
.
EmployeeName
==
resCompute
.
EmployeeName
).
ToList
();
foreach
(
var
sheet
in
sheets
)
foreach
(
var
sheet
in
sheets
)
{
{
var
sheetData
=
data
.
Where
(
t
=>
t
.
SheetID
==
sheet
.
ID
);
var
sheetData
=
data
.
Where
(
t
=>
t
.
SheetID
==
sheet
.
ID
);
if
(
sheetData
==
null
||
!
sheetData
.
Any
())
continue
;
if
(
sheetData
==
null
||
!
sheetData
.
Any
())
continue
;
var
itemName
=
Regex
.
Replace
(
sheet
.
SheetName
,
@"\d"
,
""
);
var
detail
=
new
DetailDtos
var
detail
=
new
DetailDtos
{
{
ItemName
=
sheet
.
SheetName
,
ItemName
=
itemName
.
Replace
(
"."
,
""
).
Replace
(
" "
,
""
)
,
IncomeType
=
sheet
.
SheetType
==
(
int
)
SheetType
.
PersonExtra
?
5
:
8
,
IncomeType
=
sheet
.
SheetType
==
(
int
)
SheetType
.
PersonExtra
?
5
:
8
,
Amount
=
sheetData
.
Where
(
t
=>
t
.
IsTotal
==
1
)?.
Sum
(
t
=>
t
.
CellValue
)
??
0
,
Amount
=
sheetData
.
Where
(
t
=>
t
.
IsTotal
==
1
)?.
Sum
(
t
=>
t
.
CellValue
)
??
0
,
Items
=
sheetData
.
Where
(
t
=>
t
.
IsTotal
!=
1
)?.
Select
(
t
=>
new
DetailModule
Items
=
sheetData
.
Where
(
t
=>
t
.
IsTotal
!=
1
)?.
Select
(
t
=>
new
DetailModule
...
...
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