You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.4 KiB
52 lines
1.4 KiB
1 year ago
|
using System.Threading.Tasks;
|
||
|
using Microsoft.AspNetCore.Mvc;
|
||
|
using Volo.Abp.AspNetCore.Mvc;
|
||
|
using Win_in.Sfs.Wms.Store.Application.Contracts;
|
||
|
|
||
|
namespace Win_in.Sfs.Wms.Pda.Controllers.Stores;
|
||
|
|
||
|
/// <summary>
|
||
|
///空器具呼叫请求
|
||
|
/// </summary>
|
||
|
[ApiController]
|
||
|
[Route($"{PdaHostConst.ROOT_ROUTE}store/container-request")]
|
||
|
|
||
|
public class ContainerRequestController : AbpController
|
||
|
{
|
||
|
private readonly IContainerRequestAppService _containerRequestAppService;
|
||
|
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// </summary>
|
||
|
/// <param name="ContainerRequestAppService"></param>
|
||
|
public ContainerRequestController(IContainerRequestAppService ContainerRequestAppService)
|
||
|
{
|
||
|
_containerRequestAppService = ContainerRequestAppService;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 空器具申请
|
||
|
/// </summary>
|
||
|
/// <param name="input"></param>
|
||
|
/// <returns></returns>
|
||
|
[HttpPost("")]
|
||
|
public virtual async Task CreateAsync(ContainerRequestEditInput input)
|
||
|
{
|
||
|
_ = await _containerRequestAppService.CreateAsync(input).ConfigureAwait(false);
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 根据number获取空器具申请详情
|
||
|
/// </summary>
|
||
|
/// <param name="number"></param>
|
||
|
/// <returns></returns>
|
||
|
[HttpGet("{number}")]
|
||
|
|
||
|
public virtual async Task<ActionResult<ContainerRequestDTO>> GetAsync(string number)
|
||
|
{
|
||
|
var result = await _containerRequestAppService.GetByNumberAsync(number).ConfigureAwait(false);
|
||
|
return Ok(result);
|
||
|
}
|
||
|
|
||
|
}
|