From fcb50f9e6408bf42e3bc5d34d9f6eff93c2dd263 Mon Sep 17 00:00:00 2001 From: wankeda <Administrator@DESKTOP-HAU3ST3> Date: 星期六, 01 三月 2025 17:36:16 +0800 Subject: [PATCH] 1 --- 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Basic/LocationInfoController.cs | 32 ++++++++++++++++++++++++++++++-- 1 files changed, 30 insertions(+), 2 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Basic/LocationInfoController.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Basic/LocationInfoController.cs" index f98e93f..22b2310 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Basic/LocationInfoController.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Basic/LocationInfoController.cs" @@ -4,6 +4,7 @@ using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; using WIDESEA_Common.CommonEnum; +using WIDESEA_Common.LocationEnum; using WIDESEA_Core; using WIDESEA_Core.BaseController; using WIDESEA_Core.Enums; @@ -14,6 +15,9 @@ namespace WIDESEA_WMSServer.Controllers.Basic { + /// <summary> + /// 璐т綅 + /// </summary> [Route("api/LocationInfo")] [ApiController] public class LocationInfoController : ApiBaseController<ILocationInfoService, Dt_LocationInfo> @@ -22,6 +26,16 @@ public LocationInfoController(ILocationInfoService service, ILocationInfoRepository repository) : base(service) { _repository = repository; + } + + /// <summary> + /// 鑾峰彇鏃MS绯荤粺杈呮枡浠撳簱瀛� + /// </summary> + /// <returns></returns> + [HttpPost, Route("GetContainerInfo"), AllowAnonymous] + public WebResponseContent GetContainerInfo() + { + return Service.GetContainerInfo(); } /// <summary> @@ -42,9 +56,9 @@ /// <param name="palletType"></param> /// <returns></returns> [HttpPost, HttpGet, Route("AssignLocation"), AllowAnonymous] - public Dt_LocationInfo? AssignLocation(string roadwayNo, PalletTypeEnum palletType, int warehouseId) + public Dt_LocationInfo? AssignLocation(string roadwayNo, int palletType, int warehouseId, int heightType) { - return Service.AssignLocation(roadwayNo, palletType, warehouseId); + return Service.AssignLocation(roadwayNo, palletType, warehouseId, heightType: heightType); } /// <summary> @@ -68,5 +82,19 @@ { return Service.LocationDisableStatus(keys); ; } + + [HttpPost, Route("UpdateLocationStatus"), AllowAnonymous] + public WebResponseContent UpdateLocationStatus(string locationCode, int palletType, LocationStatusEnum locationStatus, int warehousId) + { + try + { + Service.UpdateLocationStatus(locationCode, palletType, locationStatus, warehousId); + return WebResponseContent.Instance.OK(); + } + catch (Exception e) + { + return WebResponseContent.Instance.Error(e.Message); + } + } } } -- Gitblit v1.9.3