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();