Administrator
2024-02-24 fdb9e49a3ba2c5d10f0005fa7926a33e28108ec8
Wms/Wms/Controllers/PdaCrController.cs
@@ -9,6 +9,7 @@
using Model.ModelVm.PdaVm;
using WMS.IBLL.IPdaServer;
using WMS.Entity.DataEntity;
using WMS.Entity.SysEntity;
namespace Wms.Controllers
{
@@ -236,5 +237,48 @@
        #endregion
        #region AGV转运
        /// <summary>
        /// 获取托盘所在储位地址
        /// </summary>
        /// <param name="palletNo"></param>
        /// <returns></returns>
        [HttpGet]
        public IActionResult GetPalletLocatNo(string palletNo)
        {
            try
            {
                string result = _pdaCrSvc.GetPalletLocatNo(palletNo);
                return Ok(new { data = result, code = 0, msg = "成功" });
            }
            catch (Exception e)
            {
                return Ok(new { data = "", code = 1, msg = $"异常:{e.Message}" });
            }
        }
        /// <summary>
        /// 获取托盘所在楼层所有区域
        /// </summary>
        /// <param name="palletNo"></param>
        /// <returns></returns>
        [HttpGet]
        public IActionResult GetStorageArea(string palletNo)
        {
            try
            {
                List<SysStorageArea> result = _pdaCrSvc.GetStorageArea(palletNo);
                return Ok(new { data = result, code = 0, msg = "成功" });
            }
            catch (Exception e)
            {
                return Ok(new { data = "", code = 1, msg = $"异常:{e.Message}" });
            }
        }
        #endregion
    }
}