fix: 88401 法规符合性排查流程(主排查人分发) --不分发导出文件打不开
This commit is contained in:
+12
@@ -482,6 +482,12 @@ public class ProcessStandardComplianceCheckServiceImpl extends ServiceImpl<Proce
|
|||||||
ProcessStandardComplianceCheck standardInfo = businessInfoDTO.getStandardInfo();
|
ProcessStandardComplianceCheck standardInfo = businessInfoDTO.getStandardInfo();
|
||||||
List<ProcessStandardComplianceCheckDetail> detailInfoList = businessInfoDTO.getDetailInfoList();
|
List<ProcessStandardComplianceCheckDetail> detailInfoList = businessInfoDTO.getDetailInfoList();
|
||||||
String fileName = standardInfo.getStandardNumber() + "-" + standardInfo.getStandardName() + "-符合性排查";
|
String fileName = standardInfo.getStandardNumber() + "-" + standardInfo.getStandardName() + "-符合性排查";
|
||||||
|
int maxFileNameLength = 255;
|
||||||
|
String fileExtension = ".xls";
|
||||||
|
// 检查文件名长度并截取(如果需要)
|
||||||
|
if (fileName.length() + fileExtension.length() > maxFileNameLength) {
|
||||||
|
fileName = fileName.substring(0, maxFileNameLength - fileExtension.length());
|
||||||
|
}
|
||||||
String url = exportExcelTempPath.replace(EXPORT_EXCEL_TEMP, fileName);
|
String url = exportExcelTempPath.replace(EXPORT_EXCEL_TEMP, fileName);
|
||||||
File file = new File(url);
|
File file = new File(url);
|
||||||
if (!file.exists()) {
|
if (!file.exists()) {
|
||||||
@@ -533,6 +539,12 @@ public class ProcessStandardComplianceCheckServiceImpl extends ServiceImpl<Proce
|
|||||||
ProcessStandardComplianceCheck standardInfo = businessInfoDTO.getStandardInfo();
|
ProcessStandardComplianceCheck standardInfo = businessInfoDTO.getStandardInfo();
|
||||||
List<ProcessStandardComplianceCheckDetail> detailInfoList = businessInfoDTO.getDetailInfoList();
|
List<ProcessStandardComplianceCheckDetail> detailInfoList = businessInfoDTO.getDetailInfoList();
|
||||||
String fileName = standardInfo.getStandardNumber() + "-" + standardInfo.getStandardName() + "-符合性排查";
|
String fileName = standardInfo.getStandardNumber() + "-" + standardInfo.getStandardName() + "-符合性排查";
|
||||||
|
int maxFileNameLength = 255;
|
||||||
|
String fileExtension = ".xls";
|
||||||
|
// 检查文件名长度并截取(如果需要)
|
||||||
|
if (fileName.length() + fileExtension.length() > maxFileNameLength) {
|
||||||
|
fileName = fileName.substring(0, maxFileNameLength - fileExtension.length());
|
||||||
|
}
|
||||||
String url = exportExcelTempPath.replace(EXPORT_EXCEL_TEMP, fileName);
|
String url = exportExcelTempPath.replace(EXPORT_EXCEL_TEMP, fileName);
|
||||||
File file = new File(url);
|
File file = new File(url);
|
||||||
if (!file.exists()) {
|
if (!file.exists()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user