1
hutongqing
2024-10-18 e2a05a6c91f1b94bef8ecea7de7bf149d7e77c89
代码管理/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockInfoController.cs
@@ -14,16 +14,14 @@
    [ApiController]
    public class StockInfoController : ApiBaseController<IStockInfoService, Dt_StockInfo>
    {
        private readonly IStockInfoRepository _stockInfoRepository;
        public StockInfoController(IStockInfoService service, IStockInfoRepository stockInfoRepository) : base(service)
        public StockInfoController(IStockInfoService service) : base(service)
        {
            _stockInfoRepository = stockInfoRepository;
        }
        [HttpPost, Route("GetAllStockViews"), AllowAnonymous]
        public List<StockViewDTO> GetAllStockViews()
        {
            return _stockInfoRepository.GetAllStockViews();
            return Service.Repository.GetAllStockViews();
        }
        [HttpPost, Route("GetStockSelectViews"), AllowAnonymous]
@@ -31,5 +29,10 @@
        {
            return Service.GetStockSelectViews(materielCode);
        }
        [HttpPost, Route("GetPalletStockInfo"), AllowAnonymous]
        public Dt_StockInfo GetPalletStockInfo(string roadwayNo)
        {
            return Service.Repository.GetPalletStockInfo(roadwayNo);
        }
    }
}