Pārlūkot izejas kodu

蓝图组卷修改

weiwenhai 6 gadi atpakaļ
vecāks
revīzija
b2bf259a9d

+ 2 - 1
examcloud-core-questions-service/src/main/java/cn/com/qmth/examcloud/core/questions/service/impl/GenPaperService.java

@@ -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>();