Synchronization code

This commit is contained in:
sunkaixuan
2023-10-13 15:58:34 +08:00
parent 6fed9d0012
commit 55352ce26b

View File

@@ -1331,8 +1331,8 @@ namespace SqlSugar
} }
else else
{ {
if (this.QueryBuilder.GetSelectValue != null && this.QueryBuilder.GetSelectValue.Contains(",")) ; //if (this.QueryBuilder.GetSelectValue != null && this.QueryBuilder.GetSelectValue.Contains(",")) ;
{ //{
columns = "("; columns = "(";
foreach (var item in this.QueryBuilder.GetSelectValue.Split(',')) foreach (var item in this.QueryBuilder.GetSelectValue.Split(','))
{ {
@@ -1345,7 +1345,7 @@ namespace SqlSugar
columns += $"{column},"; columns += $"{column},";
} }
columns = columns.TrimEnd(',') + ")"; columns = columns.TrimEnd(',') + ")";
} //}
sql = $" INSERT INTO {name} {columns} " + sqlInfo.Key; sql = $" INSERT INTO {name} {columns} " + sqlInfo.Key;
} }
} }