using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Mvc;
|
using WIDESEA_Core;
|
using WIDESEA_Core.BaseController;
|
using WIDESEA_DTO.Stock;
|
using WIDESEA_IBasicRepository;
|
using WIDESEA_IStockRepository;
|
using WIDESEA_IStockService;
|
using WIDESEA_Model.Models;
|
|
namespace WIDESEA_WMSServer.Controllers.Stock
|
{
|
[Route("api/InventoryBatch")]
|
[ApiController]
|
public class InventoryBatchController : ApiBaseController<IInventoryBatchService, Dt_Inventory_Batch>
|
{
|
public InventoryBatchController(IInventoryBatchService service) : base(service)
|
{
|
}
|
|
/// <summary>
|
/// 指定出库获取库存批次信息
|
/// </summary>
|
/// <param name="materielCode"></param>
|
/// <returns></returns>
|
[HttpPost, Route("GetInventoryBatch"), AllowAnonymous]
|
public List<Dt_Inventory_Batch> GetInventoryBatch(string materielCode)
|
{
|
return Service.GetInventoryBatch(materielCode);
|
}
|
}
|
}
|