mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 17:18:24 +08:00
update mybatis-flex-core/src/main/java/com/mybatisflex/core/query/QueryMethods.java.
加一个mysql的GROUP_CONCAT函数 Signed-off-by: 沈君锋 <2518737541@qq.com>
This commit is contained in:
parent
4263a6a742
commit
ba82aa3d22
@ -2572,4 +2572,12 @@ public class QueryMethods {
|
|||||||
return new RawFragment(raw, params);
|
return new RawFragment(raw, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分组值拼接
|
||||||
|
*/
|
||||||
|
public static QueryColumn groupConcat(QueryColumn columnX) {
|
||||||
|
return new FunctionQueryColumn(GROUP_CONCAT,columnX);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user