Merge pull request #501 from weicm/main

fix: 修复pr-494导致单元测试不通过问题
This commit is contained in:
Michael Yang 2025-02-17 11:07:49 +08:00 committed by GitHub
commit 2bf1bdb454
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -202,7 +202,7 @@ public class AccountNativeTest implements WithAssertions {
queryWrapper.where(Account::getId).ge(100)
.and(Account::getUserName).like("michael")
.or(Account::getUserName).like(null, If::notNull);
String expectSql = "SELECT * FROM WHERE `id` >= 100 AND `user_name` LIKE '%michael%'";
String expectSql = "SELECT * WHERE `id` >= 100 AND `user_name` LIKE '%michael%'";
assertThat(queryWrapper.toSQL()).isEqualTo(expectSql);
}