Browse Source

BUG修复

wangliang 1 year ago
parent
commit
de0d646ec9

+ 7 - 0
themis-business/src/main/java/com/qmth/themis/business/service/impl/TOeExamRecordServiceImpl.java

@@ -417,6 +417,13 @@ public class TOeExamRecordServiceImpl extends ServiceImpl<TOeExamRecordMapper, T
             if (Objects.nonNull(struct)) {
             if (Objects.nonNull(struct)) {
                 ossUtil.upload(false, structFilePath, struct.getContent());
                 ossUtil.upload(false, structFilePath, struct.getContent());
             }
             }
+        } catch (Exception e) {
+            log.error("考试持久化失败", e);
+            if (e instanceof BusinessException) {
+                throw new BusinessException(e.getMessage());
+            } else {
+                throw new RuntimeException(e);
+            }
         } finally {
         } finally {
             FileUtil.deleteFolder(dir);
             FileUtil.deleteFolder(dir);
         }
         }