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.
40 lines
1.1 KiB
40 lines
1.1 KiB
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Volo.Abp.AspNetCore.Mvc;
|
|
using Win_in.Sfs.Basedata.Application.Contracts;
|
|
using Win_in.Sfs.Shared.Domain.Shared;
|
|
|
|
namespace Win_in.Sfs.Wms.Pda.Controllers.BaseDatas;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
[ApiController]
|
|
[Route($"{PdaHostConst.ROOT_ROUTE}position-code")]
|
|
public class PositionCodeController : AbpController
|
|
{
|
|
private readonly IPositionCodeAppService _positionCodeAppService;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="locationAppService"></param>
|
|
public PositionCodeController(IPositionCodeAppService positionCodeAppService)
|
|
{
|
|
_positionCodeAppService = positionCodeAppService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据code获取库位信息
|
|
/// </summary>
|
|
/// <param name="code"></param>
|
|
/// <returns></returns>
|
|
[HttpGet("{code}")]
|
|
public virtual async Task<PositionCodeDTO> GetAsync(string code)
|
|
{
|
|
var result = await _positionCodeAppService.GetByCodeAsync(code).ConfigureAwait(false);
|
|
return result;
|
|
}
|
|
|
|
}
|
|
|