xiatian 8 mesi fa
parent
commit
cef2cfbdd2

+ 6 - 6
src/main/java/cn/com/qmth/scancentral/service/impl/ToolExportServiceImpl.java

@@ -172,7 +172,7 @@ public class ToolExportServiceImpl implements ToolExportService {
                     try {
                         FileUtils.copyToFile(fileStore.read(sheetPath), targetSheetFile);
                     } catch (Exception e) {
-                        throw new StatusException("文件拷贝出错", e);
+                        throw new RuntimeException("文件拷贝出错", e);
                     }
                 }
                 List<String> slices = pg.getSlicePath();
@@ -197,7 +197,7 @@ public class ToolExportServiceImpl implements ToolExportService {
                 try {
                     joinImages(sliceMap.get(sliceName), targetSliceFile);
                 } catch (Exception e) {
-                    throw new StatusException("文件拷贝出错", e);
+                    throw new RuntimeException("文件拷贝出错", e);
                 }
             }
             if (targetSliceFile.length() < 3 * 1024) {
@@ -258,7 +258,7 @@ public class ToolExportServiceImpl implements ToolExportService {
                 try {
                     FileUtils.copyToFile(fileStore.read(sheetPath), targetSheetFile);
                 } catch (Exception e) {
-                    throw new StatusException("文件拷贝出错", e);
+                    throw new RuntimeException("文件拷贝出错", e);
                 }
                 List<String> slices = pg.getSlicePath();
                 if (CollectionUtils.isNotEmpty(slices)) {
@@ -284,7 +284,7 @@ public class ToolExportServiceImpl implements ToolExportService {
             try {
                 joinImages(sliceMap.get(sliceName), targetSliceFile);
             } catch (Exception e) {
-                throw new StatusException("文件拷贝出错", e);
+                throw new RuntimeException("文件拷贝出错", e);
             }
         }
     }
@@ -316,7 +316,7 @@ public class ToolExportServiceImpl implements ToolExportService {
                 try {
                     FileUtils.copyToFile(fileStore.read(sheetPath), targetSheetFile);
                 } catch (Exception e) {
-                    throw new StatusException("文件拷贝出错", e);
+                    throw new RuntimeException("文件拷贝出错", e);
                 }
                 List<String> slices = pg.getSlicePath();
                 if (CollectionUtils.isNotEmpty(slices)) {
@@ -331,7 +331,7 @@ public class ToolExportServiceImpl implements ToolExportService {
                         try {
                             FileUtils.copyToFile(fileStore.read(slice), targetSliceFile);
                         } catch (Exception e) {
-                            throw new StatusException("文件拷贝出错", e);
+                            throw new RuntimeException("文件拷贝出错", e);
                         }
                     }
                 }