ting.yin 1 年之前
父節點
當前提交
fdb42c11a5
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      stmms-web/src/main/java/cn/com/qmth/stmms/admin/exam/ScoreVerifyController.java

+ 9 - 0
stmms-web/src/main/java/cn/com/qmth/stmms/admin/exam/ScoreVerifyController.java

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