瀏覽代碼

fix 修改批量下载接口

DYH2020 2 年之前
父節點
當前提交
269ffe9489
共有 1 個文件被更改,包括 2 次插入1 次删除
  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);