接口新增
This commit is contained in:
@@ -6,6 +6,7 @@ using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using WMS.Web.Core.Dto;
|
||||
using WMS.Web.Core.Dto.InStock;
|
||||
using WMS.Web.Core.Dto.InStockTask;
|
||||
using WMS.Web.Core.Internal.Results;
|
||||
using WMS.Web.Domain.Infrastructure;
|
||||
using WMS.Web.Domain.IService;
|
||||
@@ -63,6 +64,22 @@ namespace WMS.Web.Api.Controllers
|
||||
return await _inStockService.Shelf(dto, loginInfo);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 通过箱号获取到入库任务单数据
|
||||
/// </summary>
|
||||
/// <param name="boxBillNo"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
[Route("GetTaskByBox")]
|
||||
public async Task<Result<InStockTaskInfoDto>> GetTaskByBox([FromQuery] string boxBillNo)
|
||||
{
|
||||
var loginInfo = _loginService.GetLoginInfo(this.HttpContext.Request.Headers["Authorization"]);
|
||||
if (loginInfo == null || loginInfo.UserInfo == null)
|
||||
return Result<InStockTaskInfoDto>.ReFailure(ResultCodes.Token_Invalid_Error);
|
||||
|
||||
return await _inStockService.GetInfoByBox(boxBillNo);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 同步金蝶
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user