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
1c3bd83d
Commit
1c3bd83d
authored
Jun 28, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取科室来源为4.1核算,二次绩效补充弄年资/工作量占比,特殊科室绩效详情修改bug-null取值,其他模板返回数据格式修改,附带列头
parent
380c1de1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
57 additions
and
30 deletions
+57
-30
performance/Performance.Api/Controllers/ReportController.cs
+16
-16
performance/Performance.Api/Controllers/SecondAllotController.cs
+6
-1
performance/Performance.Services/ComputeService.cs
+6
-6
performance/Performance.Services/SecondAllotService.cs
+24
-2
performance/Performance.Services/UserService.cs
+5
-5
No files found.
performance/Performance.Api/Controllers/ReportController.cs
View file @
1c3bd83d
...
...
@@ -33,12 +33,12 @@ public class ReportController : Controller
[
Route
(
"rank"
)]
[
HttpPost
]
public
ApiResponse
Rank
([
FromBody
]
HospitalIdRequest
request
)
public
ApiResponse
Rank
([
FromBody
]
HospitalIdRequest
request
)
{
var
allots
=
allotService
.
GetAllotList
(
request
.
HospitalId
);
int
[]
states
=
new
int
[]
{
6
,
8
};
var
result
=
allots
.
Where
(
w
=>
states
.
Contains
(
w
.
States
))
var
result
=
allots
?
.
Where
(
w
=>
states
.
Contains
(
w
.
States
))
.
Select
(
w
=>
new
{
w
.
Year
,
w
.
Month
})
.
OrderByDescending
(
w
=>
w
.
Year
)
.
ThenByDescending
(
w
=>
w
.
Month
);
...
...
@@ -48,7 +48,7 @@ public ApiResponse Rank([FromBody]HospitalIdRequest request)
[
Route
(
"selection"
)]
[
HttpPost
]
public
ApiResponse
Selection
([
FromBody
]
SelectionRequest
report
)
public
ApiResponse
Selection
([
FromBody
]
SelectionRequest
report
)
{
var
userId
=
claimService
.
GetUserId
();
var
result
=
reportDataService
.
GetReportSelection
(
report
.
GroupId
,
userId
);
...
...
@@ -57,7 +57,7 @@ public ApiResponse Selection([FromBody]SelectionRequest report)
[
Route
(
"info"
)]
[
HttpPost
]
public
ApiResponse
Info
([
FromBody
]
SelectionRequest
report
)
public
ApiResponse
Info
([
FromBody
]
SelectionRequest
report
)
{
var
result
=
reportDataService
.
GetReportInfo
(
report
.
GroupId
);
return
new
ApiResponse
(
ResponseType
.
OK
,
result
);
...
...
@@ -65,7 +65,7 @@ public ApiResponse Info([FromBody]SelectionRequest report)
[
Route
(
"search"
)]
[
HttpPost
]
public
ApiResponse
Search
([
FromBody
]
SearchReportRequest
report
)
public
ApiResponse
Search
([
FromBody
]
SearchReportRequest
report
)
{
var
userId
=
claimService
.
GetUserId
();
var
result
=
reportDataService
.
GetReportData
(
report
.
HospitalId
,
report
.
GroupId
,
report
.
ReportId
,
report
.
Values
??
new
List
<
SelectionValues
>(),
userId
);
...
...
@@ -78,7 +78,7 @@ public ApiResponse Search([FromBody]SearchReportRequest report)
/// <returns></returns>
[
Route
(
"survey"
)]
[
HttpPost
]
public
ApiResponse
Survey
([
CustomizeValidator
(
RuleSet
=
"Query"
),
FromBody
]
ReportRequest
request
)
public
ApiResponse
Survey
([
CustomizeValidator
(
RuleSet
=
"Query"
),
FromBody
]
ReportRequest
request
)
{
var
result
=
reportService
.
Survey
(
request
.
HospitalId
);
return
new
ApiResponse
(
ResponseType
.
OK
,
result
);
...
...
@@ -90,7 +90,7 @@ public ApiResponse Survey([CustomizeValidator(RuleSet = "Query"), FromBody]Repor
/// <returns></returns>
[
Route
(
"doctoravg"
)]
[
HttpPost
]
public
ApiResponse
DoctorAvg
([
CustomizeValidator
(
RuleSet
=
"Query"
),
FromBody
]
ReportRequest
request
)
public
ApiResponse
DoctorAvg
([
CustomizeValidator
(
RuleSet
=
"Query"
),
FromBody
]
ReportRequest
request
)
{
var
result
=
reportService
.
DoctorAvg
(
request
.
HospitalId
,
request
.
IsIndex
);
return
new
ApiResponse
(
ResponseType
.
OK
,
result
);
...
...
@@ -102,7 +102,7 @@ public ApiResponse DoctorAvg([CustomizeValidator(RuleSet = "Query"), FromBody]Re
/// <returns></returns>
[
Route
(
"nurseavg"
)]
[
HttpPost
]
public
ApiResponse
NurseAvg
([
CustomizeValidator
(
RuleSet
=
"Query"
),
FromBody
]
ReportRequest
request
)
public
ApiResponse
NurseAvg
([
CustomizeValidator
(
RuleSet
=
"Query"
),
FromBody
]
ReportRequest
request
)
{
var
result
=
reportService
.
NurseAvg
(
request
.
HospitalId
,
request
.
IsIndex
);
return
new
ApiResponse
(
ResponseType
.
OK
,
result
);
...
...
@@ -114,7 +114,7 @@ public ApiResponse NurseAvg([CustomizeValidator(RuleSet = "Query"), FromBody]Rep
/// <returns></returns>
[
Route
(
"outfeeavg"
)]
[
HttpPost
]
public
ApiResponse
OutFeeAvg
([
CustomizeValidator
(
RuleSet
=
"Query"
),
FromBody
]
ReportRequest
request
)
public
ApiResponse
OutFeeAvg
([
CustomizeValidator
(
RuleSet
=
"Query"
),
FromBody
]
ReportRequest
request
)
{
var
list
=
reportService
.
OutFeeAvg
(
request
.
HospitalId
);
return
new
ApiResponse
(
ResponseType
.
OK
,
""
,
list
);
...
...
@@ -126,7 +126,7 @@ public ApiResponse OutFeeAvg([CustomizeValidator(RuleSet = "Query"), FromBody]Re
/// <returns></returns>
[
Route
(
"inpatfeeavg"
)]
[
HttpPost
]
public
ApiResponse
InpatFeeAvg
([
CustomizeValidator
(
RuleSet
=
"Query"
),
FromBody
]
ReportRequest
request
)
public
ApiResponse
InpatFeeAvg
([
CustomizeValidator
(
RuleSet
=
"Query"
),
FromBody
]
ReportRequest
request
)
{
var
list
=
reportService
.
InpatFeeAvg
(
request
.
HospitalId
);
return
new
ApiResponse
(
ResponseType
.
OK
,
""
,
list
);
...
...
@@ -138,7 +138,7 @@ public ApiResponse InpatFeeAvg([CustomizeValidator(RuleSet = "Query"), FromBody]
/// <returns></returns>
[
Route
(
"medicine"
)]
[
HttpPost
]
public
ApiResponse
Medicine
([
CustomizeValidator
(
RuleSet
=
"Query"
),
FromBody
]
ReportRequest
request
)
public
ApiResponse
Medicine
([
CustomizeValidator
(
RuleSet
=
"Query"
),
FromBody
]
ReportRequest
request
)
{
var
list
=
reportService
.
Medicine
(
request
.
HospitalId
,
request
.
IsIndex
);
return
new
ApiResponse
(
ResponseType
.
OK
,
""
,
list
);
...
...
@@ -150,7 +150,7 @@ public ApiResponse Medicine([CustomizeValidator(RuleSet = "Query"), FromBody]Rep
/// <returns></returns>
[
Route
(
"income"
)]
[
HttpPost
]
public
ApiResponse
Income
([
CustomizeValidator
(
RuleSet
=
"Query"
),
FromBody
]
ReportRequest
request
)
public
ApiResponse
Income
([
CustomizeValidator
(
RuleSet
=
"Query"
),
FromBody
]
ReportRequest
request
)
{
var
list
=
reportService
.
Income
(
request
.
HospitalId
,
request
.
IsIndex
);
return
new
ApiResponse
(
ResponseType
.
OK
,
""
,
list
);
...
...
@@ -163,7 +163,7 @@ public ApiResponse Income([CustomizeValidator(RuleSet = "Query"), FromBody]Repor
/// <returns></returns>
[
Route
(
"getperforavg"
)]
[
HttpPost
]
public
ApiResponse
AvgPerfor
([
CustomizeValidator
(
RuleSet
=
"Query"
),
FromBody
]
ReportRequest
request
)
public
ApiResponse
AvgPerfor
([
CustomizeValidator
(
RuleSet
=
"Query"
),
FromBody
]
ReportRequest
request
)
{
var
list
=
reportService
.
GetAvgPerfor
(
request
.
HospitalId
);
return
new
ApiResponse
(
ResponseType
.
OK
,
""
,
list
);
...
...
@@ -177,7 +177,7 @@ public ApiResponse AvgPerfor([CustomizeValidator(RuleSet = "Query"), FromBody]Re
/// <returns></returns>
[
Route
(
"avgratio"
)]
[
HttpPost
]
public
ApiResponse
AvgRatio
([
CustomizeValidator
(
RuleSet
=
"Query"
),
FromBody
]
ReportRequest
request
)
public
ApiResponse
AvgRatio
([
CustomizeValidator
(
RuleSet
=
"Query"
),
FromBody
]
ReportRequest
request
)
{
var
list
=
reportService
.
AvgRatio
(
request
.
HospitalId
);
return
new
ApiResponse
(
ResponseType
.
OK
,
""
,
list
);
...
...
@@ -190,7 +190,7 @@ public ApiResponse AvgRatio([CustomizeValidator(RuleSet = "Query"), FromBody]Rep
/// <returns></returns>
[
Route
(
"index"
)]
[
HttpPost
]
public
ApiResponse
IndexReport
([
CustomizeValidator
(
RuleSet
=
"Index"
),
FromBody
]
ReportRequest
request
)
public
ApiResponse
IndexReport
([
CustomizeValidator
(
RuleSet
=
"Index"
),
FromBody
]
ReportRequest
request
)
{
var
list
=
reportService
.
IndexReport
(
request
.
HospitalId
,
request
.
Source
);
return
new
ApiResponse
(
ResponseType
.
OK
,
""
,
list
);
...
...
@@ -203,7 +203,7 @@ public ApiResponse IndexReport([CustomizeValidator(RuleSet = "Index"), FromBody]
/// <returns></returns>
[
Route
(
"menu"
)]
[
HttpPost
]
public
ApiResponse
MenuReport
([
CustomizeValidator
(
RuleSet
=
"Menu"
),
FromBody
]
ReportRequest
request
)
public
ApiResponse
MenuReport
([
CustomizeValidator
(
RuleSet
=
"Menu"
),
FromBody
]
ReportRequest
request
)
{
var
list
=
reportService
.
MenuReport
(
request
);
return
new
ApiResponse
(
ResponseType
.
OK
,
""
,
list
);
...
...
performance/Performance.Api/Controllers/SecondAllotController.cs
View file @
1c3bd83d
...
...
@@ -329,7 +329,12 @@ public ApiResponse AuditResult([FromBody] SecondAuditRequest request)
public
ApiResponse
OtherList
([
FromBody
]
AgOtherRequest
request
)
{
var
result
=
secondAllotService
.
OtherList
(
request
.
SecondId
);
return
new
ApiResponse
(
ResponseType
.
OK
,
result
);
var
obj
=
new
{
header
=
secondAllotService
.
OtherListHeader
(
request
.
SecondId
,
result
?.
Sum
(
t
=>
t
.
Amount
)),
body
=
result
,
};
return
new
ApiResponse
(
ResponseType
.
OK
,
obj
);
}
/// <summary>
...
...
performance/Performance.Services/ComputeService.cs
View file @
1c3bd83d
...
...
@@ -686,12 +686,12 @@ public DeptDataDetails SpecialDeptDetail(ag_secondallot second)
ScoringAverage
=
special
.
First
().
ScoringAverage
.
Value
,
OtherPerfor1
=
special
.
First
().
OtherPerfor
.
Value
,
AdjustFactor
=
special
.
First
().
Adjust
.
Value
,
Avg
=
special
.
First
().
Avg
.
Value
,
RealGiveFee
=
special
.
First
().
RealGiveFee
.
Value
,
Avg
=
special
.
First
().
Avg
,
RealGiveFee
=
special
.
First
().
RealGiveFee
,
Number
=
special
.
First
().
Number
.
Value
,
PerforFee
=
special
.
First
().
GiveFee
.
Value
,
PerforTotal
=
special
.
First
().
ResultsTotalFee
.
Value
,
Income
=
special
.
First
().
ResultsTotalFee
.
Value
,
PerforFee
=
special
.
First
().
GiveFee
,
PerforTotal
=
special
.
First
().
ResultsTotalFee
,
Income
=
special
.
First
().
ResultsTotalFee
,
Extra
=
special
.
First
().
Punishment
.
Value
,
},
Detail
=
new
List
<
DetailDtos
>(),
...
...
@@ -700,7 +700,7 @@ public DeptDataDetails SpecialDeptDetail(ag_secondallot second)
{
ItemName
=
"特殊核算单元绩效测算表"
,
IncomeType
=
4
,
Amount
=
special
.
First
().
ResultsTotalFee
.
Value
,
Amount
=
special
.
First
().
ResultsTotalFee
??
0
,
Items
=
new
List
<
DetailModule
>(),
GroupBasis
=
1
,
};
...
...
performance/Performance.Services/SecondAllotService.cs
View file @
1c3bd83d
...
...
@@ -426,11 +426,18 @@ private void FillData(ag_secondallot second, List<BodyItem> bodyItems)
{
"绩效合计(考核后)"
,
second
.
RealGiveFee
.
ToString
()},
{
"主任基础绩效"
,
account
?.
Avg
?.
ToString
()}
};
var
pairs
=
new
Dictionary
<
string
,
string
>
{
{
"职称绩效"
,
"年资职称绩效占比"
},
{
"工作量绩效"
,
"工作量绩效占比"
},
};
var
config
=
perforCofagainRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
second
.
AllotId
);
if
(
config
!=
null
&&
config
.
Any
())
config
.
ForEach
(
t
=>
{
keyValue
.
Add
(
t
.
TypeName
,
t
.
Value
.
ToString
());
var
key
=
pairs
.
ContainsKey
(
t
.
TypeName
)
?
pairs
[
t
.
TypeName
]
:
t
.
TypeName
;
if
(!
keyValue
.
Keys
.
Contains
(
key
))
keyValue
.
Add
(
key
,
t
.
Value
.
ToString
());
});
foreach
(
var
item
in
keyValue
)
...
...
@@ -1154,7 +1161,7 @@ public bool ConfirmAudit(int userId, SecondAuditRequest request)
{
AllotId
=
second
.
AllotId
,
SecondId
=
second
.
Id
,
Department
=
item
.
Department
,
Department
=
second
.
Department
,
WorkPost
=
item
.
WorkPost
,
JobNumber
=
item
.
WorkNumber
,
PersonName
=
item
.
Name
,
...
...
@@ -1250,6 +1257,21 @@ public List<ag_othersource> OtherList(int secondId)
return
otherSecondList
?.
OrderBy
(
t
=>
t
.
Id
).
ToList
();
}
public
Dictionary
<
string
,
string
>
OtherListHeader
(
int
secondId
,
decimal
?
amount
)
{
var
second
=
perforAgsecondallotRepository
.
GetEntity
(
t
=>
t
.
Id
==
secondId
);
if
(
second
==
null
)
return
new
Dictionary
<
string
,
string
>();
var
keyValue
=
new
Dictionary
<
string
,
string
>
{
{
"发放月份"
,
$"
{
second
.
Year
}
年
{
second
.
Month
.
ToString
().
PadLeft
(
2
,
'0'
)}
月"
},
{
"绩效合计(考核后)"
,
second
.
RealGiveFee
.
ToString
()},
{
"业绩分配绩效总额"
,
(
second
.
RealGiveFee
-
(
amount
??
0
)).
ToString
()},
};
return
keyValue
;
}
public
List
<
ag_othersource
>
OtherSave
(
int
secondId
,
List
<
ag_othersource
>
request
)
{
var
existEntities
=
perforAgothersourceRepository
.
GetEntities
(
t
=>
t
.
SecondId
==
secondId
);
...
...
performance/Performance.Services/UserService.cs
View file @
1c3bd83d
...
...
@@ -25,7 +25,7 @@ public class UserService : IAutoInjection
private
PerforUserroleRepository
_userroleRepository
;
private
PerforImemployeeRepository
_employeeRepository
;
private
PerforPerallotRepository
_perforPerallotRepository
;
private
PerforImaccountbasicRepository
_
perforI
maccountbasicRepository
;
private
PerforImaccountbasicRepository
_
i
maccountbasicRepository
;
private
PerforImspecialunitRepository
_imspecialunitRepository
;
public
UserService
(
IOptions
<
Application
>
application
,
PerforSmsRepository
smsRepository
,
...
...
@@ -36,7 +36,7 @@ public class UserService : IAutoInjection
PerforUserroleRepository
userroleRepository
,
PerforImemployeeRepository
employeeRepository
,
PerforPerallotRepository
perforPerallotRepository
,
PerforImaccountbasicRepository
perforI
maccountbasicRepository
,
PerforImaccountbasicRepository
i
maccountbasicRepository
,
PerforImspecialunitRepository
imspecialunitRepository
)
{
this
.
application
=
application
.
Value
;
...
...
@@ -48,7 +48,7 @@ public class UserService : IAutoInjection
this
.
_userroleRepository
=
userroleRepository
;
this
.
_employeeRepository
=
employeeRepository
;
this
.
_perforPerallotRepository
=
perforPerallotRepository
;
this
.
_
perforImaccountbasicRepository
=
perforI
maccountbasicRepository
;
this
.
_
imaccountbasicRepository
=
i
maccountbasicRepository
;
this
.
_imspecialunitRepository
=
imspecialunitRepository
;
}
...
...
@@ -341,12 +341,12 @@ public List<TitleValue> Department(int hospitalID)
//if (department != null && department.Count() > 0)
// result.AddRange(department);
var
department
=
_
perforImaccountbasicRepository
.
GetEntities
(
t
=>
!
string
.
IsNullOrEmpty
(
t
.
DoctorAccountingUnit
)
&&
idList
.
Contains
(
t
.
AllotID
.
Value
))
.
Select
(
t
=>
t
.
DoctorAccountingUnit
);
var
department
=
_
imaccountbasicRepository
.
GetEntities
(
t
=>
!
string
.
IsNullOrEmpty
(
t
.
DoctorAccountingUnit
)
&&
idList
.
Contains
(
t
.
AllotID
.
Value
))?
.
Select
(
t
=>
t
.
DoctorAccountingUnit
);
if
(
department
!=
null
&&
department
.
Count
()
>
0
)
result
.
AddRange
(
department
);
// 特殊科室
department
=
_imspecialunitRepository
.
GetEntities
(
t
=>
!
string
.
IsNullOrEmpty
(
t
.
AccountingUnit
)
&&
idList
.
Contains
(
t
.
AllotID
.
Value
)).
Select
(
t
=>
t
.
AccountingUnit
);
department
=
_imspecialunitRepository
.
GetEntities
(
t
=>
!
string
.
IsNullOrEmpty
(
t
.
AccountingUnit
)
&&
idList
.
Contains
(
t
.
AllotID
.
Value
))
?
.
Select
(
t
=>
t
.
AccountingUnit
);
if
(
department
!=
null
&&
department
.
Count
()
>
0
)
result
.
AddRange
(
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