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