| | |
| | | " `JunHeng_Enabled` float NOT NULL DEFAULT '0' COMMENT '均衡功能启用状态(1:启用;0:禁用)'," + |
| | | " `JunHeng_StVol` float NOT NULL DEFAULT '0' COMMENT '均衡停止电压阀值'," + |
| | | " `JunHeng_StCurr` float NOT NULL DEFAULT '0' COMMENT '均衡停止电流阀值'," + |
| | | |
| | | " `auto_captestperiod` int(11) NOT NULL DEFAULT '0' COMMENT '自动核容周期,单位:天(7~999)'," + |
| | | " `loaderpowerdown_peroid` int(11) NOT NULL DEFAULT '1' COMMENT '负载自动断电周期 单位:天(1~999)'," + |
| | | " `loaderpowerdown_time` int(11) NOT NULL DEFAULT '0' COMMENT '负载断电时间 单位:秒(5~30)'," + |
| | | " `boost_dcdc_bakvol` float NOT NULL DEFAULT '0' COMMENT '升压DCDC,后备电压(0.1V 30.0~56.0)'," + |
| | | " `boost_dcdc_bakcurr` float NOT NULL DEFAULT '0' COMMENT '升压DCDC,后备电流'," + |
| | | |
| | | " PRIMARY KEY (num)," + |
| | | " UNIQUE KEY index_dev_id_uniq (dev_id)" + |
| | | ") ENGINE=InnoDB DEFAULT CHARSET=utf8;"; |
| | |
| | | + " ADD COLUMN `km3_switch` tinyint(4) NOT NULL DEFAULT '0' COMMENT '61851_控制KM3开关[1闭合;0:断开]';"); |
| | | } |
| | | |
| | | //添加字段auto_captestperiod '自动核容周期,单位:天(7~999)' |
| | | res = null; |
| | | res = sql.sqlMysqlQuery("SELECT * FROM information_schema.columns" |
| | | + " WHERE table_schema='db_ram_db'" |
| | | + " AND table_name='tb_fbs9100_sysparam'" |
| | | + " AND column_name='auto_captestperiod'"); |
| | | if(false == res.next()) { |
| | | sql.sqlMysqlExecute("ALTER TABLE " + Sql_Mysql.FBS9100SysParam_Table |
| | | + " ADD COLUMN `auto_captestperiod` int(11) NOT NULL DEFAULT '0' COMMENT '自动核容周期,单位:天(7~999)';"); |
| | | } |
| | | //添加字段loaderpowerdown_peroid 负载自动断电周期 单位:天(1~999) |
| | | res = null; |
| | | res = sql.sqlMysqlQuery("SELECT * FROM information_schema.columns" |
| | | + " WHERE table_schema='db_ram_db'" |
| | | + " AND table_name='tb_fbs9100_sysparam'" |
| | | + " AND column_name='loaderpowerdown_peroid'"); |
| | | if(false == res.next()) { |
| | | sql.sqlMysqlExecute("ALTER TABLE " + Sql_Mysql.FBS9100SysParam_Table |
| | | + " ADD COLUMN `loaderpowerdown_peroid` int(11) NOT NULL DEFAULT '1' COMMENT '负载自动断电周期 单位:天(1~999)';"); |
| | | } |
| | | |
| | | //添加字段loaderpowerdown_time 负载断电时间 单位:秒(5~30) |
| | | res = null; |
| | | res = sql.sqlMysqlQuery("SELECT * FROM information_schema.columns" |
| | | + " WHERE table_schema='db_ram_db'" |
| | | + " AND table_name='tb_fbs9100_sysparam'" |
| | | + " AND column_name='loaderpowerdown_time'"); |
| | | if(false == res.next()) { |
| | | sql.sqlMysqlExecute("ALTER TABLE " + Sql_Mysql.FBS9100SysParam_Table |
| | | + " ADD COLUMN `loaderpowerdown_time` int(11) NOT NULL DEFAULT '0' COMMENT '负载断电时间 单位:秒(5~30)';"); |
| | | } |
| | | //添加字段boost_dcdc_bakvol 升压DCDC,后备电压(0.1V 30.0~56.0) |
| | | res = null; |
| | | res = sql.sqlMysqlQuery("SELECT * FROM information_schema.columns" |
| | | + " WHERE table_schema='db_ram_db'" |
| | | + " AND table_name='tb_fbs9100_sysparam'" |
| | | + " AND column_name='boost_dcdc_bakvol'"); |
| | | if(false == res.next()) { |
| | | sql.sqlMysqlExecute("ALTER TABLE " + Sql_Mysql.FBS9100SysParam_Table |
| | | + " ADD COLUMN `boost_dcdc_bakvol` float NOT NULL DEFAULT '0' COMMENT '升压DCDC,后备电压(0.1V 30.0~56.0)';"); |
| | | } |
| | | //添加字段boost_dcdc_bakcurr 升压DCDC,后备电流 |
| | | res = null; |
| | | res = sql.sqlMysqlQuery("SELECT * FROM information_schema.columns" |
| | | + " WHERE table_schema='db_ram_db'" |
| | | + " AND table_name='tb_fbs9100_sysparam'" |
| | | + " AND column_name='boost_dcdc_bakcurr'"); |
| | | if(false == res.next()) { |
| | | sql.sqlMysqlExecute("ALTER TABLE " + Sql_Mysql.FBS9100SysParam_Table |
| | | + " ADD COLUMN `boost_dcdc_bakcurr` float NOT NULL DEFAULT '0' COMMENT '升压DCDC,后备电流';"); |
| | | } |
| | | |
| | | } catch (SQLException e) { |
| | | e.printStackTrace(); |