调整接口
This commit is contained in:
Binary file not shown.
@@ -300,19 +300,21 @@ namespace WMS.Web.Api.Controllers
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="billNo"></param>
|
/// <param name="billNo"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpGet]
|
[HttpPost]
|
||||||
[Route("GetInfoByNo/{billNo}")]
|
[Route("GetInfoByNo")]
|
||||||
public async Task<Result<OutStockTaskInfoResponse>> GetInfoByNo([FromRoute] string billNo)
|
public async Task<Result<OutStockTaskInfoResponse>> GetInfoByNo([FromBody] OutStockTaskInfoRequest dto)
|
||||||
{
|
{
|
||||||
var loginInfo = _loginService.GetLoginInfo(this.HttpContext.Request.Headers["Authorization"]);
|
var loginInfo = _loginService.GetLoginInfo(this.HttpContext.Request.Headers["Authorization"]);
|
||||||
if (loginInfo == null || loginInfo.UserInfo == null)
|
if (loginInfo == null || loginInfo.UserInfo == null)
|
||||||
return Result<OutStockTaskInfoResponse>.ReFailure(ResultCodes.Token_Invalid_Error);
|
return Result<OutStockTaskInfoResponse>.ReFailure(ResultCodes.Token_Invalid_Error);
|
||||||
|
|
||||||
var entity = await _repositories.GetByBillNo(billNo);
|
var entity = await _repositories.GetByBillNo(dto.BillNo);
|
||||||
if (entity == null)
|
if (entity == null)
|
||||||
return Result<OutStockTaskInfoResponse>.ReFailure(ResultCodes.OutStockTaskNoData);
|
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>
|
<param name="id"></param>
|
||||||
<returns></returns>
|
<returns></returns>
|
||||||
</member>
|
</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>
|
||||||
出库任务单详情(根据订单号搜索)
|
出库任务单详情(根据订单号搜索)
|
||||||
</summary>
|
</summary>
|
||||||
|
|||||||
@@ -5334,6 +5334,16 @@
|
|||||||
出库单对应箱明细Id
|
出库单对应箱明细Id
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</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">
|
<member name="T:WMS.Web.Core.Dto.OutStockTask.OutStockTaskInfoResponse">
|
||||||
<summary>
|
<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