Bladeren bron

fix 修改批量下载接口

DYH2020 2 jaren geleden
bovenliggende
commit
269ffe9489
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 2 1
      src/main/java/com/ywt/mg/services/enterprise/ApplyProjectService.java

+ 2 - 1
src/main/java/com/ywt/mg/services/enterprise/ApplyProjectService.java

@@ -101,7 +101,8 @@ public class ApplyProjectService {
             // 3、将下载的文件打包
             String zipFileName = "资料";
             if (!Checker.isNone(request.getCreateTimeStart()) && !Checker.isNone(request.getCreateTimeEnd())) {
-                zipFileName += request.getCreateTimeStart().replace("-", "") + "~" + request.getCreateTimeEnd().replace("-", "");
+                String fileNameDate = request.getCreateTimeStart().replace("-", "") + "~" + request.getCreateTimeEnd().replace("-", "");
+                zipFileName += fileNameDate;
             }
             zipFileName += ".zip";
             FileUtil.createFoldersIfNotExit(rootPrefix + zipFileName);