mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 17:18:24 +08:00
fix: 优化括号条件逻辑。
This commit is contained in:
parent
5b082793cb
commit
83354bc1bf
@ -20,6 +20,8 @@ import com.mybatisflex.core.util.ObjectUtil;
|
||||
import com.mybatisflex.core.util.StringUtil;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.function.BooleanSupplier;
|
||||
import java.util.function.Predicate;
|
||||
|
||||
/**
|
||||
* 括号
|
||||
@ -32,6 +34,59 @@ public class Brackets extends QueryCondition {
|
||||
this.childCondition = childCondition;
|
||||
}
|
||||
|
||||
@Override
|
||||
public QueryColumn getColumn() {
|
||||
return childCondition.getColumn();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setColumn(QueryColumn column) {
|
||||
childCondition.setColumn(column);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setValue(Object value) {
|
||||
childCondition.setValue(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getLogic() {
|
||||
return childCondition.getLogic();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setLogic(String logic) {
|
||||
childCondition.setLogic(logic);
|
||||
}
|
||||
|
||||
@Override
|
||||
public QueryCondition when(boolean effective) {
|
||||
return childCondition.when(effective);
|
||||
}
|
||||
|
||||
@Override
|
||||
public QueryCondition when(BooleanSupplier fn) {
|
||||
return childCondition.when(fn);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated 继承自标记删除的方法
|
||||
*/
|
||||
@Override
|
||||
@Deprecated
|
||||
public <T> QueryCondition when(Predicate<T> fn) {
|
||||
return childCondition.when(fn);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected QueryCondition getPrevEffectiveCondition() {
|
||||
return childCondition.getPrevEffectiveCondition();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected QueryCondition getNextEffectiveCondition() {
|
||||
return childCondition.getNextEffectiveCondition();
|
||||
}
|
||||
|
||||
@Override
|
||||
public QueryCondition and(QueryCondition nextCondition) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user