|
@ -146,6 +146,22 @@ namespace SqlSugar |
|
|
} |
|
|
} |
|
|
this.AppendOpreator(parameter, isLeft); |
|
|
this.AppendOpreator(parameter, isLeft); |
|
|
} |
|
|
} |
|
|
|
|
|
else if (value is MapperSql) |
|
|
|
|
|
{ |
|
|
|
|
|
var sql = ((MapperSql)value).Sql; |
|
|
|
|
|
if (isLeft == true) |
|
|
|
|
|
{ |
|
|
|
|
|
sql += ExpressionConst.ExpressionReplace + parameter.BaseParameter.Index; |
|
|
|
|
|
} |
|
|
|
|
|
if (this.Context.Result.Contains(ExpressionConst.FormatSymbol)) |
|
|
|
|
|
{ |
|
|
|
|
|
this.Context.Result.Replace(ExpressionConst.FormatSymbol, sql); |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
this.Context.Result.Append(sql); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
else if (oppoSiteExpression is MemberExpression) |
|
|
else if (oppoSiteExpression is MemberExpression) |
|
|
{ |
|
|
{ |
|
|
string appendValue = Context.SqlParameterKeyWord |
|
|
string appendValue = Context.SqlParameterKeyWord |
|
@ -202,22 +218,6 @@ namespace SqlSugar |
|
|
this.Context.Result.Append(appendValue); |
|
|
this.Context.Result.Append(appendValue); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else if (value is MapperSql) |
|
|
|
|
|
{ |
|
|
|
|
|
var sql = ((MapperSql)value).Sql; |
|
|
|
|
|
if (isLeft == true) |
|
|
|
|
|
{ |
|
|
|
|
|
sql += ExpressionConst.ExpressionReplace + parameter.BaseParameter.Index; |
|
|
|
|
|
} |
|
|
|
|
|
if (this.Context.Result.Contains(ExpressionConst.FormatSymbol)) |
|
|
|
|
|
{ |
|
|
|
|
|
this.Context.Result.Replace(ExpressionConst.FormatSymbol, sql); |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
this.Context.Result.Append(sql); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
var appendValue = this.Context.SqlParameterKeyWord + ExpressionConst.Const + Context.ParameterIndex; |
|
|
var appendValue = this.Context.SqlParameterKeyWord + ExpressionConst.Const + Context.ParameterIndex; |
|
|