Synchronization code

This commit is contained in:
sunkaixuan 2022-12-31 16:54:56 +08:00
parent 7ca4185210
commit d5afa32fc1

View File

@ -828,7 +828,7 @@ namespace SqlSugar
var whereIndex = QueryBuilder.WhereIndex; var whereIndex = QueryBuilder.WhereIndex;
string parameterName = this.SqlBuilder.SqlParameterKeyWord + "InPara" + whereIndex; string parameterName = this.SqlBuilder.SqlParameterKeyWord + "InPara" + whereIndex;
this.AddParameters(new SugarParameter(parameterName, inValues[0])); this.AddParameters(new SugarParameter(parameterName, inValues[0]));
this.Where(string.Format(QueryBuilder.EqualTemplate, filed, parameterName)); this.Where(string.Format(QueryBuilder.EqualTemplate,SqlBuilder.GetTranslationColumnName(filed), parameterName));
QueryBuilder.WhereIndex++; QueryBuilder.WhereIndex++;
} }
else else
@ -841,7 +841,7 @@ namespace SqlSugar
values.Add(item.ToString().ToSqlValue()); values.Add(item.ToString().ToSqlValue());
} }
} }
this.Where(string.Format(QueryBuilder.InTemplate, filed, string.Join(",", values))); this.Where(string.Format(QueryBuilder.InTemplate, SqlBuilder.GetTranslationColumnName(filed), string.Join(",", values)));
} }
} }
else else