|
@@ -12,7 +12,7 @@ import cn.com.qmth.stmms.biz.exam.model.ExamQuestion;
|
|
public interface ExamQuestionDao extends JpaRepository<ExamQuestion, Integer>, JpaSpecificationExecutor<ExamQuestion> {
|
|
public interface ExamQuestionDao extends JpaRepository<ExamQuestion, Integer>, JpaSpecificationExecutor<ExamQuestion> {
|
|
|
|
|
|
@Query("select q from ExamQuestion q where q.examId=?1 and q.subjectCode=?2 and q.objective=?3 "
|
|
@Query("select q from ExamQuestion q where q.examId=?1 and q.subjectCode=?2 and q.objective=?3 "
|
|
- + "order by q.mainNumber, q.subNumber")
|
|
|
|
|
|
+ + "order by q.paperType, q.mainNumber, q.subNumber")
|
|
public List<ExamQuestion> findByExamIdAndSubjectCodeAndObjective(Integer examId, String subjectCode,
|
|
public List<ExamQuestion> findByExamIdAndSubjectCodeAndObjective(Integer examId, String subjectCode,
|
|
boolean objective);
|
|
boolean objective);
|
|
|
|
|