|
@@ -38,6 +38,7 @@ import cn.com.qmth.examcloud.reports.commons.enums.OperateContent;
|
|
import cn.com.qmth.examcloud.reports.commons.util.ReportsUtil;
|
|
import cn.com.qmth.examcloud.reports.commons.util.ReportsUtil;
|
|
import cn.com.qmth.examcloud.support.helper.IdentityNumberHelper;
|
|
import cn.com.qmth.examcloud.support.helper.IdentityNumberHelper;
|
|
import cn.com.qmth.examcloud.web.helpers.GlobalHelper;
|
|
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.security.DataRule;
|
|
import cn.com.qmth.examcloud.web.support.ControllerSupport;
|
|
import cn.com.qmth.examcloud.web.support.ControllerSupport;
|
|
import com.google.common.collect.Lists;
|
|
import com.google.common.collect.Lists;
|
|
@@ -187,7 +188,7 @@ public class ExamStudentController extends ControllerSupport {
|
|
UserDataRule courseDataRule = super.getUserDataRule(DataRuleType.COURSE);
|
|
UserDataRule courseDataRule = super.getUserDataRule(DataRuleType.COURSE);
|
|
if (!skipRule) {
|
|
if (!skipRule) {
|
|
if (orgDataRule.assertEmptyQueryResult() || courseDataRule.assertEmptyQueryResult()) {
|
|
if (orgDataRule.assertEmptyQueryResult() || courseDataRule.assertEmptyQueryResult()) {
|
|
- return new PageInfo(Page.empty());
|
|
|
|
|
|
+ return PageUtils.toPageInfo(Page.empty());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -271,7 +272,7 @@ public class ExamStudentController extends ControllerSupport {
|
|
Page<ExamStudentEntity> page = examStudentRepo.findAll(specification, pageable);
|
|
Page<ExamStudentEntity> page = examStudentRepo.findAll(specification, pageable);
|
|
|
|
|
|
if (!page.hasContent()) {
|
|
if (!page.hasContent()) {
|
|
- return new PageInfo(Page.empty());
|
|
|
|
|
|
+ return PageUtils.toPageInfo(Page.empty());
|
|
}
|
|
}
|
|
|
|
|
|
Set<Long> orgIds = new HashSet<>(), examIds = new HashSet<>(), examStageIds = new HashSet<>(), studentIds = new HashSet<>();
|
|
Set<Long> orgIds = new HashSet<>(), examIds = new HashSet<>(), examStageIds = new HashSet<>(), studentIds = new HashSet<>();
|
|
@@ -374,7 +375,7 @@ public class ExamStudentController extends ControllerSupport {
|
|
examStudents.add(bean);
|
|
examStudents.add(bean);
|
|
}
|
|
}
|
|
|
|
|
|
- return new PageInfo<>(page, examStudents);
|
|
|
|
|
|
+ return PageUtils.toPageInfo(page, examStudents);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|