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
a8c5d9ee
Commit
a8c5d9ee
authored
Mar 28, 2022
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitflow-feature-stash: 审计
parent
a7f11b4f
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
241 additions
and
47 deletions
+241
-47
performance/Performance.Api/Controllers/EmployeeController.cs
+31
-2
performance/Performance.Api/Controllers/SecondAllotController.cs
+21
-0
performance/Performance.Api/wwwroot/Performance.Api.xml
+13
-1
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
+6
-0
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
+15
-25
performance/Performance.DtoModels/Request/AprAmountMarkRequest.cs
+14
-0
performance/Performance.DtoModels/Request/SecondMarkRequest.cs
+8
-0
performance/Performance.DtoModels/Response/OhterAmountAuditResponse.cs
+17
-0
performance/Performance.EntityModels/Entity/ag_secondallot.cs
+23
-19
performance/Performance.EntityModels/Entity/per_apr_amount.cs
+6
-0
performance/Performance.EntityModels/Entity/per_apr_amount_hide.cs
+6
-0
performance/Performance.Services/EmployeeService.cs
+61
-0
performance/Performance.Services/SecondAllotService.cs
+20
-0
No files found.
performance/Performance.Api/Controllers/EmployeeController.cs
View file @
a8c5d9ee
...
...
@@ -4,6 +4,7 @@
using
Microsoft.AspNetCore.Mvc
;
using
Performance.DtoModels
;
using
Performance.DtoModels.Request
;
using
Performance.DtoModels.Response
;
using
Performance.EntityModels
;
using
Performance.Infrastructure
;
using
Performance.Services
;
...
...
@@ -294,11 +295,13 @@ public ApiResponse GetAprGroupList([FromBody] AllotIdRequest request)
return
new
ApiResponse
(
ResponseType
.
OK
,
"ok"
,
employee
);
var
result
=
employee
.
GroupBy
(
t
=>
new
{
TypeInDepartment
=
t
.
TypeInDepartment
??
""
})
.
Select
(
t
=>
new
per_apr_amount
.
Select
(
t
=>
new
OhterAmountAuditResponse
{
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
,
AuditTime
=
t
.
Any
(
s
=>
s
.
Status
==
2
)
?
""
:
t
.
Max
(
w
=>
w
.
AuditTime
)?.
ToString
(
"yyyy-MM-dd HH:mm:ss"
),
Remark
=
t
.
Any
(
s
=>
!
s
.
MarkStatus
.
HasValue
)
?
""
:
$"已审计(
{
t
.
Max
(
w
=>
w
.
MarkTime
)?.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
)"
});
return
new
ApiResponse
(
ResponseType
.
OK
,
"ok"
,
result
);
}
...
...
@@ -401,6 +404,18 @@ public ApiResponse AuditResult([FromBody] AprAmountAuditRequest request)
}
/// <summary>
/// 医院其他绩效审计
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
Route
(
"apr/mark"
)]
public
ApiResponse
AprMark
([
FromBody
]
AprAmountMarkRequest
request
)
{
var
userid
=
claim
.
GetUserId
();
return
employeeService
.
AprMark
(
userid
,
request
);
}
/// <summary>
/// 上传医院其他绩效文件
/// </summary>
/// <param name="form"></param>
...
...
@@ -582,11 +597,13 @@ public ApiResponse GetAprHideGroupList([FromBody] AllotIdRequest request)
return
new
ApiResponse
(
ResponseType
.
OK
,
"ok"
,
employee
);
var
result
=
employee
.
GroupBy
(
t
=>
new
{
TypeInDepartment
=
t
.
TypeInDepartment
??
""
})
.
Select
(
t
=>
new
per_apr_amount
.
Select
(
t
=>
new
OhterAmountAuditResponse
{
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
,
AuditTime
=
t
.
Any
(
s
=>
s
.
Status
==
2
)
?
""
:
t
.
Max
(
w
=>
w
.
AuditTime
)?.
ToString
(
"yyyy-MM-dd HH:mm:ss"
),
Remark
=
t
.
Any
(
s
=>
!
s
.
MarkStatus
.
HasValue
)
?
""
:
$"已审计(
{
t
.
Max
(
w
=>
w
.
MarkTime
)?.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
)"
});
return
new
ApiResponse
(
ResponseType
.
OK
,
"ok"
,
result
);
}
...
...
@@ -688,6 +705,18 @@ public ApiResponse AuditResultHide([FromBody] AprAmountAuditRequest request)
}
/// <summary>
/// 不公示其他绩效审计
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
Route
(
"apr/hide/mark"
)]
public
ApiResponse
AprMarkHide
([
FromBody
]
AprAmountMarkRequest
request
)
{
var
userid
=
claim
.
GetUserId
();
return
employeeService
.
AprMarkHide
(
userid
,
request
);
}
/// <summary>
/// 上传不公示其他绩效
/// </summary>
/// <param name="form"></param>
...
...
performance/Performance.Api/Controllers/SecondAllotController.cs
View file @
a8c5d9ee
...
...
@@ -371,6 +371,11 @@ public ApiResponse SubmitAudit(SubmitAuditRequest request)
public
ApiResponse
<
List
<
ag_secondallot
>>
AuditList
([
FromBody
]
AllotDeptRequest
request
)
{
var
list
=
secondAllotService
.
AuditList
(
request
.
AllotId
);
foreach
(
var
item
in
list
)
{
item
.
Remark
+=
item
.
MarkStatus
.
HasValue
?
" "
:
$" 已审计(
{
item
.
MarkTime
?.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
)"
;
}
return
new
ApiResponse
<
List
<
ag_secondallot
>>(
ResponseType
.
OK
,
"审核列表"
,
list
);
}
...
...
@@ -392,6 +397,22 @@ public ApiResponse AuditResult([FromBody] SecondAuditRequest request)
}
/// <summary>
/// 二次绩效审计
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
Route
(
"/api/second/audit/result"
)]
public
ApiResponse
SecondMark
([
FromBody
]
SecondMarkRequest
request
)
{
if
(
request
?.
SecondIds
==
null
||
!
request
.
SecondIds
.
Any
())
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"参数SecondIds无效!"
);
var
userid
=
claimService
.
GetUserId
();
var
result
=
secondAllotService
.
SecondMark
(
userid
,
request
.
SecondIds
);
return
result
?
new
ApiResponse
(
ResponseType
.
OK
,
"操作成功"
)
:
new
ApiResponse
(
ResponseType
.
Fail
,
"操作失败"
);
}
/// <summary>
/// 护理部二次绩效审核列表
/// </summary>
/// <returns></returns>
...
...
performance/Performance.Api/wwwroot/Performance.Api.xml
View file @
a8c5d9ee
...
...
@@ -806,7 +806,7 @@
</member>
<member
name=
"M:Performance.Api.Controllers.ConfigController.BatchCheckAccounting(System.Int32)"
>
<summary>
核算单元及组别
批量添加
核算单元及组别
检验
</summary>
<param
name=
"allotId"
></param>
<returns></returns>
...
...
@@ -1091,6 +1091,12 @@
</summary>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.EmployeeController.AprMark(Performance.DtoModels.AprAmountMarkRequest)"
>
<summary>
医院其他绩效审计
</summary>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.EmployeeController.Import(Microsoft.AspNetCore.Http.IFormCollection)"
>
<summary>
上传医院其他绩效文件
...
...
@@ -1183,6 +1189,12 @@
</summary>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.EmployeeController.AprMarkHide(Performance.DtoModels.AprAmountMarkRequest)"
>
<summary>
不公示其他绩效审计
</summary>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.EmployeeController.ImportAprHide(Microsoft.AspNetCore.Http.IFormCollection)"
>
<summary>
上传不公示其他绩效
...
...
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
View file @
a8c5d9ee
...
...
@@ -1918,6 +1918,9 @@
<member
name=
"P:Performance.DtoModels.AprAmountAuditRequest.Remark"
>
<summary>
备注
</summary>
</member>
<member
name=
"P:Performance.DtoModels.AprAmountMarkRequest.AllotId"
>
<summary>
绩效ID
</summary>
</member>
<member
name=
"P:Performance.DtoModels.Request.BatchDetail.UnitType"
>
<summary>
核算单元分类
...
...
@@ -2436,6 +2439,9 @@
<member
name=
"P:Performance.DtoModels.SecondAuditRequest.Remark"
>
<summary>
备注
</summary>
</member>
<member
name=
"P:Performance.DtoModels.SecondMarkRequest.SecondIds"
>
<summary>
二次绩效Id
</summary>
</member>
<member
name=
"T:Performance.DtoModels.SetDepartmentRequest"
>
<summary>
登录请求
...
...
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
View file @
a8c5d9ee
...
...
@@ -1070,11 +1070,6 @@
二次绩效列表
</summary>
</member>
<member
name=
"P:Performance.EntityModels.ag_secondallot.Id"
>
<summary>
</summary>
</member>
<member
name=
"P:Performance.EntityModels.ag_secondallot.AllotId"
>
<summary>
绩效ID
...
...
@@ -1115,26 +1110,6 @@
预发金额
</summary>
</member>
<member
name=
"P:Performance.EntityModels.ag_secondallot.Efficiency"
>
<summary>
效率绩效
</summary>
</member>
<member
name=
"P:Performance.EntityModels.ag_secondallot.Scale"
>
<summary>
规模绩效
</summary>
</member>
<member
name=
"P:Performance.EntityModels.ag_secondallot.Grant"
>
<summary>
发放系数
</summary>
</member>
<member
name=
"P:Performance.EntityModels.ag_secondallot.ShouldGiveFee"
>
<summary>
应发管理绩效
</summary>
</member>
<member
name=
"P:Performance.EntityModels.ag_secondallot.Status"
>
<summary>
状态 1 未提交 2 等待审核 3 审核通过 4 驳回
...
...
@@ -1190,6 +1165,11 @@
夜班绩效
</summary>
</member>
<member
name=
"P:Performance.EntityModels.ag_secondallot.MarkStatus"
>
<summary>
审计状态 1 已审计
</summary>
</member>
<member
name=
"T:Performance.EntityModels.ag_temp"
>
<summary>
二次绩效模板
...
...
@@ -6040,6 +6020,11 @@
验证失败描述
</summary>
</member>
<member
name=
"P:Performance.EntityModels.per_apr_amount.MarkStatus"
>
<summary>
审计状态 1 已审计
</summary>
</member>
<member
name=
"T:Performance.EntityModels.per_apr_amount_hide"
>
<summary>
医院其他绩效
...
...
@@ -6120,6 +6105,11 @@
验证失败描述
</summary>
</member>
<member
name=
"P:Performance.EntityModels.per_apr_amount_hide.MarkStatus"
>
<summary>
审计状态 1 已审计
</summary>
</member>
<member
name=
"T:Performance.EntityModels.per_batch"
>
<summary>
分批发放记录
...
...
performance/Performance.DtoModels/Request/AprAmountMarkRequest.cs
0 → 100644
View file @
a8c5d9ee
using
FluentValidation
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Performance.DtoModels
{
public
class
AprAmountMarkRequest
{
/// <summary> 绩效ID </summary>
public
int
AllotId
{
get
;
set
;
}
public
string
[]
TypeInDepartments
{
get
;
set
;
}
}
}
performance/Performance.DtoModels/Request/SecondMarkRequest.cs
0 → 100644
View file @
a8c5d9ee
namespace
Performance.DtoModels
{
public
class
SecondMarkRequest
{
/// <summary> 二次绩效Id </summary>
public
int
[]
SecondIds
{
get
;
set
;
}
}
}
performance/Performance.DtoModels/Response/OhterAmountAuditResponse.cs
0 → 100644
View file @
a8c5d9ee
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Performance.DtoModels.Response
{
public
class
OhterAmountAuditResponse
{
public
string
TypeInDepartment
{
get
;
set
;
}
public
decimal
Amount
{
get
;
set
;
}
public
int
?
Status
{
get
;
set
;
}
public
string
AuditTime
{
get
;
set
;
}
public
string
Remark
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Entity/ag_secondallot.cs
View file @
a8c5d9ee
...
...
@@ -15,9 +15,6 @@ namespace Performance.EntityModels
[
Table
(
"ag_secondallot"
)]
public
class
ag_secondallot
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
Id
{
get
;
set
;
}
...
...
@@ -60,25 +57,25 @@ public class ag_secondallot
/// 预发金额
/// </summary>
public
Nullable
<
decimal
>
PreRealGiveFee
{
get
;
set
;
}
/// <summary>
/// 效率绩效
/// </summary>
public
Nullable
<
decimal
>
Efficiency
{
get
;
set
;
}
///
//
<summary>
///
//
效率绩效
///
//
</summary>
//
public Nullable<decimal> Efficiency { get; set; }
/// <summary>
/// 规模绩效
/// </summary>
public
Nullable
<
decimal
>
Scale
{
get
;
set
;
}
///
//
<summary>
///
//
规模绩效
///
//
</summary>
//
public Nullable<decimal> Scale { get; set; }
/// <summary>
/// 发放系数
/// </summary>
public
Nullable
<
decimal
>
Grant
{
get
;
set
;
}
///
//
<summary>
///
//
发放系数
///
//
</summary>
//
public Nullable<decimal> Grant { get; set; }
/// <summary>
/// 应发管理绩效
/// </summary>
public
Nullable
<
decimal
>
ShouldGiveFee
{
get
;
set
;
}
///
//
<summary>
///
//
应发管理绩效
///
//
</summary>
//
public Nullable<decimal> ShouldGiveFee { get; set; }
/// <summary>
/// 状态 1 未提交 2 等待审核 3 审核通过 4 驳回
...
...
@@ -134,5 +131,12 @@ public class ag_secondallot
/// 夜班绩效
/// </summary>
public
Nullable
<
decimal
>
NightShiftWorkPerforFee
{
get
;
set
;
}
/// <summary>
/// 审计状态 1 已审计
/// </summary>
public
Nullable
<
int
>
MarkStatus
{
get
;
set
;
}
public
Nullable
<
int
>
MarkUser
{
get
;
set
;
}
public
Nullable
<
DateTime
>
MarkTime
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Entity/per_apr_amount.cs
View file @
a8c5d9ee
...
...
@@ -95,5 +95,11 @@ public class per_apr_amount
/// 验证失败描述
/// </summary>
public
string
VerifyMessage
{
get
;
set
;
}
/// <summary>
/// 审计状态 1 已审计
/// </summary>
public
Nullable
<
int
>
MarkStatus
{
get
;
set
;
}
public
Nullable
<
int
>
MarkUser
{
get
;
set
;
}
public
Nullable
<
DateTime
>
MarkTime
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Entity/per_apr_amount_hide.cs
View file @
a8c5d9ee
...
...
@@ -90,5 +90,11 @@ public class per_apr_amount_hide
/// 验证失败描述
/// </summary>
public
string
VerifyMessage
{
get
;
set
;
}
/// <summary>
/// 审计状态 1 已审计
/// </summary>
public
Nullable
<
int
>
MarkStatus
{
get
;
set
;
}
public
Nullable
<
int
>
MarkUser
{
get
;
set
;
}
public
Nullable
<
DateTime
>
MarkTime
{
get
;
set
;
}
}
}
performance/Performance.Services/EmployeeService.cs
View file @
a8c5d9ee
...
...
@@ -582,6 +582,37 @@ public ApiResponse ConfirmAudit(int userid, AprAmountAuditRequest request)
}
return
new
ApiResponse
(
ResponseType
.
OK
,
""
);
}
/// <summary>
/// 医院其他绩效审计
/// </summary>
/// <param name="userid"></param>
/// <param name="request"></param>
/// <returns></returns>
public
ApiResponse
AprMark
(
int
userid
,
AprAmountMarkRequest
request
)
{
List
<
Dictionary
<
string
,
string
>>
error
=
new
List
<
Dictionary
<
string
,
string
>>();
if
(
request
?.
TypeInDepartments
==
null
||
!
request
.
TypeInDepartments
.
Any
())
throw
new
PerformanceException
(
"审计信息无效,请确认"
);
var
allApramounts
=
perapramountRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
request
.
AllotId
);
foreach
(
var
department
in
request
.
TypeInDepartments
)
{
var
apramounts
=
allApramounts
?.
Where
(
t
=>
t
.
TypeInDepartment
==
department
);
if
(
apramounts
!=
null
&&
apramounts
.
Any
())
{
foreach
(
var
item
in
apramounts
)
{
item
.
MarkStatus
=
1
;
item
.
MarkUser
=
userid
;
item
.
MarkTime
=
DateTime
.
Now
;
perapramountRepository
.
UpdateRange
(
apramounts
.
ToArray
());
}
}
}
return
new
ApiResponse
(
ResponseType
.
OK
,
""
);
}
/// <summary>
/// 上传导入医院其他绩效
/// </summary>
...
...
@@ -1007,6 +1038,36 @@ public ApiResponse ConfirmAuditHide(int userid, AprAmountAuditRequest request)
}
return
new
ApiResponse
(
ResponseType
.
OK
,
""
);
}
/// <summary>
/// 不公示其他绩效审计
/// </summary>
/// <param name="userid"></param>
/// <param name="request"></param>
/// <returns></returns>
public
ApiResponse
AprMarkHide
(
int
userid
,
AprAmountMarkRequest
request
)
{
List
<
Dictionary
<
string
,
string
>>
error
=
new
List
<
Dictionary
<
string
,
string
>>();
if
(
request
?.
TypeInDepartments
==
null
||
!
request
.
TypeInDepartments
.
Any
())
throw
new
PerformanceException
(
"审计信息无效,请确认"
);
var
allApramounts
=
_hideRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
request
.
AllotId
);
foreach
(
var
department
in
request
.
TypeInDepartments
)
{
var
apramounts
=
allApramounts
?.
Where
(
t
=>
t
.
TypeInDepartment
==
department
);
if
(
apramounts
!=
null
&&
apramounts
.
Any
())
{
foreach
(
var
item
in
apramounts
)
{
item
.
MarkStatus
=
1
;
item
.
MarkUser
=
userid
;
item
.
MarkTime
=
DateTime
.
Now
;
_hideRepository
.
UpdateRange
(
apramounts
.
ToArray
());
}
}
}
return
new
ApiResponse
(
ResponseType
.
OK
,
""
);
}
/// <summary>
/// 上传导入医院其他绩效
...
...
performance/Performance.Services/SecondAllotService.cs
View file @
a8c5d9ee
...
...
@@ -1742,6 +1742,26 @@ public bool ConfirmAudit(int userId, SecondAuditRequest request)
return
result
;
}
/// <summary>
/// 审计
/// </summary>
/// <param name="userId"></param>
/// <param name="secondIds"></param>
/// <returns></returns>
public
bool
SecondMark
(
int
userId
,
int
[]
secondIds
)
{
var
seconds
=
agsecondallotRepository
.
GetEntities
(
t
=>
secondIds
.
Contains
(
t
.
Id
));
if
(
seconds
==
null
||
!
seconds
.
Any
())
throw
new
PerformanceException
(
"未能找到二次分配核算记录!"
);
foreach
(
var
item
in
seconds
)
{
item
.
MarkStatus
=
1
;
item
.
MarkUser
=
userId
;
item
.
MarkTime
=
DateTime
.
Now
;
}
return
agsecondallotRepository
.
UpdateRange
(
seconds
.
ToArray
());
}
///// <summary>
///// 审核结束 添加至二次绩效汇总
///// </summary>
...
...
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