From a76ad0c41b0d8c252f84f91a83bc187d563b21a9 Mon Sep 17 00:00:00 2001 From: chenlw <874313221@qq.com> Date: Thu, 3 Nov 2016 15:27:40 +0800 Subject: [PATCH] =?UTF-8?q?dataBefore=E5=AD=97=E6=AE=B5=E5=86=99=E5=85=A5?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=EF=BC=8C=EF=BC=9A=E5=A4=9A=E5=B0=91=20?= =?UTF-8?q?=E4=B8=AA=E6=9C=88=E5=89=8D=E7=9A=84=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/com/platform/utils/Configs.java | 14 +++++++++++++- src/com/platform/utils/ConfigsLoader.java | 2 ++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/com/platform/utils/Configs.java b/src/com/platform/utils/Configs.java index 259cddcb..3ebc097c 100644 --- a/src/com/platform/utils/Configs.java +++ b/src/com/platform/utils/Configs.java @@ -50,15 +50,27 @@ public class Configs { public static String GATHER_TABLE_PASSWORD="1"; //登入密码 + /** excel上传路径 */ public static String FILE_UPLOAD_PATH=""; + /** excel下载路经 */ public static String FILE_DOWNLOAD_PATH=""; + /** 包下载路径 */ public static String PACKAGE_DOWNLOAD_PATH=""; + /** 下载包名 */ public static String PACKAGE_NAME=""; + /** + * 最新脚本的位置 + */ public static String SQL_SCRIPT_PATH_LAST="D:\\test\\sql_script_last\\"; - + /** 归档脚本的位置 */ public static String SQL_SCRIPT_PATH_STANDARD="D:\\test\\sql_script_standard\\"; + + /** + * 多少 个月前的数据 + */ + public static int dataBefore = 6; } diff --git a/src/com/platform/utils/ConfigsLoader.java b/src/com/platform/utils/ConfigsLoader.java index 5b55f1ba..83072f84 100644 --- a/src/com/platform/utils/ConfigsLoader.java +++ b/src/com/platform/utils/ConfigsLoader.java @@ -75,6 +75,8 @@ public class ConfigsLoader implements ServletContextListener { Configs.SQL_SCRIPT_PATH_STANDARD = properties.getProperty("sql_script_path_standard"); + Configs.dataBefore = Integer.valueOf(properties.getProperty("dataBefore")); + HttpClientConstant.URL_IP_PORT = properties.getProperty("HttpClientConstant_URL_IP_PORT").trim(); Constant.hostIp=properties.getProperty("gfs_control_ip").trim();