From a09470aa33092318953cbbd5ab2d869ef6104e03 Mon Sep 17 00:00:00 2001
From: admin <qiutairan163@163.com>
Date: 星期五, 21 十一月 2025 10:27:37 +0800
Subject: [PATCH] 格式化代码
---
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