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
6e573a49
Commit
6e573a49
authored
Dec 01, 2021
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加接口及注释
parent
158813c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
8 deletions
+20
-8
performance/Performance.Api/Controllers/EmployeeController.cs
+19
-7
performance/Performance.Api/wwwroot/Performance.Api.xml
+1
-1
No files found.
performance/Performance.Api/Controllers/EmployeeController.cs
View file @
6e573a49
...
@@ -740,7 +740,7 @@ public ApiResponse GetDeptComparison([FromBody] ComparisonPagingRequest request)
...
@@ -740,7 +740,7 @@ public ApiResponse GetDeptComparison([FromBody] ComparisonPagingRequest request)
#
region
手工录入
#
region
手工录入
/// <summary>
/// <summary>
/// 手工录入
/// 手工录入
- 下拉列表
/// </summary>
/// </summary>
/// <param name="allotId"></param>
/// <param name="allotId"></param>
/// <returns></returns>
/// <returns></returns>
...
@@ -757,19 +757,19 @@ public ApiResponse GetGatherDrop([FromRoute] int allotId)
...
@@ -757,19 +757,19 @@ public ApiResponse GetGatherDrop([FromRoute] int allotId)
/// <summary>
/// <summary>
/// 手工录入
/// 手工录入
- 录入界面
/// </summary>
/// </summary>
/// <param name="allotId"></param>
/// <param name="allotId"></param>
/// <param name="request"></param>
/// <param name="request"></param>
/// <returns></returns>
/// <returns></returns>
[
Route
(
"getgatherhands/{allotId}"
)]
[
Route
(
"getgatherhands/{allotId}"
)]
[
HttpPost
]
[
HttpPost
]
public
ApiResponse
GetGatherHands
([
FromRoute
]
int
allotId
,[
FromBody
]
GatherRequest
request
)
public
ApiResponse
GetGatherHands
([
FromRoute
]
int
allotId
,
[
FromBody
]
GatherRequest
request
)
{
{
if
(
allotId
<=
0
)
if
(
allotId
<=
0
)
return
new
ApiResponse
(
ResponseType
.
Fail
,
"参数错误"
,
"allotid无效"
);
return
new
ApiResponse
(
ResponseType
.
Fail
,
"参数错误"
,
"allotid无效"
);
var
relust
=
employeeService
.
GetGatherHands
(
allotId
,
request
);
var
relust
=
employeeService
.
GetGatherHands
(
allotId
,
request
);
return
new
ApiResponse
(
ResponseType
.
OK
,
relust
);
return
new
ApiResponse
(
ResponseType
.
OK
,
relust
);
}
}
...
@@ -792,9 +792,8 @@ public ApiResponse SaveGatherHands(int allotId, [FromBody] SaveGatherData reques
...
@@ -792,9 +792,8 @@ public ApiResponse SaveGatherHands(int allotId, [FromBody] SaveGatherData reques
return
new
ApiResponse
(
ResponseType
.
OK
);
return
new
ApiResponse
(
ResponseType
.
OK
);
}
}
/// <summary>
/// <summary>
/// 手工录入列表
/// 手工录入列表
- 明细
/// </summary>
/// </summary>
/// <param name="allotId"></param>
/// <param name="allotId"></param>
/// <param name="request"></param>
/// <param name="request"></param>
...
@@ -806,11 +805,24 @@ public ApiResponse GetGather([FromRoute] int allotId, [FromBody] PersonParamsReq
...
@@ -806,11 +805,24 @@ public ApiResponse GetGather([FromRoute] int allotId, [FromBody] PersonParamsReq
if
(
allotId
<=
0
)
if
(
allotId
<=
0
)
return
new
ApiResponse
(
ResponseType
.
Fail
,
"参数错误"
,
"allotid无效"
);
return
new
ApiResponse
(
ResponseType
.
Fail
,
"参数错误"
,
"allotid无效"
);
var
result
=
employeeService
.
GetGather
(
allotId
,
request
);
var
result
=
employeeService
.
GetGather
(
allotId
,
request
);
return
new
ApiResponse
(
ResponseType
.
OK
,
result
);
return
new
ApiResponse
(
ResponseType
.
OK
,
result
);
}
}
/// <summary>
/// 手工录入列表 - 汇总
/// </summary>
/// <param name="allotId"></param>
/// <param name="request"></param>
/// <returns></returns>
[
Route
(
"getgathertotal/{allotId}"
)]
[
HttpPost
]
public
ApiResponse
GetGatherTotal
([
FromRoute
]
int
allotId
,
[
FromBody
]
PersonParamsRequest
request
)
{
return
new
ApiResponse
(
ResponseType
.
OK
);
}
#
endregion
#
endregion
}
}
}
}
performance/Performance.Api/wwwroot/Performance.Api.xml
View file @
6e573a49
...
@@ -1195,7 +1195,7 @@
...
@@ -1195,7 +1195,7 @@
</member>
</member>
<member
name=
"M:Performance.Api.Controllers.EmployeeController.GetGatherDrop(System.Int32)"
>
<member
name=
"M:Performance.Api.Controllers.EmployeeController.GetGatherDrop(System.Int32)"
>
<summary>
<summary>
手工录入
手工录入
- 下拉列表
</summary>
</summary>
<param
name=
"allotId"
></param>
<param
name=
"allotId"
></param>
<returns></returns>
<returns></returns>
...
...
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