|
@@ -34,6 +34,7 @@ import cn.com.qmth.examcloud.support.helper.IdentityNumberHelper;
|
|
|
import cn.com.qmth.examcloud.task.api.DataSyncCloudService;
|
|
|
import cn.com.qmth.examcloud.web.config.SystemProperties;
|
|
|
import cn.com.qmth.examcloud.web.helpers.GlobalHelper;
|
|
|
+import cn.com.qmth.examcloud.web.jpa.PageUtils;
|
|
|
import cn.com.qmth.examcloud.web.security.DataRule;
|
|
|
import cn.com.qmth.examcloud.web.support.ControllerSupport;
|
|
|
import com.google.common.collect.Lists;
|
|
@@ -135,7 +136,7 @@ public class StudentController extends ControllerSupport {
|
|
|
|
|
|
UserDataRule userDataRule = super.getUserDataRule(DataRuleType.ORG);
|
|
|
if (userDataRule.assertEmptyQueryResult()) {
|
|
|
- return new PageInfo(new PageImpl<>(new ArrayList<>(), pageable, 0L));
|
|
|
+ return PageUtils.toPageInfo(new PageImpl<>(new ArrayList<>(), pageable, 0L));
|
|
|
}
|
|
|
|
|
|
Specification<StudentEntity> specification = (root, query, cb) -> {
|