mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
Synchronization code
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user