fix(file/excel): 修复导出时无法正确捕捉异常的问题

This commit is contained in:
danaodai
2025-05-12 06:35:59 +00:00
committed by Charles7c
parent 62334d882c
commit d99a6a2c2d

View File

@@ -89,6 +89,7 @@ public class ExcelUtils {
.doWrite(list);
} catch (Exception e) {
log.error("Export excel occurred an error: {}. fileName: {}.", e.getMessage(), fileName, e);
response.reset();
throw new BaseException("导出 Excel 出现错误");
}
}