Synchronization code

This commit is contained in:
sunkaixuan 2023-08-06 17:03:12 +08:00
parent f2bfd93d73
commit 4b5dd7d425
3 changed files with 5 additions and 3 deletions

View File

@ -171,7 +171,7 @@ namespace SqlSugar
base.Expression = item;
base.Start();
parameter.IsAppendResult();
parameter.Context.Result.Append(base.Context.GetEqString(memberName, parameter.CommonTempData.ObjToString()));
parameter.Context.Result.Append(base.Context.GetEqString(memberName, parameter.CommonTempData.ObjToString().Replace(",",UtilConstants.ReplaceCommaKey)));
if (this.Context.Parameters != null)
{

View File

@ -338,7 +338,8 @@ namespace SqlSugar
}
public override string MergeString(params string[] strings)
{
return " concat(" + string.Join(",", strings).Replace("+", "") + ") ";
var key = Guid.NewGuid() + "";
return " concat(" + string.Join(",", strings.Select(it => it?.Replace("+", key))).Replace("+", "").Replace(key, "+") + ") ";
}
public override string IsNull(MethodCallExpressionModel model)
{

View File

@ -367,7 +367,8 @@ namespace SqlSugar
}
public override string MergeString(params string[] strings)
{
return " concat("+string.Join(",", strings).Replace("+", "") + ") ";
var key = Guid.NewGuid() + "";
return " concat("+string.Join(",", strings.Select(it=>it?.Replace("+", key))).Replace("+", "").Replace(key, "+") + ") ";
}
public override string IsNull(MethodCallExpressionModel model)
{