From 06407e013aeb7cf346352542dfbd4cc207622d92 Mon Sep 17 00:00:00 2001 From: huangxiaoqiang <1247017146@qq.com> Date: 星期一, 18 十一月 2024 10:30:55 +0800 Subject: [PATCH] 1 --- 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockInfoController.cs | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockInfoController.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockInfoController.cs" index 3846217..15d4466 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockInfoController.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockInfoController.cs" @@ -14,22 +14,25 @@ [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] + [HttpPost, Route("GetAllStockViews"),AllowAnonymous] public List<StockViewDTO> GetAllStockViews() { - return _stockInfoRepository.GetAllStockViews(); + return Service.Repository.GetAllStockViews(); } [HttpPost, Route("GetStockSelectViews"), AllowAnonymous] - public List<StockSelectViewDTO> GetStockSelectViews(string materielCode) + 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); + } } } -- Gitblit v1.9.3