xiatian 5 gadi atpakaļ
vecāks
revīzija
71ac59349b

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

@@ -59,7 +59,7 @@ public class ExportPaperController extends ControllerSupport {
         ExportServiceManage esm = exportServiceManageRepo.findByOrgName(orgName);
 
         if (esm == null) {
-            throw new StatusException("500", String.format("学校【%s】尚未配置导出逻辑!", orgName));
+            throw new StatusException("500", String.format("学校【%s】尚未配置导出功能!", orgName));
         }
         User user = getAccessUser();
         exportPaperService.exportPaperFile(id, esm.getExportServiceName(), exportContentList, response, loginName,
@@ -87,7 +87,7 @@ public class ExportPaperController extends ControllerSupport {
         ExportServiceManage esm = exportServiceManageRepo.findByOrgName(orgName);
 
         if (esm == null) {
-            throw new StatusException("500", String.format("学校【%s】尚未配置导出模板!", orgName));
+            throw new StatusException("500", String.format("学校【%s】尚未配置导出功能!", orgName));
         }
 
         try {

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

@@ -167,7 +167,7 @@ public class ExtractConfigFileServiceImpl implements ExtractConfigFileService {
     private void uploadPaperFile(ExtractConfig extractConfig, String paperId, ExportStructure exportStructure, User user, ExamPaper examPaper) throws Exception {
         ExportServiceManage esm = exportServiceManageRepo.findByOrgName(user.getRootOrgName());
         if (esm == null) {
-            esm = exportServiceManageRepo.findByOrgName("天津大学");
+            throw new StatusException("500", "尚未配置导出功能!");
         }
         ExportPaperAbstractService exportPaperAbstractService = (ExportPaperAbstractService) SpringContextUtils.getBeanById(esm.getExportServiceName());
         exportPaperAbstractService.uploadFile(extractConfig, paperId, exportStructure, user, examPaper);