fix 优化 windows 数据库备份路径

This commit is contained in:
bwcx_jzy 2022-08-10 22:03:04 +08:00
parent 41bd519913
commit de2f84d9ce

View File

@ -22,6 +22,7 @@
*/
package io.jpom.system.db;
import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateTime;
import cn.hutool.core.io.FileUtil;
import cn.hutool.core.util.CharsetUtil;
@ -215,7 +216,7 @@ public class DbConfig {
if (!FileUtil.exist(dbLocalPathFile)) {
return null;
}
File deleteBackup = FileUtil.file(dbLocalPathFile, "recover_backup", DateTime.now().toString());
File deleteBackup = FileUtil.file(dbLocalPathFile, "recover_backup", DateTime.now().toString(DatePattern.PURE_DATETIME_FORMAT));
//
IPlugin plugin = PluginFactory.getPlugin("db-h2");
Map<String, Object> map = new HashMap<>(10);