mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 01:28:24 +08:00
commit
488c40bd4f
@ -224,6 +224,20 @@ public class QueryColumn implements CloneSupport<QueryColumn> {
|
||||
return QueryCondition.create(this, SqlConsts.LIKE, "%" + value).when(fn);
|
||||
}
|
||||
|
||||
public QueryCondition likeRaw(Object value) {
|
||||
if (value == null) {
|
||||
return QueryCondition.createEmpty();
|
||||
}
|
||||
return QueryCondition.create(this, SqlConsts.LIKE, value);
|
||||
}
|
||||
|
||||
public <T> QueryCondition likeRaw(Object value, Predicate<T> fn) {
|
||||
if (value == null) {
|
||||
return QueryCondition.createEmpty();
|
||||
}
|
||||
return QueryCondition.create(this, SqlConsts.LIKE, value).when(fn);
|
||||
}
|
||||
|
||||
/**
|
||||
* 大于 greater than
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user