Commit 6e573a49 by lcx

添加接口及注释

parent 158813c4
......@@ -740,7 +740,7 @@ public ApiResponse GetDeptComparison([FromBody] ComparisonPagingRequest request)
#region 手工录入
/// <summary>
/// 手工录入
/// 手工录入 - 下拉列表
/// </summary>
/// <param name="allotId"></param>
/// <returns></returns>
......@@ -757,19 +757,19 @@ public ApiResponse GetGatherDrop([FromRoute] int allotId)
/// <summary>
/// 手工录入
/// 手工录入 - 录入界面
/// </summary>
/// <param name="allotId"></param>
/// <param name="request"></param>
/// <returns></returns>
[Route("getgatherhands/{allotId}")]
[HttpPost]
public ApiResponse GetGatherHands([FromRoute]int allotId,[FromBody]GatherRequest request)
public ApiResponse GetGatherHands([FromRoute] int allotId, [FromBody] GatherRequest request)
{
if (allotId <= 0)
return new ApiResponse(ResponseType.Fail, "参数错误", "allotid无效");
var relust = employeeService.GetGatherHands(allotId,request);
var relust = employeeService.GetGatherHands(allotId, request);
return new ApiResponse(ResponseType.OK, relust);
}
......@@ -792,9 +792,8 @@ public ApiResponse SaveGatherHands(int allotId, [FromBody] SaveGatherData reques
return new ApiResponse(ResponseType.OK);
}
/// <summary>
/// 手工录入列表
/// 手工录入列表 - 明细
/// </summary>
/// <param name="allotId"></param>
/// <param name="request"></param>
......@@ -806,11 +805,24 @@ public ApiResponse GetGather([FromRoute] int allotId, [FromBody] PersonParamsReq
if (allotId <= 0)
return new ApiResponse(ResponseType.Fail, "参数错误", "allotid无效");
var result = employeeService.GetGather(allotId,request);
var result = employeeService.GetGather(allotId, request);
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
}
}
......@@ -1195,7 +1195,7 @@
</member>
<member name="M:Performance.Api.Controllers.EmployeeController.GetGatherDrop(System.Int32)">
<summary>
手工录入
手工录入 - 下拉列表
</summary>
<param name="allotId"></param>
<returns></returns>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment