|
|
@@ -443,9 +443,9 @@ public class FileServiceImpl implements FileService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String generateFileName(String userName, String profile, String reportName, String whereCondition,
|
|
|
- String otherParameters, String exportFileType) {
|
|
|
- if (StringUtils.isEmpty(userName) || StringUtils.isEmpty(reportName)) {
|
|
|
+ public String generateFileName(String userName, String profile, String whereCondition, String otherParameters,
|
|
|
+ String exportFileType) {
|
|
|
+ if (StringUtils.isEmpty(userName)) {
|
|
|
return null;
|
|
|
}
|
|
|
StringBuilder stringBuilder = new StringBuilder(userName);
|
|
|
@@ -461,8 +461,8 @@ public class FileServiceImpl implements FileService {
|
|
|
if (!StringUtils.isEmpty(exportFileType)) {
|
|
|
stringBuilder.append(exportFileType);
|
|
|
}
|
|
|
- // 文件名:reportName + hashCode
|
|
|
- return reportName + "_" + stringBuilder.toString().hashCode();
|
|
|
+ // 文件名: hashCode
|
|
|
+ return String.valueOf(stringBuilder.toString().hashCode());
|
|
|
}
|
|
|
|
|
|
@Override
|