|
@@ -18,6 +18,7 @@ import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
|
|
|
|
|
+import cn.com.qmth.stmms.biz.config.service.impl.SystemCache;
|
|
|
import cn.com.qmth.stmms.biz.exam.bean.ScoreVerifyInfo;
|
|
|
import cn.com.qmth.stmms.biz.exam.bean.ScoreVerifyVo;
|
|
|
import cn.com.qmth.stmms.biz.exam.model.Exam;
|
|
@@ -30,6 +31,8 @@ import cn.com.qmth.stmms.biz.exception.StatusException;
|
|
|
import cn.com.qmth.stmms.biz.file.service.FileService;
|
|
|
import cn.com.qmth.stmms.biz.mark.model.Task;
|
|
|
import cn.com.qmth.stmms.biz.mark.service.TaskService;
|
|
|
+import cn.com.qmth.stmms.biz.school.model.School;
|
|
|
+import cn.com.qmth.stmms.biz.school.service.SchoolService;
|
|
|
import cn.com.qmth.stmms.common.domain.WebUser;
|
|
|
import cn.com.qmth.stmms.common.enums.ExamType;
|
|
|
import cn.com.qmth.stmms.common.utils.ExportExcel;
|
|
@@ -54,6 +57,10 @@ public class ScoreVerifyController extends BaseExamController {
|
|
|
private FileService fileService;
|
|
|
@Autowired
|
|
|
private ExamService examService;
|
|
|
+ @Autowired
|
|
|
+ private SystemCache systemCache;
|
|
|
+ @Autowired
|
|
|
+ private SchoolService schoolService;
|
|
|
|
|
|
@RequestMapping(value = "reset")
|
|
|
public String reset(Model model, HttpServletRequest request) {
|
|
@@ -191,6 +198,8 @@ public class ScoreVerifyController extends BaseExamController {
|
|
|
Exam exam = examService.findById(examId);
|
|
|
ret.accumulate("examType", exam.getType());
|
|
|
ret.accumulate("fileServer", fileService.getFileServer());
|
|
|
+ School school = schoolService.findById(exam.getSchoolId());
|
|
|
+ ret.accumulate("doubleTrack", systemCache.isDoubleTrack() && school.isDoubleTrack());
|
|
|
if(!scoreVerifyService.existByExamIdAndUserId(examId,wu.getId())) {
|
|
|
return ret;
|
|
|
}
|