From d6478661f2af69e00351dcf241fe94ddeccbc0d1 Mon Sep 17 00:00:00 2001
From: llj <132905093+newwwwwwtree@users.noreply.github.com>
Date: 星期六, 13 九月 2025 10:51:11 +0800
Subject: [PATCH] 群里问题部分进行修改

---
 WebAPI/Controllers/SRM_MaterialBarCodeBillController.cs |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/WebAPI/Controllers/SRM_MaterialBarCodeBillController.cs b/WebAPI/Controllers/SRM_MaterialBarCodeBillController.cs
index 2ae1922..d4af355 100644
--- a/WebAPI/Controllers/SRM_MaterialBarCodeBillController.cs
+++ b/WebAPI/Controllers/SRM_MaterialBarCodeBillController.cs
@@ -151,8 +151,7 @@
                 string HMaterShortNumber = ls[0].HMaterShortNumber;
                 string HMaterName = ls[0].HMaterName;
                 //渚涘簲鍟�
-                long HSupID= ls[0].HSupID;
-                string HSupName= ls[0].HSupName;
+                long HSupID = lsmain[0].HSupID;
                 string HMaker= ls[0].HMaker;
                 DateTime HMakeDate= ls[0].HMakeDate;
                 double HQty= ls[0].HQty; //鏈鐢熸垚鏉$爜鏁伴噺
@@ -161,7 +160,8 @@
         DataSet Ds;
                 SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
                 oCn.BeginTran();
-                Ds = oCn.RunProcReturn("exec GetLSH '" + DateTime.Today + "'", "GetLSH");
+                //Ds = oCn.RunProcReturn("exec GetLSH '" + DateTime.Today + "'", "GetLSH");
+                Ds = oCn.RunProcReturn("exec GetLSH '" + HSupID+"_"+ HMaterID+"_" + DateTime.Today+ "'", "GetLSH");
                 LSH = ClsPub.isInt(Ds.Tables[0].Rows[0][0]);
                 #endregion
 
@@ -246,8 +246,8 @@
        "1, 1, '1', '" + HSourceBillType + "', '1', '" +
        HKFDate + "', '" + HKFDQDate + "', " + HISKFPERIOD + ")";
                             LogService.Write("鐢熸垚鏉$爜锛� " + sql);
-                            oCn.RunProc(sql);
-                            oCn.RunProc("exec setLSH '" + DateTime.Today + "'");
+                            oCn.RunProc(sql); 
+                            oCn.RunProc("exec setLSH '" + HSupID + "_" + HMaterID + "_" + DateTime.Today + "'");
                             virtualCount++;
                            }
 

--
Gitblit v1.9.1