|
@ -129,7 +129,7 @@ namespace SqlSugar.ClickHouse |
|
|
string columnsString = string.Join(",", groupList.First().Select(it => Builder.GetTranslationColumnName(it.DbColumnName))); |
|
|
string columnsString = string.Join(",", groupList.First().Select(it => Builder.GetTranslationColumnName(it.DbColumnName))); |
|
|
if (isSingle) |
|
|
if (isSingle) |
|
|
{ |
|
|
{ |
|
|
string columnParametersString = string.Join(",", this.DbColumnInfoList.Select(it => Builder.SqlParameterKeyWord + it.DbColumnName)); |
|
|
string columnParametersString = string.Join(",", this.DbColumnInfoList.Select(it =>base.GetDbColumn(it, Builder.SqlParameterKeyWord + it.DbColumnName))); |
|
|
ActionMinDate(); |
|
|
ActionMinDate(); |
|
|
return string.Format(SqlTemplate, GetTableNameString, columnsString, columnParametersString); |
|
|
return string.Format(SqlTemplate, GetTableNameString, columnsString, columnParametersString); |
|
|
} |
|
|
} |
|
@ -144,7 +144,7 @@ namespace SqlSugar.ClickHouse |
|
|
foreach (var item in groupList) |
|
|
foreach (var item in groupList) |
|
|
{ |
|
|
{ |
|
|
batchInsetrSql.Append("("); |
|
|
batchInsetrSql.Append("("); |
|
|
insertColumns = string.Join(",", item.Select(it => FormatValue(it.Value, it.PropertyName))); |
|
|
insertColumns = string.Join(",", item.Select(it =>base.GetDbColumn(it, FormatValue(it.Value, it.PropertyName)))); |
|
|
batchInsetrSql.Append(insertColumns); |
|
|
batchInsetrSql.Append(insertColumns); |
|
|
if (groupList.Last() == item) |
|
|
if (groupList.Last() == item) |
|
|
{ |
|
|
{ |
|
|