Synchronization code

This commit is contained in:
sunkaixuan
2024-02-22 17:19:54 +08:00
parent 82c0085fb5
commit d27b8b0d44

View File

@@ -105,7 +105,14 @@ namespace SqlSugar
}
public override string GetStringJoinSelector(string result, string separator)
{
return $"listagg(to_char({result}),'{separator}') within group(order by {result}) ";
if (result.Contains(","))
{
return $"listagg(to_char({result.Split(',').First()}),'{separator}') within group(order by {result.Split(',').Last()}) ";
}
else
{
return $"listagg(to_char({result}),'{separator}') within group(order by {result}) ";
}
}
public override string HasValue(MethodCallExpressionModel model)
{