From 7e7f17c08a0f18d83eb379ddff1689597fecefde Mon Sep 17 00:00:00 2001 From: dengjunjie <dengjunjie@hnkhzn.com> Date: 星期五, 06 六月 2025 12:16:55 +0800 Subject: [PATCH] 修改AGV站点、PDA功能优化 --- 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Basic/MaterielInfoController.cs | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Basic/MaterielInfoController.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Basic/MaterielInfoController.cs" index 18baec8..774b548 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Basic/MaterielInfoController.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Basic/MaterielInfoController.cs" @@ -1,6 +1,11 @@ -锘縰sing Microsoft.AspNetCore.Http; +锘縰sing Autofac.Core; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; +using WIDESEA_Core; using WIDESEA_Core.BaseController; +using WIDESEA_Core.BaseRepository; +using WIDESEA_IBasicRepository; using WIDESEA_IBasicService; using WIDESEA_Model.Models; @@ -10,8 +15,20 @@ [ApiController] public class MaterielInfoController : ApiBaseController<IMaterielInfoService, Dt_MaterielInfo> { + private readonly IMaterielInfoService _service; public MaterielInfoController(IMaterielInfoService service) : base(service) { + _service = service; + } + /// <summary> + /// 鑾峰彇鐗╂枡鍚嶇О + /// </summary> + /// <param name="saveModel"></param> + /// <returns></returns> + [HttpPost, Route("GetMaterielInfo"), AllowAnonymous] + public WebResponseContent GetMaterielInfo(string materielCode) + { + return WebResponseContent.Instance.OK(data: _service.GetMaterielInfo(materielCode)); } } } -- Gitblit v1.9.3