|
@@ -887,7 +887,8 @@ public class GenPaperService {
|
|
|
long start = System.currentTimeMillis();
|
|
|
PaperStruct paperStruct = paperStructRepo.findOne(genPaperDto.getPaperStructId());
|
|
|
if(paperStruct == null){
|
|
|
- throw new StatusException("Q-030086", "试卷结构不存在");
|
|
|
+ paperMsgMap.put("msg", "试卷结构不存在");
|
|
|
+ return paperMsgMap;
|
|
|
}
|
|
|
PaperContext paperContext = new PaperContext(paperStruct, genPaperDto.getConditions());
|
|
|
List<UnitContext> unitContexts = new LinkedList<UnitContext>();
|