소스 검색

Merge remote-tracking branch 'origin/dev_v3.3.4' into dev_v3.3.4

wangliang 1 년 전
부모
커밋
d6f09585c1

+ 3 - 2
distributed-print-business/src/main/java/com/qmth/distributed/print/business/service/impl/ExamTaskServiceImpl.java

@@ -926,7 +926,7 @@ public class ExamTaskServiceImpl extends ServiceImpl<ExamTaskMapper, ExamTask> i
                 if (Objects.nonNull(attachmentId)) {
                     BasicAttachment attachment = basicAttachmentService.getById(attachmentId);
                     Optional.ofNullable(attachment).orElseThrow(() -> ExceptionResultEnum.ERROR.exception("附件数据异常"));
-                    String fileName = dirPath + "试卷" + SystemConstant.HYPHEN + name  + attachment.getType();
+                    String fileName = dirPath + "试卷" + SystemConstant.HYPHEN + name + attachment.getType();
                     fileUploadService.downloadFile(attachment, fileName);
                 }
 
@@ -2317,7 +2317,8 @@ public class ExamTaskServiceImpl extends ServiceImpl<ExamTaskMapper, ExamTask> i
             examTaskPaperDataService.saveOrUpdateByMultiId(examTaskPaperData);
             return examTaskPaperData;
         } catch (Exception e) {
-            throw ExceptionResultEnum.ERROR.exception("获取试卷包数据失败");
+            e.printStackTrace();
+            throw ExceptionResultEnum.ERROR.exception("解析试卷包数据失败");
         } finally {
             if (zipFile.exists()) {
                 FileUtil.deleteFile(zipFile);