mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
feat(core): 添加 stringAgg 和 listAgg 函数的重载方法
This commit is contained in:
parent
aaa2566b12
commit
aa08da881a
@ -2685,6 +2685,14 @@ public class QueryMethods {
|
||||
return new FunctionQueryColumn(STRING_AGG, columnX, string(separator));
|
||||
}
|
||||
|
||||
public static QueryColumn stringAgg(String columnX, String separator) {
|
||||
return new FunctionQueryColumn(STRING_AGG, columnX, separator);
|
||||
}
|
||||
|
||||
public static <T> QueryColumn stringAgg(LambdaGetter<T> columnX, String separator) {
|
||||
return new FunctionQueryColumn(STRING_AGG, LambdaUtil.getQueryColumn(columnX), string(separator));
|
||||
}
|
||||
|
||||
/**
|
||||
* LISTAGG 聚合函数
|
||||
*/
|
||||
@ -2692,6 +2700,14 @@ public class QueryMethods {
|
||||
return new FunctionQueryColumn(LISTAGG, columnX, string(separator));
|
||||
}
|
||||
|
||||
public static QueryColumn listAgg(String columnX, String separator) {
|
||||
return new FunctionQueryColumn(STRING_AGG, columnX, separator);
|
||||
}
|
||||
|
||||
public static <T> QueryColumn listAgg(LambdaGetter<T> columnX, String separator) {
|
||||
return new FunctionQueryColumn(STRING_AGG, LambdaUtil.getQueryColumn(columnX), string(separator));
|
||||
}
|
||||
|
||||
/**
|
||||
* date 函数
|
||||
* @return
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user