|
@@ -27,6 +27,7 @@ import cn.com.qmth.stmms.biz.exam.service.ExamService;
|
|
import cn.com.qmth.stmms.biz.exam.service.ExamStudentService;
|
|
import cn.com.qmth.stmms.biz.exam.service.ExamStudentService;
|
|
import cn.com.qmth.stmms.biz.user.model.User;
|
|
import cn.com.qmth.stmms.biz.user.model.User;
|
|
import cn.com.qmth.stmms.common.enums.CheckType;
|
|
import cn.com.qmth.stmms.common.enums.CheckType;
|
|
|
|
+import cn.com.qmth.stmms.common.enums.ExamType;
|
|
import cn.com.qmth.stmms.common.utils.DateUtils;
|
|
import cn.com.qmth.stmms.common.utils.DateUtils;
|
|
import cn.com.qmth.stmms.common.utils.RequestUtils;
|
|
import cn.com.qmth.stmms.common.utils.RequestUtils;
|
|
|
|
|
|
@@ -63,7 +64,8 @@ public class ScanController extends BaseApiController {
|
|
Exam exam = examService.findById(examId);
|
|
Exam exam = examService.findById(examId);
|
|
JSONArray array = new JSONArray();
|
|
JSONArray array = new JSONArray();
|
|
// 判断上传权限
|
|
// 判断上传权限
|
|
- if (exam == null || !exam.getSchoolId().equals(user.getSchoolId())) {
|
|
|
|
|
|
+ if (exam == null || !exam.getSchoolId().equals(user.getSchoolId())
|
|
|
|
+ || !ExamType.SCAN_IMAGE.equals(exam.getType())) {
|
|
throw ApiException.EXAM_NOT_ACCESSIBLED;
|
|
throw ApiException.EXAM_NOT_ACCESSIBLED;
|
|
}
|
|
}
|
|
if (scStudentParameter != null && scStudentParameter.length > 0) {
|
|
if (scStudentParameter != null && scStudentParameter.length > 0) {
|
|
@@ -85,7 +87,8 @@ public class ScanController extends BaseApiController {
|
|
array.add(obj);
|
|
array.add(obj);
|
|
// 增加人工审核数据
|
|
// 增加人工审核数据
|
|
if (sc.isManual()) {
|
|
if (sc.isManual()) {
|
|
- checkStudentService.save(new CheckStudent(student.getId(), examId, student.getSubjectCode(), CheckType.MANUAL));
|
|
|
|
|
|
+ checkStudentService.save(new CheckStudent(student.getId(), examId,
|
|
|
|
+ student.getSubjectCode(), CheckType.MANUAL));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|