|
@@ -10,6 +10,8 @@ import java.util.stream.Collectors;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
+import net.sf.json.JSONObject;
|
|
|
+
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
@@ -27,6 +29,7 @@ import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
|
|
import cn.com.qmth.stmms.admin.dto.RejectResult;
|
|
|
import cn.com.qmth.stmms.admin.utils.ExportInspectExcel;
|
|
|
import cn.com.qmth.stmms.admin.vo.InspectedSubjectVO;
|
|
|
+import cn.com.qmth.stmms.biz.config.service.impl.SystemCache;
|
|
|
import cn.com.qmth.stmms.biz.exam.bean.ExamStudentVo;
|
|
|
import cn.com.qmth.stmms.biz.exam.bean.InspectWorkVo;
|
|
|
import cn.com.qmth.stmms.biz.exam.model.Exam;
|
|
@@ -46,6 +49,8 @@ import cn.com.qmth.stmms.biz.lock.LockService;
|
|
|
import cn.com.qmth.stmms.biz.mark.model.Task;
|
|
|
import cn.com.qmth.stmms.biz.mark.service.MarkService;
|
|
|
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.annotation.Logging;
|
|
|
import cn.com.qmth.stmms.common.annotation.RoleRequire;
|
|
|
import cn.com.qmth.stmms.common.domain.WebUser;
|
|
@@ -57,7 +62,6 @@ import cn.com.qmth.stmms.common.enums.SelectiveStatus;
|
|
|
import cn.com.qmth.stmms.common.enums.SubjectiveStatus;
|
|
|
import cn.com.qmth.stmms.common.utils.ExportExcel;
|
|
|
import cn.com.qmth.stmms.common.utils.RequestUtils;
|
|
|
-import net.sf.json.JSONObject;
|
|
|
|
|
|
@Controller("inspectedController")
|
|
|
@RequestMapping("/admin/exam/inspected")
|
|
@@ -95,6 +99,12 @@ public class InspectedController extends BaseExamController {
|
|
|
@Autowired
|
|
|
private ExamSubjectService subjectService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private SystemCache systemCache;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private SchoolService schoolService;
|
|
|
+
|
|
|
@Value("${slice.split.config}")
|
|
|
private String splitConfig;
|
|
|
|
|
@@ -418,7 +428,8 @@ public class InspectedController extends BaseExamController {
|
|
|
setting.accumulate("userName", wu.getName());
|
|
|
setting.accumulate("splitConfig", getSplitConfig());
|
|
|
setting.accumulate("inspectScroll", exam.getInspectScrollBottom());
|
|
|
- setting.accumulate("doubleTrack", false);
|
|
|
+ School school = schoolService.findById(exam.getSchoolId());
|
|
|
+ setting.accumulate("doubleTrack", systemCache.isDoubleTrack() && school.isDoubleTrack());
|
|
|
|
|
|
ExamSubject examSubject = subjectService.find(examId, subjectCode);
|
|
|
JSONObject subject = new JSONObject();
|