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.
33 lines
970 B
33 lines
970 B
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Volo.Abp.AspNetCore.Mvc;
|
|
using Win_in.Sfs.Basedata.Application.Contracts;
|
|
|
|
namespace Win_in.Sfs.Wms.Pda.Controllers.BaseDatas;
|
|
|
|
/// <summary>
|
|
/// </summary>
|
|
[ApiController]
|
|
[Route($"{PdaHostConst.ROOT_ROUTE}item-container")]
|
|
public class ItemContainerController : AbpController
|
|
{
|
|
private readonly IItemContainerAppService _itemContainerAppService;
|
|
|
|
public ItemContainerController(IItemContainerAppService itemContainerAppService)
|
|
{
|
|
_itemContainerAppService = itemContainerAppService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据名称获取物品
|
|
/// </summary>
|
|
/// <param name="itemCode"></param>
|
|
/// <returns></returns>
|
|
[HttpGet("by-item")]
|
|
public virtual async Task<ItemContainerDTO> GetListByItemNameAsync(string itemCode)
|
|
{
|
|
var dto = await _itemContainerAppService.GetByItemCodeAsync(itemCode).ConfigureAwait(false);
|
|
|
|
return dto;
|
|
}
|
|
}
|
|
|