|
@@ -1,5 +1,6 @@
|
|
|
package cn.com.qmth.stmms.biz.report.service.impl;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.Collections;
|
|
|
import java.util.Comparator;
|
|
|
import java.util.LinkedList;
|
|
@@ -91,8 +92,9 @@ public class ReportSubjectQuestionServiceImpl extends BaseQueryService<ReportSub
|
|
|
.toArray(new Predicate[predicates.size()]));
|
|
|
}
|
|
|
}, query);
|
|
|
- List<ReportSubjectQuestion> list = result.getContent();
|
|
|
- list = questionSort(list);
|
|
|
+ List<ReportSubjectQuestion> list = new ArrayList<ReportSubjectQuestion>();
|
|
|
+ list.addAll(result.getContent());
|
|
|
+ questionSort(list);
|
|
|
return list;
|
|
|
}
|
|
|
|
|
@@ -115,7 +117,7 @@ public class ReportSubjectQuestionServiceImpl extends BaseQueryService<ReportSub
|
|
|
String subjectCode, boolean objective, String paperType) {
|
|
|
List<ReportSubjectQuestion> list = reportSubjectQuestionDao.findByExamIdAndSubjectCodeAndObjectiveAndPaperType(
|
|
|
examId, subjectCode, objective, paperType, new Sort(Direction.ASC, "mainNumber", "subNumber"));
|
|
|
- list = questionSort(list);
|
|
|
+ questionSort(list);
|
|
|
return list;
|
|
|
}
|
|
|
|