Commit 6e573a49 by lcx

添加接口及注释

parent 158813c4
...@@ -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
} }
} }
...@@ -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>
......
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