fix: 处理改动带来的影响。

This commit is contained in:
Suomm 2023-08-25 14:58:11 +08:00
parent 3f637dfe3c
commit 52985ab9a6

View File

@ -134,13 +134,13 @@ public class EntityTestStarter {
.from(Article.class) .from(Article.class)
// .leftJoin(Account.class).as("a").on(ARTICLE.ACCOUNT_ID.eq(ACCOUNT.ID)) // .leftJoin(Account.class).as("a").on(ARTICLE.ACCOUNT_ID.eq(ACCOUNT.ID))
.leftJoin(Account.class).as("a").on(wrapper -> wrapper.where(Account::getId).eq(Article::getAccountId)) .leftJoin(Account.class).as("a").on(wrapper -> wrapper.where(Account::getId).eq(Article::getAccountId))
.where(Account::getId).ge(100, If::notEmpty) .where(Account::getId).ge(100, If::notNull)
.and(wrapper -> { .and(wrapper -> {
wrapper.where(Account::getId).ge(100) wrapper.where(Account::getId).ge(100)
.or(Account::getAge).gt(200) .or(Account::getAge).gt(200)
.and(Article::getAccountId).eq(200) .and(Article::getAccountId).eq(200)
.or(wrapper1 -> { .or(wrapper1 -> {
wrapper1.where(Account::getId).like("a", If::notEmpty); wrapper1.where(Account::getId).like("a", If::hasText);
}) })
; ;
}); });