From f58c03f4c98b3664f22a3ec4e920fb2a42473ab9 Mon Sep 17 00:00:00 2001 From: CZT <czt18638530771@163.com> Date: 星期二, 30 一月 2024 18:08:02 +0800 Subject: [PATCH] 增加合同、计划数据同步时的附件信息同步 --- src/main/java/com/fzzy/api/utils/FileUtils.java | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/fzzy/api/utils/FileUtils.java b/src/main/java/com/fzzy/api/utils/FileUtils.java index 16e4605..b3b8ac2 100644 --- a/src/main/java/com/fzzy/api/utils/FileUtils.java +++ b/src/main/java/com/fzzy/api/utils/FileUtils.java @@ -110,4 +110,18 @@ } return basePath; } + + public String getCommonFilePath(Date date) { + if (null == date) + date = new Date(); + + String basePath = configData.getImgPath() + "COMMON/" + + DateFormatUtils.format(date, "yyyyMM") + "/"; + + File file = new File(basePath); + if (!file.exists()) { + file.mkdirs(); + } + return basePath; + } } -- Gitblit v1.9.3