From 82c1baca7e4337f1e48e17e1e6d693bb265a1f4d Mon Sep 17 00:00:00 2001 From: wyf Date: Wed, 2 Apr 2025 11:14:48 +0000 Subject: [PATCH] SVN r439 SVN-Revision: r439 --- 插件库/Lskj.PubBomImport/FrmProgress.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/插件库/Lskj.PubBomImport/FrmProgress.cs b/插件库/Lskj.PubBomImport/FrmProgress.cs index 11200b3..72a25e2 100644 --- a/插件库/Lskj.PubBomImport/FrmProgress.cs +++ b/插件库/Lskj.PubBomImport/FrmProgress.cs @@ -523,7 +523,7 @@ namespace Lskj.PubBomImport frmBillInfo.AddOrUpdateBill(masterRow, detailTable); SetProcessBar(60, 0); //备份Bom清单明细 - string bakBomListSql = @"delete bom_BillListlogTab where parentProduct = '{0}';insert into bom_BillListlogTab select * from bom_BillListTab where parentProduct = '{0}';"; + string bakBomListSql = @"delete bom_BillListlogTab where parentProduct = '{0}' and historyVer = (select top 1 historyVer from bom_BillListTab where parentProduct = '{0}');insert into bom_BillListlogTab select * from bom_BillListTab where parentProduct = '{0}';"; SqlHelper.ExecuteNonQuery(string.Format(bakBomListSql, productCode)); string billNo = ""; frmBillInfo.BillSave(ref billNo);