fix: 修复未指定查询条件时可能npe问题

This commit is contained in:
zhouhao
2023-07-14 19:45:01 +08:00
parent ef652d1a3d
commit f2776fb957

View File

@@ -47,9 +47,9 @@ class DefaultQueryHelperTest {
.sync();
helper.select("select name as \"name\",count(1) totalResult from s_test group by name having count(1) > ? ", GroupResult::new,0)
.where(dsl -> dsl
.is("age", "31")
.orderByAsc(GroupResult::getTotalResult))
// .where(dsl -> dsl
// .is("age", "31")
// .orderByAsc(GroupResult::getTotalResult))
.fetch()
.doOnNext(v -> System.out.println(JSON.toJSONString(v, SerializerFeature.PrettyFormat)))
.as(StepVerifier::create)