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
b8361414
Commit
b8361414
authored
Mar 04, 2021
by
钟博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二次绩效详情、其他绩效统计表显示
parent
3ec3b2ce
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
13 deletions
+42
-13
performance/Performance.Api/Controllers/ComputeController.cs
+2
-2
performance/Performance.Api/Controllers/SecondAllotController.cs
+3
-3
performance/Performance.Services/ComputeService.cs
+37
-8
No files found.
performance/Performance.Api/Controllers/ComputeController.cs
View file @
b8361414
...
@@ -393,8 +393,8 @@ public ApiResponse OtherPerStats(int allotId)
...
@@ -393,8 +393,8 @@ public ApiResponse OtherPerStats(int allotId)
if
(
employee
==
null
)
if
(
employee
==
null
)
return
new
ApiResponse
(
ResponseType
.
OK
,
null
);
return
new
ApiResponse
(
ResponseType
.
OK
,
null
);
_computeService
.
GetOtherPerStats
(
employee
);
var
relust
=
_computeService
.
GetOtherPerStats
(
employee
);
return
new
ApiResponse
();
return
new
ApiResponse
(
ResponseType
.
OK
,
relust
);
}
}
#
endregion
#
endregion
...
...
performance/Performance.Api/Controllers/SecondAllotController.cs
View file @
b8361414
...
@@ -401,11 +401,11 @@ public ApiResponse NursingDeptAuditResult([FromBody] SecondAuditRequest request)
...
@@ -401,11 +401,11 @@ public ApiResponse NursingDeptAuditResult([FromBody] SecondAuditRequest request)
[
HttpPost
]
[
HttpPost
]
public
ApiResponse
OtherList
([
FromBody
]
AgOtherRequest
request
)
public
ApiResponse
OtherList
([
FromBody
]
AgOtherRequest
request
)
{
{
//
var result = secondAllotService.OtherList(request.SecondId, claimService.GetUserId());
var
result
=
secondAllotService
.
OtherList
(
request
.
SecondId
,
claimService
.
GetUserId
());
var
result
=
secondAllotDetails
.
GetOtherTempData
(
claimService
.
GetUserId
(),
request
.
SecondId
,
request
.
IsArchive
,
request
.
EmployeeSource
,
out
decimal
?
realAmount
);
//
var result = secondAllotDetails.GetOtherTempData(claimService.GetUserId(), request.SecondId, request.IsArchive, request.EmployeeSource, out decimal? realAmount);
var
obj
=
new
var
obj
=
new
{
{
header
=
secondAllotService
.
OtherListHeader
(
request
.
SecondId
,
re
alAmount
),
header
=
secondAllotService
.
OtherListHeader
(
request
.
SecondId
,
re
sult
?.
Sum
(
t
=>
t
.
RealAmount
)
),
body
=
result
,
body
=
result
,
};
};
return
new
ApiResponse
(
ResponseType
.
OK
,
obj
);
return
new
ApiResponse
(
ResponseType
.
OK
,
obj
);
...
...
performance/Performance.Services/ComputeService.cs
View file @
b8361414
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
using
System.Text
;
using
System.Text
;
using
System.Text.RegularExpressions
;
using
System.Text.RegularExpressions
;
using
Performance.DtoModels.Request
;
using
Performance.DtoModels.Request
;
using
Performance.DtoModels.Response
;
namespace
Performance.Services
namespace
Performance.Services
{
{
...
@@ -1423,7 +1424,7 @@ public DeptDataDetails GetDoctorDetail(int computeId)
...
@@ -1423,7 +1424,7 @@ public DeptDataDetails GetDoctorDetail(int computeId)
public
res_baiscnorm
EditHospitalAvg
(
ComputerAvgRequest
request
)
public
res_baiscnorm
EditHospitalAvg
(
ComputerAvgRequest
request
)
{
{
if
(
request
.
Id
==
0
)
if
(
request
.
Id
==
0
)
{
{
var
baiscnorm
=
Mapper
.
Map
<
res_baiscnorm
>(
request
);
var
baiscnorm
=
Mapper
.
Map
<
res_baiscnorm
>(
request
);
if
(!
perforResbaiscnormRepository
.
Add
(
baiscnorm
))
if
(!
perforResbaiscnormRepository
.
Add
(
baiscnorm
))
...
@@ -1433,13 +1434,13 @@ public res_baiscnorm EditHospitalAvg(ComputerAvgRequest request)
...
@@ -1433,13 +1434,13 @@ public res_baiscnorm EditHospitalAvg(ComputerAvgRequest request)
else
else
{
{
var
baiscnorm
=
perforResbaiscnormRepository
.
GetEntity
(
t
=>
t
.
ID
==
request
.
Id
);
var
baiscnorm
=
perforResbaiscnormRepository
.
GetEntity
(
t
=>
t
.
ID
==
request
.
Id
);
if
(
baiscnorm
==
null
)
if
(
baiscnorm
==
null
)
throw
new
PerformanceException
(
$"ID不存在 :
{
request
.
Id
}
"
);
throw
new
PerformanceException
(
$"ID不存在 :
{
request
.
Id
}
"
);
baiscnorm
.
TotelNumber
=
request
.
TotelNumber
;
baiscnorm
.
TotelNumber
=
request
.
TotelNumber
;
baiscnorm
.
TotelValue
=
request
.
TotelValue
;
baiscnorm
.
TotelValue
=
request
.
TotelValue
;
baiscnorm
.
AvgValue
=
request
.
AvgValue
;
baiscnorm
.
AvgValue
=
request
.
AvgValue
;
//var baiscnorm = Mapper.Map<res_baiscnorm>(request);
//var baiscnorm = Mapper.Map<res_baiscnorm>(request);
if
(!
perforResbaiscnormRepository
.
Update
(
baiscnorm
))
if
(!
perforResbaiscnormRepository
.
Update
(
baiscnorm
))
throw
new
PerformanceException
(
"保存失败"
);
throw
new
PerformanceException
(
"保存失败"
);
...
@@ -1447,11 +1448,39 @@ public res_baiscnorm EditHospitalAvg(ComputerAvgRequest request)
...
@@ -1447,11 +1448,39 @@ public res_baiscnorm EditHospitalAvg(ComputerAvgRequest request)
}
}
}
}
public
List
<
string
>
GetOtherPerStats
(
List
<
per_apr_amount
>
employees
)
public
List
<
Dictionary
<
string
,
string
>
>
GetOtherPerStats
(
List
<
per_apr_amount
>
employees
)
{
{
var
emp
=
employees
.
Select
(
t
=>
t
.
PerforType
).
Distinct
();
var
perForType
=
employees
.
Select
(
t
=>
t
.
PerforType
).
Distinct
();
var
doctor
=
employees
.
Select
(
t
=>
t
.
DoctorName
.
Trim
()).
Distinct
();
return
new
List
<
string
>();
var
others
=
new
List
<
Dictionary
<
string
,
string
>>();
foreach
(
var
name
in
doctor
)
{
var
dicData
=
new
Dictionary
<
string
,
string
>();
var
amount
=
employees
.
First
(
t
=>
t
.
DoctorName
==
name
);
var
unitype
=
perforPeremployeeRepository
.
GetEntity
(
t
=>
t
.
DoctorName
==
name
&&
t
.
JobNumber
==
amount
.
PersonnelNumber
)?.
UnitType
;
dicData
.
Add
(
"核算单元组别"
,
unitype
);
dicData
.
Add
(
"核算单元"
,
amount
?.
AccountingUnit
??
""
);
dicData
.
Add
(
"工号"
,
amount
?.
PersonnelNumber
??
""
);
dicData
.
Add
(
"人员姓名"
,
amount
?.
DoctorName
??
""
);
foreach
(
var
type
in
perForType
)
{
var
emp
=
employees
.
Where
(
t
=>
t
.
PerforType
==
type
&&
t
.
DoctorName
==
name
)?.
ToList
();
if
(!
emp
.
Any
())
dicData
.
Add
(
type
,
"0"
);
else
dicData
.
Add
(
type
,
Math
.
Round
(
Convert
.
ToDecimal
(
emp
?.
First
()?.
Amount
),
0
).
ToString
());
}
var
sum
=
employees
.
Where
(
c
=>
c
.
DoctorName
==
name
)?.
Sum
(
t
=>
t
.
Amount
);
dicData
.
Add
(
"合计"
,
Math
.
Round
(
Convert
.
ToDecimal
(
sum
),
0
).
ToString
());
others
.
Add
(
dicData
);
}
return
others
;
}
}
}
}
}
}
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