|
@@ -236,6 +236,10 @@ public class ExtractConfigProviderServiceImpl implements ExtractConfigProviderSe
|
|
|
List<DefaultQuestionStructureWrapper> questionWrapperList = new ArrayList<DefaultQuestionStructureWrapper>();
|
|
|
//获取原小题的集合
|
|
|
List<PaperDetailUnit> paperDetailUnits = pduMap.get(paperDetail.getId());
|
|
|
+ if(paperDetailUnits==null || paperDetailUnits.size()<1){
|
|
|
+ log.error("试卷大题下面,没有小题");
|
|
|
+ throw new StatusException("Q-020241","考试试卷有误,请联系老师");
|
|
|
+ }
|
|
|
for(int j =0; j<paperDetailUnits.size(); j++){
|
|
|
PaperDetailUnit paperDetailUnit = paperDetailUnits.get(j);
|
|
|
DefaultQuestionStructureWrapper defaultQuestionStructureWrapper = new DefaultQuestionStructureWrapper();
|