调整接口参数命名

This commit is contained in:
tongfei
2023-11-10 09:42:01 +08:00
parent 7014f070fd
commit f1543a78d5
3 changed files with 20 additions and 34 deletions

View File

@@ -68,54 +68,37 @@ namespace WMS.Web.Api.Controllers
return await _inStockService.Receive(dto, loginInfo);
}
/// <summary>
/// 采购订单-单据编号模糊-pad
/// </summary>
/// <param name="code"></param>
/// <returns></returns>
[HttpPost]
[Route("Purchase/{code}")]
public async Task<ResultList<InStockTaskBillNoQueryResponse>> Purchase([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= (int)InstockType.Purchase });
return ResultList<InStockTaskBillNoQueryResponse>.ReSuccess(list);
}
/// <summary>
/// 来源单-编号模糊查询-pad
/// </summary>
/// <param name="code"></param>
/// <param name="sourceBillNo">来源单号</param>
/// <returns></returns>
[HttpGet]
[Route("GetSourceOrder/{code}")]
public async Task<ResultList<InStockTaskBillNoQueryResponse>> GetSourceOrder([FromRoute] string code)
[Route("GetSourceOrder/{sourceBillNo}")]
public async Task<ResultList<InStockTaskBillNoQueryResponse>> GetSourceOrder([FromRoute] string sourceBillNo)
{
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 });
var list= await _inStockTaskRepositories.GetListBy(new InStockTaskBillNoQueryRequest() { SourceBillNo = sourceBillNo, InstockType = null });
return ResultList<InStockTaskBillNoQueryResponse>.ReSuccess(list);
}
/// <summary>
/// 来源单的信息校准-对应金蝶-pad
/// </summary>
/// <param name="code"></param>
/// <param name="sourceBillNo"></param>
/// <returns></returns>
[HttpGet]
[Route("Adjust/{code}")]
public async Task<ResultList<InStockTaskBillNoQueryResponse>> Adjust([FromRoute] string code)
[Route("Adjust/{sourceBillNo}")]
public async Task<ResultList<InStockTaskBillNoQueryResponse>> Adjust([FromRoute] string sourceBillNo)
{
var loginInfo = _loginService.GetLoginInfo(this.HttpContext.Request.Headers["Authorization"]);
if (loginInfo == null || loginInfo.UserInfo == null)
return ResultList<InStockTaskBillNoQueryResponse>.ReFailure(ResultCodes.Token_Invalid_Error);
return await _inStockTaskService.GetPurchaseInstockTask(code);
return await _inStockTaskService.GetPurchaseInstockTask(sourceBillNo);
}
/// <summary>