非采购接口优化

This commit is contained in:
tongfei
2023-11-09 18:06:43 +08:00
parent 71efc00756
commit 6d0024fd49
8 changed files with 94 additions and 23 deletions

View File

@@ -81,7 +81,7 @@ namespace WMS.Web.Api.Controllers
if (loginInfo == null || loginInfo.UserInfo == null)
return ResultList<InStockTaskBillNoQueryResponse>.ReFailure(ResultCodes.Token_Invalid_Error);
var list= await _inStockTaskRepositories.GetListBy(new InStockTaskBillNoQueryRequest() { SourceBillNo=code,Type= (int)InstockType.Purchase });
var list= await _inStockTaskRepositories.GetListBy(new InStockTaskBillNoQueryRequest() { SourceBillNo=code,InstockType= (int)InstockType.Purchase });
return ResultList<InStockTaskBillNoQueryResponse>.ReSuccess(list);
}
@@ -92,7 +92,24 @@ namespace WMS.Web.Api.Controllers
/// <returns></returns>
[HttpGet]
[Route("GetSourceOrder/{code}")]
public async Task<ResultList<InStockTaskBillNoQueryResponse>> InStockTask([FromRoute] string code)
public async Task<ResultList<InStockTaskBillNoQueryResponse>> GetSourceOrder([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(new InStockTaskBillNoQueryRequest() { SourceBillNo = code, InstockType = null });
return ResultList<InStockTaskBillNoQueryResponse>.ReSuccess(list);
}
/// <summary>
/// 来源单的信息校准-对应金蝶-pad
/// </summary>
/// <param name="code"></param>
/// <returns></returns>
[HttpGet]
[Route("Adjust/{code}")]
public async Task<ResultList<InStockTaskBillNoQueryResponse>> Adjust([FromRoute] string code)
{
var loginInfo = _loginService.GetLoginInfo(this.HttpContext.Request.Headers["Authorization"]);
if (loginInfo == null || loginInfo.UserInfo == null)