update docs/condition.md.

This commit is contained in:
elastic search 2022-05-14 13:30:23 +00:00 committed by Gitee
parent f12670b962
commit 04f6fe6068
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,3 +1,8 @@
> **Tips**
>Wrapper支持两种方式创建:
> - 直接new,例如 new LambdaEsQueryWrapper<>().
> - 通过EsWrappers.lambdaQuery()创建,可支撑链式编程的场景,对标MP的Wrappers
> **说明:**
> - 以下出现的第一个入参boolean condition表示该条件是否加入最后生成的语句中例如query.like(StringUtils.isNotBlank(name), Entity::getName, name) .eq(age!=null && age >= 0, Entity::getAge, age)
> - 以下代码块内的多个方法均为从上往下补全个别boolean类型的入参,默认为true