qinchulong
2025-05-27 c020f31a67fc5aa5644511bddff075f7ecc85234
代码管理/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockInfoController.cs
对比新文件
@@ -0,0 +1,38 @@
锘縰sing Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
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/StockInfo")]
    [ApiController]
    public class StockInfoController : ApiBaseController<IStockInfoService, Dt_StockInfo>
    {
        public StockInfoController(IStockInfoService service) : base(service)
        {
        }
        [HttpPost, Route("GetAllStockViews"),AllowAnonymous]
        public List<StockViewDTO> GetAllStockViews()
        {
            return Service.Repository.GetAllStockViews();
        }
        [HttpPost, Route("GetStockSelectViews"), AllowAnonymous]
        public List<StockSelectViewDTO> GetStockSelectViews([FromBody]string materielCode)
        {
            return Service.GetStockSelectViews(materielCode);
        }
        [HttpPost, Route("GetPalletStockInfo"), AllowAnonymous]
        public Dt_StockInfo GetPalletStockInfo([FromBody] string roadwayNo)
        {
            return Service.Repository.GetPalletStockInfo(roadwayNo);
        }
    }
}