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.
37 lines
1.0 KiB
37 lines
1.0 KiB
namespace Win_in.Sfs.Wms.Pda.Controllers.Inventories;
|
|
using System.Threading.Tasks;
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Volo.Abp.AspNetCore.Mvc;
|
|
using Win_in.Sfs.Label.Application.Contracts;
|
|
|
|
/// <summary>
|
|
/// 采购标签控制器
|
|
/// </summary>
|
|
[ApiController]
|
|
[Route($"{PdaHostConst.ROOT_ROUTE}label/inventorylabel")]
|
|
public class InventoryLabelController : AbpController
|
|
{
|
|
private readonly IInventoryLabelAppService _labelAppService;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="labelAppService"></param>
|
|
public InventoryLabelController(
|
|
IInventoryLabelAppService labelAppService)
|
|
{
|
|
this._labelAppService = labelAppService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 按标签号获取采购标签
|
|
/// </summary>
|
|
/// <param name="code">标签号</param>
|
|
/// <returns></returns>
|
|
[HttpGet("by-code")]
|
|
public virtual async Task<InventoryLabelDto> GetByCode(string code)
|
|
{
|
|
return await _labelAppService.GetByCodeAsync(code).ConfigureAwait(false);
|
|
}
|
|
}
|
|
|