dengjunjie
3 天以前 7ca9651f81d7b84f054194d3d46fdbd1d9c8b922
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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);
        }
    }
}