|
@@ -177,9 +177,11 @@ public class QuestionInfoServiceImpl extends ServiceImpl<QuestionInfoMapper, Que
|
|
//全题库
|
|
//全题库
|
|
List<QuestionInfo> allList = new ArrayList<QuestionInfo>();
|
|
List<QuestionInfo> allList = new ArrayList<QuestionInfo>();
|
|
int error = 0;
|
|
int error = 0;
|
|
- while (allList.size() != total && error < 10) {
|
|
|
|
- System.out.println("error:" + error);
|
|
|
|
|
|
+ while (allList.size() != total) {
|
|
allList = new ArrayList<QuestionInfo>();
|
|
allList = new ArrayList<QuestionInfo>();
|
|
|
|
+ if(error >= 10) {
|
|
|
|
+ return allList;
|
|
|
|
+ }
|
|
//判断题
|
|
//判断题
|
|
List<QuestionInfo> judgeList = new ArrayList<QuestionInfo>();
|
|
List<QuestionInfo> judgeList = new ArrayList<QuestionInfo>();
|
|
//选择题
|
|
//选择题
|