From 999e1007eb2b1d4a1f5b19a0addc686b2e30ef2d Mon Sep 17 00:00:00 2001
From: zrg <z1873@LAPTOP-EAVL132E>
Date: 星期三, 26 十一月 2025 16:44:52 +0800
Subject: [PATCH] 优化

---
 WebAPI/Controllers/Sc_GroupOrderBillController.cs |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/WebAPI/Controllers/Sc_GroupOrderBillController.cs b/WebAPI/Controllers/Sc_GroupOrderBillController.cs
index 6a46813..5393f18 100644
--- a/WebAPI/Controllers/Sc_GroupOrderBillController.cs
+++ b/WebAPI/Controllers/Sc_GroupOrderBillController.cs
@@ -116,8 +116,9 @@
                 string HMaker = list[0].HMaker;//鍒跺崟浜�
                 string HBatchNo = list[0].HBatchNo;//鍏ュ簱鎵规
                 string HBarCode_Cus = list[0].HBarCode_Cus;//瀹㈡埛鏍囩锛堥粦鏍囧彿锛�
+                long HOrgID = list[0].HOrgID;//閫掑叆type寰楀埌鐨勫崟鎹甀D
                 //鏍¢獙榛戞爣鍙峰敮涓�鎬�
-                ds= oCN.RunProcReturn($"select * from Sc_PackUnionBillMain where HBarCode_Cus ='{HBarCode_Cus}'", "Sc_PackUnionBillMain");
+                ds = oCN.RunProcReturn($"select * from Sc_PackUnionBillMain where HBarCode_Cus ='{HBarCode_Cus}'", "Sc_PackUnionBillMain");
                 if (ds.Tables[0].Rows.Count > 0)
                 {
                     objJsonResult.code = "0";
@@ -138,13 +139,13 @@
                     "(" +
                         "HYear, HBillType, HInterID, HBillNo, HMaker" +
                         ", HMakeDate, HPeriod, HDate, HRemark, HICMOInterID" +
-                        ", HICMOBillNo, HBarCode_Pack, HMaterID, HUnitID,HBatchNo,HBarCode_Cus" +
+                        ", HICMOBillNo, HBarCode_Pack, HMaterID, HUnitID,HBatchNo,HBarCode_Cus,HProdOrgID" +
                     ")" +
                     "values" +
                     "(" +
                         "'"+ year + "', '" + HBillType + "'," + HInterID + ", '" + HBillNo + "', '" + HMaker + "'" +
                         ",GETDATE(),0,GETDATE(),' ',0" +
-                        ",' ','"+ HBarCode_Pack + "',0,0,'" + HBatchNo +"','" + HBarCode_Cus +
+                        ",' ','"+ HBarCode_Pack + "',0,0,'" + HBatchNo +"','" + HBarCode_Cus +"','"+ HOrgID+
                     "')"
                 );
                 //鎻掑叆瀛愯〃

--
Gitblit v1.9.1