From 156e0d593769d1c4438eb1c6d4547063f76331b3 Mon Sep 17 00:00:00 2001
From: wxw <Administrator@DESKTOP-5BIMHQ3>
Date: 星期三, 19 十一月 2025 15:52:31 +0800
Subject: [PATCH] 修改拣货拼托bug

---
 Wms/Wms/Controllers/PdaCrController.cs |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/Wms/Wms/Controllers/PdaCrController.cs b/Wms/Wms/Controllers/PdaCrController.cs
index 27b045e..0bdaacb 100644
--- a/Wms/Wms/Controllers/PdaCrController.cs
+++ b/Wms/Wms/Controllers/PdaCrController.cs
@@ -124,9 +124,17 @@
         /// <returns></returns>
         [HttpGet]
         [ServiceFilter(typeof(ApiResponseActionFilter))]
-        public List<StockDetailWithQtyDto> GetStockQueryList(string locatNo, string palletNo, string boxno)
+        public IActionResult GetStockQueryList(string locatNo, string palletNo, string boxno)
         {
-            return _pdaCrSvc.GetStockQueryList(locatNo, palletNo, boxno);
+            try
+            {
+                var list = _pdaCrSvc.GetStockQueryList(locatNo, palletNo, boxno);
+                return Ok(new { data = list, code = 0, msg = "鎴愬姛" });
+            }
+            catch (Exception e)
+            {
+                return Ok(new { data = "", code = 1, msg = $"寮傚父锛歿e.Message}" });
+            }
         }
 
         #endregion

--
Gitblit v1.8.0