From 6bc8d28f628be77b8847edc5eaf414f5c0a4ba3b Mon Sep 17 00:00:00 2001 From: 啊鑫 <t2856754968@163.com> Date: 星期六, 11 一月 2025 09:57:04 +0800 Subject: [PATCH] 11 --- Controllers/Wom/WwGdController.cs | 43 ++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 40 insertions(+), 3 deletions(-) diff --git a/Controllers/Wom/WwGdController.cs b/Controllers/Wom/WwGdController.cs index a1a34f0..2f9e7bb 100644 --- a/Controllers/Wom/WwGdController.cs +++ b/Controllers/Wom/WwGdController.cs @@ -19,7 +19,7 @@ /// <param name="query">鎵爜璇锋眰鍙傛暟</param> /// <returns>ResponseResult瀵硅薄锛屽寘鍚姸鎬併�佹秷鎭拰鏁版嵁</returns> /// // Demo Request: - // POST /api/WwGdController/ScanCode + // POST /api/WwGd/ScanCode // Body: // { // "query": { @@ -55,7 +55,7 @@ /// <param name="query">鎵爜纭璇锋眰鍙傛暟</param> /// <returns>ResponseResult瀵硅薄锛屽寘鍚姸鎬併�佹秷鎭拰鏁版嵁</returns> /// // Demo Request: - // POST /api/WwGdController/ScanCodeCF + // POST /api/WwGd/ScanCodeCF // Body: // { // "query": { @@ -91,7 +91,7 @@ /// <param name="query">宸ュ崟鍙疯姹傚弬鏁�</param> /// <returns>ResponseResult瀵硅薄锛屽寘鍚姸鎬併�佹秷鎭拰鏁版嵁</returns> // Demo Request: - // POST /api/WwGdController/GetItemsByDaa001 + // POST /api/WwGd/GetItemsByDaa001 // Body: // { // "query": { @@ -121,6 +121,43 @@ } /// <summary> + /// 濮斿宸ュ崟閫�鏂欐壂鐮� + /// </summary> + /// <param name="barcode">鏉″舰鐮佸彿</param> + /// <returns>ResponseResult瀵硅薄锛屽寘鍚姸鎬併�佹秷鎭拰鏁版嵁</returns> + // Demo Request: + // POST /api/WwGd/WwblScanBarcode + // Body: + // { + // 鍙傛暟璇存槑: + // - billNo: 鍗曟嵁鍙�(蹇呭~) + // - barcode: 鏉$爜(蹇呭~) + // - userName: 鐢ㄦ埛鍚� + // - blNo: 琛ユ枡鍗曞彿(蹇呭~) + // } + [HttpPost("WwblScanBarcode")] + public ResponseResult WwblScanBarcode(WarehouseQuery query) + { + try + { + // 璋冪敤WwGdManager鐨刉wblScanBarcode鏂规硶鑾峰彇鐗╂枡淇℃伅 + dynamic resultInfos = new ExpandoObject(); + resultInfos.materialInfo = m.WwblScanBarcode(query); + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + // 濡傛灉鍙戠敓寮傚父锛岃繑鍥為敊璇俊鎭� + return ResponseResult.ResponseError(ex); + } + } + + /// <summary> /// 鑾峰彇鎵�鏈� /// </summary> /// <returns></returns> -- Gitblit v1.9.3