mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Update Oracle GetStringJoinSelector
This commit is contained in:
@@ -105,7 +105,14 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
public override string GetStringJoinSelector(string result, string separator)
|
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(',').First()}) ";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return $"listagg(to_char({result}),'{separator}') within group(order by {result}) ";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
public override string HasValue(MethodCallExpressionModel model)
|
public override string HasValue(MethodCallExpressionModel model)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user