|
@@ -163,7 +163,10 @@ public class OrgCloudServiceProvider extends ControllerSupport implements OrgClo
|
|
|
|
|
|
Specification<OrgEntity> specification = (root, query, cb) -> {
|
|
Specification<OrgEntity> specification = (root, query, cb) -> {
|
|
List<Predicate> predicates = new ArrayList<>();
|
|
List<Predicate> predicates = new ArrayList<>();
|
|
- predicates.add(cb.equal(root.get("rootId"), rootOrgId));
|
|
|
|
|
|
+
|
|
|
|
+ if (null != rootOrgId) {
|
|
|
|
+ predicates.add(cb.equal(root.get("rootId"), rootOrgId));
|
|
|
|
+ }
|
|
|
|
|
|
predicates.add(cb.greaterThanOrEqualTo(root.get("id"), start));
|
|
predicates.add(cb.greaterThanOrEqualTo(root.get("id"), start));
|
|
|
|
|