3 changed files with 42 additions and 2 deletions
@ -0,0 +1,40 @@ |
|||||
|
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; |
||||
|
} |
||||
|
|
||||
|
} |
Loading…
Reference in new issue