|
@@ -337,7 +337,7 @@ public class GenPaperService {
|
|
|
}
|
|
|
//生成随机抽取的题号
|
|
|
List<Integer> questionsIndex = new ArrayList<Integer>();
|
|
|
- questionsIndex = CommonUtils.getTandom(questionsIndex, needNumber, questionSum);
|
|
|
+ questionsIndex = CommonUtils.getTandom(questionsIndex, unitList.size(), unitList.size());
|
|
|
//定义随机抽题的数量
|
|
|
int lastNumber = 0;
|
|
|
List<PaperDetailUnit> newDetailUnits = new ArrayList<PaperDetailUnit>();
|