From b51a65433d6102f2f8f00226404d9ca3808404af Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期四, 02 一月 2025 22:23:17 +0800 Subject: [PATCH] 打印托盘号 --- 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Basic/LocationInfoController.cs | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 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..b46552d 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> @@ -68,5 +72,19 @@ { return Service.LocationDisableStatus(keys); ; } + + [HttpPost, Route("UpdateLocationStatus"), AllowAnonymous] + public WebResponseContent UpdateLocationStatus(string locationCode, PalletTypeEnum 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