xiatian il y a 1 an
Parent
commit
67deb069de

+ 2 - 2
examcloud-core-questions-api-provider/src/main/java/cn/com/qmth/examcloud/core/questions/api/provider/RandomPaperCloudServiceProvider.java

@@ -36,10 +36,10 @@ public class RandomPaperCloudServiceProvider implements RandomPaperCloudService
             throw new StatusException("RandomPaperId is null");
         }
     	RandomPaper p = GlobalHelper.getEntity(randomPaperRepo, req.getRandomPaperId(), RandomPaper.class);
+    	GetRandomPaperBeanResp res=new GetRandomPaperBeanResp();
     	if(p==null) {
-    		throw new StatusException("未找到抽卷模板信息");
+    		return res;
     	}
-    	GetRandomPaperBeanResp res=new GetRandomPaperBeanResp();
     	RandomPaperBean bean=new RandomPaperBean();
     	bean.setId(p.getId());
     	bean.setName(p.getName());