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.
51 lines
1.5 KiB
51 lines
1.5 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/inspect-request")]
|
|
public class InspectRequestController : AbpController
|
|
{
|
|
private readonly IInspectRequestAppService _inspectRequestAppService;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="inspectRequestAppService"></param>
|
|
public InspectRequestController(IInspectRequestAppService inspectRequestAppService)
|
|
{
|
|
_inspectRequestAppService = inspectRequestAppService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据number获取报检单详情
|
|
/// </summary>
|
|
/// <param name="number"></param>
|
|
/// <returns></returns>
|
|
[HttpGet("{number}")]
|
|
|
|
public virtual async Task<ActionResult<InspectRequestDTO>> GetAsync(string number)
|
|
{
|
|
var result = await _inspectRequestAppService.GetByNumberAsync(number).ConfigureAwait(false);
|
|
return Ok(result);
|
|
}
|
|
|
|
///// <summary>
|
|
///// 修改明细
|
|
///// </summary>
|
|
///// <param name="id"></param>
|
|
///// <param name="detailId"></param>
|
|
///// <param name="updateDetailDTO"></param>
|
|
//[HttpPut("details/{id}")]
|
|
|
|
//public async void UpdateDetailAsync(Guid id, Guid detailId, InspectRequestDetailDTO updateDetailDTO)
|
|
//{
|
|
// await _inspectRequestAppService.UpdateDetailAsync(id, detailId, updateDetailDTO);
|
|
//}
|
|
}
|
|
|