|
@@ -59,10 +59,10 @@ public class ExamInfoController extends BaseApiController {
|
|
|
if (query.getSchoolId() == null && user.getSchoolId() != null) {
|
|
|
query.setSchoolId(user.getSchoolId());
|
|
|
}
|
|
|
- // query.setCreatorId(user.getId());
|
|
|
- // query.addStatus(ExamStatus.START);
|
|
|
- // query.setPageNumber(1);
|
|
|
- // query.setPageSize(20);
|
|
|
+ if(user.getSchools().contains(query.getSchoolId())){
|
|
|
+ // query.setCreatorId(user.getId());
|
|
|
+ // query.addStatus(ExamStatus.START);
|
|
|
+ // query.setPageNumber(1);
|
|
|
if (query.getPageSize() < 20) {
|
|
|
query.setPageSize(20);
|
|
|
}
|
|
@@ -71,7 +71,7 @@ public class ExamInfoController extends BaseApiController {
|
|
|
if (query.getCurrentCount() > 0) {
|
|
|
list = query.getResult();
|
|
|
}
|
|
|
-
|
|
|
+ }
|
|
|
for (Exam exam : list) {
|
|
|
JSONObject obj = new JSONObject();
|
|
|
obj.accumulate("id", exam.getId());
|