From eb86c89d85599da5b3f237a0e1214e45f6a90225 Mon Sep 17 00:00:00 2001
From: cnf <3283105747@qq.com>
Date: 星期三, 17 十二月 2025 16:47:37 +0800
Subject: [PATCH] 期初打印明细查询优化

---
 WebApi/Gs.Wom/BaoGong/BaoGongController.cs |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/WebApi/Gs.Wom/BaoGong/BaoGongController.cs b/WebApi/Gs.Wom/BaoGong/BaoGongController.cs
index 491e995..30656bc 100644
--- a/WebApi/Gs.Wom/BaoGong/BaoGongController.cs
+++ b/WebApi/Gs.Wom/BaoGong/BaoGongController.cs
@@ -176,6 +176,8 @@
             dynamic m = new ExpandoObject();
             m.outSum = -1;
             m.outMsg = "";
+            m.barcode = "";//鏉$爜,鍓嶇鎵撳嵃鐢�
+            m.barcodeGuid = "";//鏉$爜guid,鍓嶇鎵撳嵃鐢�
             SqlParameter[] parameters =
             {
             new("@inOrderGuid", _inOrderGuid),
@@ -195,14 +197,17 @@
                 if (dset != null && dset.Tables.Count > 0 &&
                     dset.Tables[0].Rows.Count > 0)
                 {
-                    if (dset.Tables.Count != 3)
+                    if (dset.Tables.Count !=4)
                     {
                         m.outSum = -1;
                         m.outMsg = dset.Tables[0].Rows[0]["msgTxt"].ToString();
                         return ReturnDto<dynamic>.QuickReturn(m, ReturnCode.Default, m.outMsg);
                     }
                     #region 鍐嶈皟鐢� prc_pda_scbg
-                    string pi_barcode = dset.Tables[1].Rows[0]["ITEM_BARCODE"].ToString();
+                    string pi_barcode = dset.Tables[1].Rows[0]["鐗╂枡鏉$爜"].ToString();
+                    string pi_barcodeGuid= dset.Tables[1].Rows[0]["鏉$爜guid"].ToString();
+                    m.barcode = pi_barcode;
+                    m.barcodeGuid = pi_barcodeGuid;
                     using (var conn = new SqlConnection(DbHelperSQL.strConn))
                     {
                         using (var cmd = new SqlCommand("prc_pda_scbg", conn))

--
Gitblit v1.9.3