电子说
** allEq(全部eq或个别isNull):**
allEq(Map< R,V > params);
allEq(Map< R,V > params,boolean null2IsNull);
allEq(boolean condition, Map< R, V > params, boolean null2IsNull);
** Eq(等于):**
eq(R column,Object val);
eq(boolean condition,R column,Object val);
ne(R column,Object val);
ne(boolean condition,R column,Object val);
gt(R column,Object val);
gt(boolean condition,R column,Object val);
ge(大于等于):
ge(R column,Object val);
ge(boolean condition,R column,Object val);
lt(R column,Object val);
lt(boolean condition,R column,Object val);
le(R column,Object val);
le(boolean condition,R column,Object val);
between(R column,Objcet val1,Object val2);
between(boolean condition,R column,Objcet val1,Object val2);
notBetween(R column,Object val1,Object val2);
notBetween(boolean condition,R column,Object val1,Object val2);
like(R column,Object val);
like(boolean condition,R column,Object val);
notLike(R column,Object val);
notLike(boolean condition,R column,Object val);
likeLeft(R column,Object val);
likeLeft(boolean condition,R column,Object val);
likeRight(R column,Object val);
likeRight(boolean condition,R column,Object val);
isNull(R column);
isNull(boolean condition,R column);
isNotNull(R column);
isNotNull(boolean condition,R column);
in(R column,Collection< ? > value);
in(R column,Object... values);
in(boolean condition,R column,Collection< ? > value);
in(boolean condition,R column,Object... values);
notIn(R column,Collection< ? > value);
notIn(R column,Object... values);
notIn(boolean condition,R column,Collection< ? > value);
notIn(boolean condition,R column,Object... values);
inSql(R column,String inValue);
inSql(boolean condition,R column,String inValue);
notInSql(R column,String inValue);
notInSql(boolean condition,R column,String inValue);
groupBy(R... columns);
groupBy(boolean condition,R... columns);
orderBy(boolean condition, boolean isAsc, R... columns);
orderByAsc(R... columns);
orderByAsc(boolean condition, R... columns);
orderByDesc(R... columns);
orderByDesc(boolean condition, R... columns);
having(String sqlHaving, Object... params);
having(boolean condition, String sqlHaving, Object... params);
func(Consumer< Children > consumer);
func(boolean condition,Consumer< Childern > consumer);
// 例如:func(i - > if(true){i.eq("id",1)}else{i.ne("id",1)})
or()
or(boolean condition);
and(Consumer< Param > consumer);
and(boolean condition,Consumer< Param > consumer);
nested(Consumer< Param > consumer);
nested(boolean condition,Consumer< Param > consumer);
// 例如:nested(i - > i.eq("name","张山").eq("status","dead")) ==》
// name = '张山' and status = 'dead'
exists(String existSql);
exists(boolean condition, String existSql);
notExists(String notExistsSql)
notExists(boolean condition, String notExistsSql)
全部0条评论
快来发表一下你的评论吧 !