SVN-Revision: r532
This commit is contained in:
wyf
2025-04-30 10:52:42 +00:00
parent ed8149baed
commit 9b63715fa5
+2 -2
View File
@@ -925,8 +925,8 @@ namespace Lskj.PubBomImport
string code = (dataRow["图号"] + "").Trim(); string code = (dataRow["图号"] + "").Trim();
if (code.StartsWith("QD") || code.StartsWith("ZZQD")) if (code.StartsWith("QD") || code.StartsWith("ZZQD"))
{ {
stringBuilder.AppendLine($"if not exists (select productid from p_ProductTab where productid = '{dataRow[""] + ""}')"); stringBuilder.AppendLine($"if not exists (select productid from p_ProductTab where productid = '{code}')");
stringBuilder.AppendLine($"begin insert into p_ProductTab (productid,appellation,bak,SpeciesNo) values ('{(dataRow[""] + "").Replace("'", "''")}','{(dataRow[""] + "").Replace("'", "''")}','{(dataRow[""] + "").Replace("'", "''")}','0199') end;"); stringBuilder.AppendLine($"begin insert into p_ProductTab (productid,appellation,bak,SpeciesNo) values ('{code.Replace("'", "''")}','{(dataRow[""] + "").Replace("'", "''")}','{(dataRow[""] + "").Replace("'", "''")}','0199') end;");
} }
} }
if (!string.IsNullOrEmpty(stringBuilder.ToString())) if (!string.IsNullOrEmpty(stringBuilder.ToString()))