来源单号查询-接口优化

This commit is contained in:
tongfei
2023-11-09 14:55:16 +08:00
parent e04f0eeae0
commit b396c980b0
3 changed files with 26 additions and 1 deletions

View File

@@ -80,6 +80,23 @@ namespace WMS.Web.Api.Controllers
return ResultList<InStockTaskBillNoQueryResponse>.ReSuccess(list);
}
/// <summary>
/// 来源单-编号模糊查询-pad
/// </summary>
/// <param name="code"></param>
/// <returns></returns>
[HttpPost]
[Route("InStockTask/{code}")]
public async Task<ResultList<InStockTaskBillNoQueryResponse>> InStockTask([FromRoute] string code)
{
var loginInfo = _loginService.GetLoginInfo(this.HttpContext.Request.Headers["Authorization"]);
if (loginInfo == null || loginInfo.UserInfo == null)
return ResultList<InStockTaskBillNoQueryResponse>.ReFailure(ResultCodes.Token_Invalid_Error);
var list = await _inStockTaskRepositories.GetListBy(code);
return ResultList<InStockTaskBillNoQueryResponse>.ReSuccess(list);
}
/// <summary>
/// 采购订单物料明细和箱物料明细-对比-pad
/// </summary>