From 330fb0fa0c0cc61b52857771f3875268c8b190c0 Mon Sep 17 00:00:00 2001 From: zzr99 <1940172413@qq.com> Date: 星期三, 20 四月 2022 14:31:52 +0800 Subject: [PATCH] 数据导出 --- WebAPI/Controllers/Sc_GroupOrderBillController.cs | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/WebAPI/Controllers/Sc_GroupOrderBillController.cs b/WebAPI/Controllers/Sc_GroupOrderBillController.cs index 8b22ef6..09ba8b0 100644 --- a/WebAPI/Controllers/Sc_GroupOrderBillController.cs +++ b/WebAPI/Controllers/Sc_GroupOrderBillController.cs @@ -101,7 +101,7 @@ string msg1 = _value.ToString(); try { - //濮斿宸ュ簭鍙戝嚭鍙嶅簭鍒楀寲 + //缁勬墭鍗曞弽搴忓垪鍖� msg1 = "[" + msg1.ToString() + "]"; List<GroupOrderBill> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<GroupOrderBill>>(msg1); //鑾峰彇骞存湀鏃ュ苟鎷兼帴鎴愬瓧绗︿覆 @@ -140,6 +140,8 @@ oCN.RunProc("exec h_p_SaveGroupOrder " + HInterID + ""); //鏍规嵁瀛愯〃姹囨�荤敓鎴怱c_PackUnionBillSub_Sum琛ㄨ褰� oCN.RunProc("exec h_p_Sc_PackUnionBill_SumSubBill " + HInterID + ",'','',''"); + //鎻掑叆鏉$爜妗f琛� + oCN.RunProc("exec h_p_SaveGroupOrderCodeToGy_BarCodeBill " + HInterID + ""); oCN.Commit(); objJsonResult.code = "1"; objJsonResult.count = 1; @@ -305,7 +307,7 @@ try { SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); - oCn.RunProc("Delete from KF_PonderationBillMain_Temp where HBarCode = " + BarCode + " and HBillType = '2601'"); + oCn.RunProc("Delete from KF_PonderationBillMain_Temp where HBarCode = '" + BarCode + "' and HBillType = '2601'"); objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "鍒犻櫎鎴愬姛锛�"; @@ -336,6 +338,7 @@ { SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); oCN.BeginTran(); + oCn.RunProc("Delete from Sc_PackUnionBillMain where HInterID = " + HInterID); oCn.RunProc("Delete from Sc_PackUnionBillSub where HInterID = " + HInterID + " and HEntryID = " + HEntryID); //閲嶆柊鍒锋柊鏇存柊 姹囨�诲瓙琛� 鐨勮褰曞拰鏉$爜妗f oCn.RunProc("Delete from Sc_PackUnionBillSub_Sum where HInterID = " + HInterID); @@ -373,7 +376,7 @@ try { SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); - oCn.RunProc("update Sc_PackUnionBillMain set HBarCode_Cus = " + HBarCode_Cus + " where HInterID = " + HInterID); + oCn.RunProc("update Sc_PackUnionBillMain set HBarCode_Cus = '" + HBarCode_Cus + "' where HInterID = " + HInterID); objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "淇敼鎴愬姛锛�"; -- Gitblit v1.9.1