mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 09:08:24 +08:00
feat: 添加 IFNULL 函数。
This commit is contained in:
parent
238ac0e901
commit
dbdbe7b498
@ -2445,6 +2445,13 @@ public class QueryMethods {
|
||||
return new IfFunctionQueryColumn(condition, trueValue, falseValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* IFNULL 函数。
|
||||
*/
|
||||
public static QueryColumn ifNull(QueryColumn nullValue, QueryColumn elseValue) {
|
||||
return new FunctionQueryColumn("IFNULL", nullValue, elseValue);
|
||||
}
|
||||
|
||||
// === 构建 QueryCondition 查询条件 ===
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user