static GlobalDefine()
        {
            TagService     tagService     = new TagService();
            TagTypeManager tagTypeManager = new TagTypeManager();

            SysTagType = tagTypeManager.GetALL();       //获取所有标签系统类别

            SysTagCode = tagService.GetAllSysTagCode(); //获取所有系统标签

            SystemConfigsManager sysConfigsManager = new SystemConfigsManager();
            SystemConfigs        cfg = sysConfigsManager.Get("log_table_keep_days");

            if (cfg != null)
            {
                LogTableKeepDays = cfg.GetIntValue();
            }
            cfg = sysConfigsManager.Get("middle_table_keep_days");
            if (cfg != null)
            {
                MiddleTableKeepDays = cfg.GetIntValue();
            }
            cfg = sysConfigsManager.Get("mongo_table_keep_days");
            if (cfg != null)
            {
                MongoDBLogKeepDays = cfg.GetIntValue();
            }
        }
        public SystemConfigs Get(string config_code)
        {
            SystemConfigs obj = new SystemConfigs();
            string        sql = " select * from {0} where config_code='{1}' ";

            sql = string.Format(sql, SystemConfigs.TableName, config_code);
            obj = PostgreHelper.GetSingleEntity <SystemConfigs>(sql);
            return(obj);
        }