fix: 修复pr-494导致单元测试不通过问题

This commit is contained in:
weichangming 2025-02-17 09:14:07 +08:00
parent fc0812228a
commit 890e0c3944

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);
}