SVN-Revision: r632
This commit is contained in:
wyf
2025-05-23 04:19:06 +00:00
parent c19e9f265b
commit fdb7134d90
+4 -4
View File
@@ -85,7 +85,7 @@ namespace Lskj.PubBomImport
if (sourceCode.StartsWith("QD")) if (sourceCode.StartsWith("QD"))
{ {
stringBuilder.AppendLine($"if not exists (select productid from p_ProductTab where productid = '{sourceCode}')"); stringBuilder.AppendLine($"if not exists (select productid from p_ProductTab where productid = '{sourceCode}')");
stringBuilder.AppendLine($"begin insert into p_ProductTab (productid,appellation,spec,model,bak,SpeciesNo) values ('{sourceCode.Replace("'", "''")}','{sourceName.Replace("'", "''")}','{sourceCode.Replace("'", "''")}','{sourceCode.Replace("'", "''")}','','0199') end;"); stringBuilder.AppendLine($"begin insert into p_ProductTab (productid,appellation,spec,model,bak,SpeciesNo) values ('{sourceCode.Replace("'", "''")}','{sourceName.Replace("'", "''")}','{sourceCode.Replace("'", "''")}','{sourceCode.Replace("QD-", "").Replace("'", "''")}','','0199') end;");
} }
} }
else else
@@ -355,7 +355,7 @@ namespace Lskj.PubBomImport
if (sourceCode.StartsWith("QD")) if (sourceCode.StartsWith("QD"))
{ {
stringBuilder.AppendLine($"if not exists (select productid from p_ProductTab where productid = '{sourceCode}')"); stringBuilder.AppendLine($"if not exists (select productid from p_ProductTab where productid = '{sourceCode}')");
stringBuilder.AppendLine($"begin insert into p_ProductTab (productid,appellation,spec,model,bak,SpeciesNo) values ('{sourceCode.Replace("'", "''")}','{sourceName.Replace("'", "''")}','{sourceCode.Replace("'", "''")}','{sourceCode.Replace("'", "''")}','','0199') end;"); stringBuilder.AppendLine($"begin insert into p_ProductTab (productid,appellation,spec,model,bak,SpeciesNo) values ('{sourceCode.Replace("'", "''")}','{sourceName.Replace("'", "''")}','{sourceCode.Replace("'", "''")}','{sourceCode.Replace("QD-", "").Replace("'", "''")}','','0199') end;");
} }
if (!string.IsNullOrEmpty(stringBuilder.ToString())) if (!string.IsNullOrEmpty(stringBuilder.ToString()))
{ {
@@ -608,7 +608,7 @@ namespace Lskj.PubBomImport
if (childCode.StartsWith("QD")) if (childCode.StartsWith("QD"))
{ {
stringBuilder.AppendLine($"if not exists (select productid from p_ProductTab where productid = '{childCode}')"); stringBuilder.AppendLine($"if not exists (select productid from p_ProductTab where productid = '{childCode}')");
stringBuilder.AppendLine($"begin insert into p_ProductTab (productid,appellation,spec,model,bak,SpeciesNo) values ('{childCode.Replace("'", "''")}','{(dataRow[""] + "").Replace("'", "''")}','{childCode.Replace("'", "''")}','{childCode.Replace("'", "''")}','{(dataRow[""] + "").Replace("'", "''")}','0199') end;"); stringBuilder.AppendLine($"begin insert into p_ProductTab (productid,appellation,spec,model,bak,SpeciesNo) values ('{childCode.Replace("'", "''")}','{(dataRow[""] + "").Replace("'", "''")}','{childCode.Replace("'", "''")}','{childCode.Replace("QD-", "").Replace("'", "''")}','{(dataRow[""] + "").Replace("'", "''")}','0199') end;");
} }
} }
if (!string.IsNullOrEmpty(stringBuilder.ToString())) if (!string.IsNullOrEmpty(stringBuilder.ToString()))
@@ -940,7 +940,7 @@ namespace Lskj.PubBomImport
if (code.StartsWith("QD")) if (code.StartsWith("QD"))
{ {
stringBuilder.AppendLine($"if not exists (select productid from p_ProductTab where productid = '{code}')"); stringBuilder.AppendLine($"if not exists (select productid from p_ProductTab where productid = '{code}')");
stringBuilder.AppendLine($"begin insert into p_ProductTab (productid,appellation,spec,model,bak,SpeciesNo) values ('{code.Replace("'", "''")}','{(dataRow[""] + "").Replace("'", "''")}','{code.Replace("'", "''")}','{code.Replace("'", "''")}','{(dataRow[""] + "").Replace("'", "''")}','0199') end;"); stringBuilder.AppendLine($"begin insert into p_ProductTab (productid,appellation,spec,model,bak,SpeciesNo) values ('{code.Replace("'", "''")}','{(dataRow[""] + "").Replace("'", "''")}','{code.Replace("'", "''")}','{code.Replace("QD-", "").Replace("'", "''")}','{(dataRow[""] + "").Replace("'", "''")}','0199') end;");
} }
} }
if (!string.IsNullOrEmpty(stringBuilder.ToString())) if (!string.IsNullOrEmpty(stringBuilder.ToString()))