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.
39 lines
1.2 KiB
39 lines
1.2 KiB
2 years 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/purchase-receipt-request")]
|
||
|
public class PurchaseReceiptRequestController : AbpController
|
||
|
{
|
||
|
private readonly IPurchaseReceiptRequestAppService _purchaseReceiptRequestAppService;
|
||
|
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// </summary>
|
||
|
/// <param name="purchaseReceiptRequestAppService"></param>
|
||
|
public PurchaseReceiptRequestController(IPurchaseReceiptRequestAppService purchaseReceiptRequestAppService)
|
||
|
{
|
||
|
_purchaseReceiptRequestAppService = purchaseReceiptRequestAppService;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 根据number获取到货单详情
|
||
|
/// </summary>
|
||
|
/// <param name="number"></param>
|
||
|
/// <returns></returns>
|
||
|
[HttpGet("{number}")]
|
||
|
|
||
|
public virtual async Task<ActionResult<PurchaseReceiptRequestDTO>> GetAsync(string number)
|
||
|
{
|
||
|
var result = await _purchaseReceiptRequestAppService.GetByNumberAsync(number).ConfigureAwait(false);
|
||
|
return Ok(result);
|
||
|
}
|
||
|
}
|