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
cb367f2c
Commit
cb367f2c
authored
Feb 20, 2023
by
wyc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
医院其他绩效类型和不公示医院其他绩效类型(增删改查)
parent
937bdf51
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
189 additions
and
10 deletions
+189
-10
performance/Performance.Api/Controllers/EmployeeController.cs
+60
-6
performance/Performance.Api/wwwroot/Performance.Api.xml
+31
-2
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
+35
-0
performance/Performance.DtoModels/Request/AprTypeRequest.cs
+0
-2
performance/Performance.EntityModels/Context/PerformanceDbContext.cs
+1
-0
performance/Performance.EntityModels/Entity/per_apr_amount_hide_type.cs
+42
-0
performance/Performance.Repository/Repository/PerAprAmountTypeHideRepository.cs
+20
-0
performance/Performance.Services/EmployeeService.cs
+0
-0
No files found.
performance/Performance.Api/Controllers/EmployeeController.cs
View file @
cb367f2c
...
...
@@ -1193,12 +1193,10 @@ public ApiResponse<List<per_apr_amount_type>> GetAprTypeList([FromRoute] int all
[
HttpPost
]
public
ApiResponse
<
AprTypeRequest
>
InsertAprType
([
FromBody
]
AprTypeRequest
request
)
{
if
(!
string
.
IsNullOrEmpty
(
request
.
PerforType
.
Trim
()))
{
request
.
CreateUser
=
claim
.
GetUserId
();
return
employeeService
.
InsertAprType
(
request
);
}
else
return
new
ApiResponse
<
AprTypeRequest
>(
ResponseType
.
Fail
,
"请填写类型"
);
var
createUser
=
claim
.
GetUserId
();
return
employeeService
.
InsertAprType
(
createUser
,
request
);
}
/// <summary>
...
...
@@ -1226,5 +1224,61 @@ public ApiResponse DeleteAprType([FromQuery] int typeId)
return
employeeService
.
DeleteAprType
(
typeId
);
}
#
endregion
#
region
不公示医院其他绩效类型
/// <summary>
/// 不公示医院其他绩效类型清单
/// </summary>
/// <param name="allotId"></param>
/// <returns></returns>
[
Route
(
"apr/hide/type/list/{allotId}"
)]
[
HttpPost
]
public
ApiResponse
<
List
<
per_apr_amount_hide_type
>>
GetAprTypeListHide
([
FromRoute
]
int
allotId
)
{
return
employeeService
.
GetAprTypeListHide
(
allotId
);
}
/// <summary>
/// 不公示医院其他绩效列表清单添加
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[
Route
(
"apr/hide/type/insert"
)]
[
HttpPost
]
public
ApiResponse
<
AprTypeRequest
>
InsertAprTypeHide
([
FromBody
]
AprTypeRequest
request
)
{
var
createUser
=
claim
.
GetUserId
();
return
employeeService
.
InsertAprTypeHide
(
createUser
,
request
);
}
/// <summary>
/// 不公示医院其他绩效列表清单修改
/// </summary>
/// <param name="typeId"></param>
/// <param name="request"></param>
/// <returns></returns>
[
Route
(
"apr/hide/type/update"
)]
[
HttpPost
]
public
ApiResponse
<
AprTypeRequest
>
UpdateAprTypehide
([
FromQuery
]
int
typeId
,
[
FromBody
]
AprTypeRequest
request
)
{
return
employeeService
.
UpdateAprTypeHide
(
typeId
,
request
);
}
/// <summary>
/// 不公示医院其他绩效列表清单删除
/// </summary>
/// <param name="typeId"></param>
/// <returns></returns>
[
Route
(
"apr/hide/type/delete"
)]
[
HttpPost
]
public
ApiResponse
DeleteAprTypeHide
([
FromQuery
]
int
typeId
)
{
return
employeeService
.
DeleteAprTypeHide
(
typeId
);
}
#
endregion
}
}
performance/Performance.Api/wwwroot/Performance.Api.xml
View file @
cb367f2c
...
...
@@ -1475,7 +1475,7 @@
</member>
<member
name=
"M:Performance.Api.Controllers.EmployeeController.UpdateAprType(System.Int32,Performance.DtoModels.Request.AprTypeRequest)"
>
<summary>
医院其他绩效列表清单
医院其他绩效列表清单
修改
</summary>
<param
name=
"typeId"
></param>
<param
name=
"request"
></param>
...
...
@@ -1483,7 +1483,36 @@
</member>
<member
name=
"M:Performance.Api.Controllers.EmployeeController.DeleteAprType(System.Int32)"
>
<summary>
医院其他绩效列表清单
医院其他绩效列表清单删除
</summary>
<param
name=
"typeId"
></param>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.EmployeeController.GetAprTypeListHide(System.Int32)"
>
<summary>
不公示医院其他绩效类型清单
</summary>
<param
name=
"allotId"
></param>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.EmployeeController.InsertAprTypeHide(Performance.DtoModels.Request.AprTypeRequest)"
>
<summary>
不公示医院其他绩效列表清单添加
</summary>
<param
name=
"request"
></param>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.EmployeeController.UpdateAprTypehide(System.Int32,Performance.DtoModels.Request.AprTypeRequest)"
>
<summary>
不公示医院其他绩效列表清单修改
</summary>
<param
name=
"typeId"
></param>
<param
name=
"request"
></param>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.EmployeeController.DeleteAprTypeHide(System.Int32)"
>
<summary>
不公示医院其他绩效列表清单删除
</summary>
<param
name=
"typeId"
></param>
<returns></returns>
...
...
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
View file @
cb367f2c
...
...
@@ -6048,6 +6048,41 @@
</summary>
</member>
<member
name=
"T:Performance.EntityModels.Entity.per_apr_amount_hide_type"
>
<summary>
不公示医院其他绩效类型
</summary>
</member>
<member
name=
"P:Performance.EntityModels.Entity.per_apr_amount_hide_type.Id"
>
<summary>
</summary>
</member>
<member
name=
"P:Performance.EntityModels.Entity.per_apr_amount_hide_type.AllotId"
>
<summary>
</summary>
</member>
<member
name=
"P:Performance.EntityModels.Entity.per_apr_amount_hide_type.PerforType"
>
<summary>
费用类型
</summary>
</member>
<member
name=
"P:Performance.EntityModels.Entity.per_apr_amount_hide_type.CreateDate"
>
<summary>
创建时间
</summary>
</member>
<member
name=
"P:Performance.EntityModels.Entity.per_apr_amount_hide_type.CreateUser"
>
<summary>
创建人
</summary>
</member>
<member
name=
"P:Performance.EntityModels.Entity.per_apr_amount_hide_type.UpdateTime"
>
<summary>
修改时间
</summary>
</member>
<member
name=
"T:Performance.EntityModels.Entity.per_apr_amount_type"
>
<summary>
医院其他绩效类型
...
...
performance/Performance.DtoModels/Request/AprTypeRequest.cs
View file @
cb367f2c
...
...
@@ -10,7 +10,5 @@ public class AprTypeRequest
{
public
int
AllotId
{
get
;
set
;
}
public
string
PerforType
{
get
;
set
;
}
public
int
CreateUser
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Context/PerformanceDbContext.cs
View file @
cb367f2c
...
...
@@ -259,6 +259,7 @@ public PerformanceDbContext(DbContextOptions<PerformanceDbContext> options)
public
virtual
DbSet
<
per_allot_action
>
per_allot_action
{
get
;
set
;
}
public
virtual
DbSet
<
per_apr_amount_type
>
per_apr_amount_type
{
get
;
set
;
}
public
virtual
DbSet
<
per_apr_amount_hide_type
>
per_apr_amount_hide_type
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Entity/per_apr_amount_hide_type.cs
0 → 100644
View file @
cb367f2c
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels.Entity
{
/// <summary>
/// 不公示医院其他绩效类型
/// </summary>
[
Table
(
"per_apr_amount_hide_type"
)]
public
class
per_apr_amount_hide_type
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
Id
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
int
AllotId
{
get
;
set
;
}
/// <summary>
/// 费用类型
/// </summary>
public
string
PerforType
{
get
;
set
;
}
/// <summary>
/// 创建时间
/// </summary>
public
DateTime
CreateDate
{
get
;
set
;
}
/// <summary>
/// 创建人
/// </summary>
public
int
CreateUser
{
get
;
set
;
}
/// <summary>
/// 修改时间
/// </summary>
public
DateTime
UpdateTime
{
get
;
set
;
}
}
}
performance/Performance.Repository/Repository/PerAprAmountTypeHideRepository.cs
0 → 100644
View file @
cb367f2c
using
Performance.EntityModels
;
using
Performance.EntityModels.Entity
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Performance.Repository.Repository
{
public
partial
class
PerAprAmountTypeHideRepository
:
PerforRepository
<
per_apr_amount_hide_type
>
{
/// <summary>
/// per_attendance_type Repository
/// </summary>
public
PerAprAmountTypeHideRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
}
performance/Performance.Services/EmployeeService.cs
View file @
cb367f2c
This diff is collapsed.
Click to expand it.
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