调整接口
This commit is contained in:
Binary file not shown.
@@ -300,19 +300,21 @@ namespace WMS.Web.Api.Controllers
|
||||
/// </summary>
|
||||
/// <param name="billNo"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
[Route("GetInfoByNo/{billNo}")]
|
||||
public async Task<Result<OutStockTaskInfoResponse>> GetInfoByNo([FromRoute] string billNo)
|
||||
[HttpPost]
|
||||
[Route("GetInfoByNo")]
|
||||
public async Task<Result<OutStockTaskInfoResponse>> GetInfoByNo([FromBody] OutStockTaskInfoRequest dto)
|
||||
{
|
||||
var loginInfo = _loginService.GetLoginInfo(this.HttpContext.Request.Headers["Authorization"]);
|
||||
if (loginInfo == null || loginInfo.UserInfo == null)
|
||||
return Result<OutStockTaskInfoResponse>.ReFailure(ResultCodes.Token_Invalid_Error);
|
||||
|
||||
var entity = await _repositories.GetByBillNo(billNo);
|
||||
var entity = await _repositories.GetByBillNo(dto.BillNo);
|
||||
if (entity == null)
|
||||
return Result<OutStockTaskInfoResponse>.ReFailure(ResultCodes.OutStockTaskNoData);
|
||||
|
||||
return await _outStockTaskService.GetInfo(entity.Id, loginInfo);
|
||||
var response = await _outStockTaskService.GetInfo(entity.Id, loginInfo);
|
||||
response.Data.Details = response.Data.Details.Skip((dto.PageNo - 1) * dto.PageSize).Take(dto.PageSize).ToList();
|
||||
return response;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
<param name="id"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:WMS.Web.Api.Controllers.OutStockTaskController.GetInfoByNo(System.String)">
|
||||
<member name="M:WMS.Web.Api.Controllers.OutStockTaskController.GetInfoByNo(WMS.Web.Core.Dto.OutStockTask.OutStockTaskInfoRequest)">
|
||||
<summary>
|
||||
出库任务单详情(根据订单号搜索)
|
||||
</summary>
|
||||
|
||||
@@ -5334,6 +5334,16 @@
|
||||
出库单对应箱明细Id
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:WMS.Web.Core.Dto.OutStockTask.OutStockTaskInfoRequest">
|
||||
<summary>
|
||||
出库任务单详情(根据订单号搜索)
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:WMS.Web.Core.Dto.OutStockTask.OutStockTaskInfoRequest.BillNo">
|
||||
<summary>
|
||||
出库任务单编号
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:WMS.Web.Core.Dto.OutStockTask.OutStockTaskInfoResponse">
|
||||
<summary>
|
||||
出库任务单详情
|
||||
|
||||
17
src/WMS.Web.Core/Dto/OutStockTask/OutStockTaskInfoRequest.cs
Normal file
17
src/WMS.Web.Core/Dto/OutStockTask/OutStockTaskInfoRequest.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace WMS.Web.Core.Dto.OutStockTask
|
||||
{
|
||||
/// <summary>
|
||||
/// 出库任务单详情(根据订单号搜索)
|
||||
/// </summary>
|
||||
public class OutStockTaskInfoRequest:PaginationBaseRequestDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 出库任务单编号
|
||||
/// </summary>
|
||||
public string BillNo { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user