|
@@ -3,10 +3,8 @@ package cn.com.qmth.stmms.ms.marking.api;
|
|
|
import cn.com.qmth.stmms.ms.commons.config.SystemConfig;
|
|
|
import cn.com.qmth.stmms.ms.commons.utils.ServletUtil;
|
|
|
import cn.com.qmth.stmms.ms.commons.web.PageableDTO;
|
|
|
-import cn.com.qmth.stmms.ms.core.domain.ExamQuestion;
|
|
|
-import cn.com.qmth.stmms.ms.core.domain.MarkStage;
|
|
|
-import cn.com.qmth.stmms.ms.core.domain.MarkSubject;
|
|
|
-import cn.com.qmth.stmms.ms.core.domain.Paper;
|
|
|
+import cn.com.qmth.stmms.ms.core.domain.*;
|
|
|
+import cn.com.qmth.stmms.ms.core.domain.enums.TrialEnum;
|
|
|
import cn.com.qmth.stmms.ms.core.domain.task.MarkTask;
|
|
|
import cn.com.qmth.stmms.ms.core.domain.user.MarkerGroupLeader;
|
|
|
import cn.com.qmth.stmms.ms.core.repository.ExamQuestionRepo;
|
|
@@ -674,4 +672,18 @@ public class PaperApi {
|
|
|
}
|
|
|
return mapList;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据试卷密号查询试卷
|
|
|
+ * @param workId
|
|
|
+ * @param subject
|
|
|
+ * @param secretNumber
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/get_by_secret_number", method = RequestMethod.GET)
|
|
|
+ public List<Paper> getBySecretNumber(@RequestParam Long workId,
|
|
|
+ @RequestParam Subject subject,
|
|
|
+ @RequestParam String secretNumber) {
|
|
|
+ return paperRepo.findByWorkIdAndSubjectAndSecretNumberAndTest(workId, subject, secretNumber, TrialEnum.DEFAULT.getId());
|
|
|
+ }
|
|
|
}
|