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
f220a671
Commit
f220a671
authored
Nov 13, 2020
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
审核调整
parent
0c18ca8a
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
18 deletions
+37
-18
performance/Performance.Api/Controllers/EmployeeController.cs
+5
-4
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
+2
-2
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
+5
-0
performance/Performance.DtoModels/Request/AprAmountAuditRequest.cs
+6
-6
performance/Performance.Services/EmployeeService.cs
+19
-6
No files found.
performance/Performance.Api/Controllers/EmployeeController.cs
View file @
f220a671
...
...
@@ -283,9 +283,9 @@ public ApiResponse GetAprGroupList([FromBody] per_apr_amount request)
if
(
employee
==
null
||
!
employee
.
Any
())
return
new
ApiResponse
(
ResponseType
.
OK
,
"ok"
,
employee
);
var
result
=
employee
.
GroupBy
(
t
=>
new
{
AccountingUnit
=
t
.
AccountingUnit
??
""
,
TypeInDepartment
=
t
.
TypeInDepartment
??
""
}).
Select
(
t
=>
new
per_apr_amount
var
result
=
employee
.
GroupBy
(
t
=>
new
{
TypeInDepartment
=
t
.
TypeInDepartment
??
""
})
.
Select
(
t
=>
new
per_apr_amount
{
AccountingUnit
=
t
.
Key
.
AccountingUnit
,
TypeInDepartment
=
t
.
Key
.
TypeInDepartment
,
Amount
=
t
.
Sum
(
s
=>
s
.
Amount
??
0
),
Status
=
t
.
Any
(
s
=>
s
.
Status
==
2
)
?
2
:
t
.
Any
(
s
=>
s
.
Status
==
4
)
?
4
:
t
.
FirstOrDefault
().
Status
,
...
...
@@ -305,14 +305,15 @@ public ApiResponse GetAprDetail([FromBody] per_apr_amount request)
if
(
request
.
AllotId
==
0
)
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"参数AllotId无效!"
);
var
employee
=
employeeService
.
GetAprList
(
request
.
AllotId
,
request
.
AccountingUnit
,
request
.
TypeInDepartment
);
var
employee
=
employeeService
.
GetAprList
(
request
.
AllotId
,
request
.
TypeInDepartment
);
if
(
employee
==
null
||
!
employee
.
Any
())
return
new
ApiResponse
(
ResponseType
.
OK
,
"ok"
,
employee
);
var
result
=
employee
.
GroupBy
(
t
=>
new
{
t
.
PersonnelNumber
,
t
.
DoctorName
}).
Select
(
t
=>
new
var
result
=
employee
.
GroupBy
(
t
=>
new
{
t
.
AccountingUnit
,
t
.
PersonnelNumber
,
t
.
DoctorName
}).
Select
(
t
=>
new
{
PersonnelNumber
=
t
.
Key
.
PersonnelNumber
,
DoctorName
=
t
.
Key
.
DoctorName
,
AccountingUnit
=
t
.
Key
.
AccountingUnit
,
Status
=
t
.
Any
(
s
=>
s
.
Status
==
2
)
?
2
:
t
.
Any
(
s
=>
s
.
Status
==
4
)
?
4
:
t
.
FirstOrDefault
().
Status
,
Detail
=
t
.
GroupBy
(
group
=>
group
.
PerforType
).
Select
(
s
=>
new
TitleValue
<
decimal
>
{
...
...
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
View file @
f220a671
...
...
@@ -1715,8 +1715,8 @@
路径
</summary>
</member>
<member
name=
"P:Performance.DtoModels.AprAmountAuditRequest.Id"
>
<summary>
二次绩效Id
</summary>
<member
name=
"P:Performance.DtoModels.AprAmountAuditRequest.
Allot
Id"
>
<summary>
绩效ID
</summary>
</member>
<member
name=
"P:Performance.DtoModels.AprAmountAuditRequest.IsPass"
>
<summary>
审核结果 1、审核通过 2、驳回
</summary>
...
...
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
View file @
f220a671
...
...
@@ -5298,6 +5298,11 @@
是否开启行政后勤二次绩效分配 1 启用 2 禁用
</summary>
</member>
<member
name=
"P:Performance.EntityModels.sys_hospital.IsSingleProject"
>
<summary>
抽取项目是否在同一环境 1 是 2 否
</summary>
</member>
<member
name=
"T:Performance.EntityModels.sys_hospitalconfig"
>
<summary>
...
...
performance/Performance.DtoModels/Request/AprAmountAuditRequest.cs
View file @
f220a671
...
...
@@ -7,16 +7,16 @@ namespace Performance.DtoModels
{
public
class
AprAmountAuditRequest
{
/// <summary> 二次绩效Id </summary>
public
int
[]
Id
{
get
;
set
;
}
public
class
Member
{
public
string
PersonnelNumber
{
get
;
set
;
}
public
string
DoctorName
{
get
;
set
;
}
}
/// <summary> 绩效ID </summary>
public
int
AllotId
{
get
;
set
;
}
public
List
<
Member
>
Members
{
get
;
set
;
}
/// <summary> 审核结果 1、审核通过 2、驳回 </summary>
public
int
IsPass
{
get
;
set
;
}
/// <summary> 备注 </summary>
public
string
Remark
{
get
;
set
;
}
}
...
...
performance/Performance.Services/EmployeeService.cs
View file @
f220a671
...
...
@@ -383,9 +383,9 @@ public List<per_apr_amount> GetAprList(int allotId)
return
list
;
}
public
List
<
per_apr_amount
>
GetAprList
(
int
allotId
,
string
accountingUnit
,
string
department
)
public
List
<
per_apr_amount
>
GetAprList
(
int
allotId
,
string
department
)
{
var
list
=
perapramountRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
allotId
&&
(
t
.
Amount
??
0
)
!=
0
&&
(
t
.
AccountingUnit
??
""
)
==
accountingUnit
&&
(
t
.
TypeInDepartment
??
""
)
==
department
);
var
list
=
perapramountRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
allotId
&&
(
t
.
Amount
??
0
)
!=
0
&&
(
t
.
TypeInDepartment
??
""
)
==
department
);
if
(
list
!=
null
&&
list
.
Any
())
list
=
list
.
OrderBy
(
t
=>
t
.
DoctorName
).
ToList
();
...
...
@@ -443,19 +443,32 @@ public bool DeleteApr(int id)
/// <returns></returns>
public
bool
ConfirmAudit
(
int
userid
,
AprAmountAuditRequest
request
)
{
if
(
string
.
IsNullOrEmpty
(
request
.
DoctorName
)
&&
string
.
IsNullOrEmpty
(
request
.
PersonnelNumber
))
if
(
request
?.
Members
==
null
)
throw
new
PerformanceException
(
"审核信息无效,请确认"
);
foreach
(
var
item
in
request
.
Members
)
{
if
(
string
.
IsNullOrEmpty
(
item
.
DoctorName
)
&&
string
.
IsNullOrEmpty
(
item
.
PersonnelNumber
))
throw
new
PerformanceException
(
"审核信息无效,请确认"
);
}
var
allApramounts
=
perapramountRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
request
.
AllotId
);
foreach
(
var
member
in
request
.
Members
)
{
var
apramounts
=
allApramounts
?.
Where
(
t
=>
(
t
.
DoctorName
??
""
)
==
member
.
DoctorName
&&
(
t
.
PersonnelNumber
??
""
)
==
member
.
PersonnelNumber
);
if
(
apramounts
==
null
)
throw
new
PerformanceException
(
"审核信息无效,请确认"
);
var
apramounts
=
perapramountRepository
.
GetEntities
(
t
=>
(
t
.
DoctorName
??
""
)
==
request
.
DoctorName
&&
(
t
.
PersonnelNumber
??
""
)
==
request
.
PersonnelNumber
);
foreach
(
var
item
in
apramounts
)
{
item
.
Status
=
(
request
.
IsPass
==
1
)
?
3
:
4
;
item
.
AuditUser
=
userid
;
item
.
AuditTime
=
DateTime
.
Now
;
item
.
Remark
=
request
.
Remark
;
perapramountRepository
.
UpdateRange
(
apramounts
.
ToArray
());
}
return
perapramountRepository
.
UpdateRange
(
apramounts
.
ToArray
())
;
}
return
true
;
}
public
void
ImpoerAprEmployees
(
int
allotid
,
string
path
,
int
userid
)
...
...
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