mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-05-16 02:19:14 +08:00
fix: 修复未指定查询条件时可能npe问题
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user