|
@@ -1,6 +1,7 @@
|
|
|
package cn.com.qmth.stmms.ms.marking.api;
|
|
|
|
|
|
import cn.com.qmth.stmms.ms.core.domain.ExamQuestion;
|
|
|
+import cn.com.qmth.stmms.ms.core.domain.enums.TrialEnum;
|
|
|
import cn.com.qmth.stmms.ms.core.repository.ExamQuestionRepo;
|
|
|
import cn.com.qmth.stmms.ms.core.vo.Subject;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -30,6 +31,6 @@ public class ExamQuestionApi {
|
|
|
*/
|
|
|
@RequestMapping(method = RequestMethod.GET)
|
|
|
public List<ExamQuestion> list(@RequestParam Long workId, @RequestParam Subject subject){
|
|
|
- return examQuestionRepo.findByWorkIdAndSubject(workId,subject);
|
|
|
+ return examQuestionRepo.findByWorkIdAndSubjectAndTest(workId,subject, TrialEnum.DEFAULT.getId());
|
|
|
}
|
|
|
}
|