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.
38 lines
1.0 KiB
38 lines
1.0 KiB
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/po")]
|
|
public class PurchaseOrderController : AbpController
|
|
{
|
|
private readonly IPurchaseOrderAppService _purchaseOrderAppService;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="purchaseOrderAppService"></param>
|
|
public PurchaseOrderController(IPurchaseOrderAppService purchaseOrderAppService)
|
|
{
|
|
_purchaseOrderAppService = purchaseOrderAppService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据number获取采购订单
|
|
/// </summary>
|
|
/// <param name="number"></param>
|
|
/// <returns></returns>
|
|
[HttpGet("{number}")]
|
|
|
|
public virtual async Task<ActionResult<PurchaseOrderDTO>> GetAsync(string number)
|
|
{
|
|
var result = await _purchaseOrderAppService.GetByNumberAsync(number).ConfigureAwait(false);
|
|
return Ok(result);
|
|
}
|
|
}
|
|
|