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;
|
|
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/recycled-material-receipt-note")]
|
|
|
|
public class RecycledMaterialReceiptNoteController : AbpController
|
|
{
|
|
private readonly IRecycledMaterialReceiptNoteAppService _recycledMaterialReceiptNoteAppService;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="recycledMaterialReceiptNoteAppService"></param>
|
|
public RecycledMaterialReceiptNoteController(IRecycledMaterialReceiptNoteAppService recycledMaterialReceiptNoteAppService)
|
|
{
|
|
_recycledMaterialReceiptNoteAppService = recycledMaterialReceiptNoteAppService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 回收料调整
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet("{id}")]
|
|
|
|
public virtual async Task<ActionResult<RecycledMaterialReceiptNoteDTO>> GetAsync(Guid id)
|
|
{
|
|
var result = await _recycledMaterialReceiptNoteAppService.GetAsync(id).ConfigureAwait(false);
|
|
return Ok(result);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 创建
|
|
/// </summary>
|
|
/// <param name="input"></param>
|
|
/// <returns></returns>
|
|
[HttpPost("")]
|
|
public virtual async Task CreateAsync(RecycledMaterialReceiptNoteEditInput input)
|
|
{
|
|
await _recycledMaterialReceiptNoteAppService.CreateAsync(input).ConfigureAwait(false);
|
|
}
|
|
}
|
|
|