| | |
| | | {
|
| | | String sql_str = "SELECT * FROM " + Sql_Mysql.FBS9100SetParam_Table;
|
| | | Sql_Mysql sql = new Sql_Mysql(con_pool);
|
| | | ResultSet res = sql.sqlMysqlQuery(sql_str);
|
| | | ResultSet res = null;
|
| | | try {
|
| | | res = sql.sqlMysqlQuery(sql_str);
|
| | | while(res.next())
|
| | | {
|
| | | FBS9100_StatAndParam param = null;
|
| | |
| | | {
|
| | | String sql_str = "SELECT * FROM " + Sql_Mysql.FBS9100SetParam_Table + " where dev_id = " + param.dev_id;
|
| | | Sql_Mysql sql = new Sql_Mysql(con_pool);
|
| | | ResultSet res = sql.sqlMysqlQuery(sql_str);
|
| | | ResultSet res = null;
|
| | | try {
|
| | | res = sql.sqlMysqlQuery(sql_str);
|
| | | if(res.next())
|
| | | {
|
| | | if(null != param) {
|
| | |
| | | //System.out.println(param.dev_id);
|
| | | String sql_str = "SELECT * FROM " + Sql_Mysql.FBS9100SetDLParam_Table + " where dev_id = " + param.dev_id;
|
| | | Sql_Mysql sql = new Sql_Mysql(con_pool);
|
| | | ResultSet res = sql.sqlMysqlQuery(sql_str);
|
| | | ResultSet res = null;
|
| | | try {
|
| | | res = sql.sqlMysqlQuery(sql_str);
|
| | | if(res.next())
|
| | | {
|
| | | if(null != param) {
|
| | |
| | | public static void queryFBS9100SysParamBydev_id(MysqlConnPool con_pool, FBS9100_StatAndParam param) {
|
| | | String sql_str = "SELECT * FROM " + Sql_Mysql.FBS9100SysParam_Table + " where dev_id = " + param.dev_id;
|
| | | Sql_Mysql sql = new Sql_Mysql(con_pool);
|
| | | ResultSet res = sql.sqlMysqlQuery(sql_str);
|
| | | ResultSet res = null;
|
| | | try {
|
| | | res = sql.sqlMysqlQuery(sql_str);
|
| | | if(res.next())
|
| | | {
|
| | | if(null != param) {
|
| | |
| | | } catch (SQLException e) {
|
| | | sql.logger.error("FBS9100_Task_Thread_SQL.queryFBS9100SysParamBydev_id():" + e.toString(), e);
|
| | | } finally {
|
| | | if(null != res) {
|
| | | try {
|
| | | res.close();
|
| | | } catch (SQLException e) {
|
| | | sql.logger.error("FBS9100_Task_Thread_SQL.queryFBS9100SysParamBydev_id():" + e.toString(), e);
|
| | | }
|
| | | }
|
| | | sql.close_con();
|
| | | }
|
| | | }
|
| | |
| | | public static void queryBTS61850OffLineyhPlanOnRam(MysqlConnPool m_ConnPool, FBS9100_StatAndParam param) {
|
| | | String sql_str = " SELECT * FROM " + Sql_Mysql.FBS9100_offlineyhplan + " WHERE dev_id = " + param.dev_id ;
|
| | | Sql_Mysql sql = new Sql_Mysql(m_ConnPool);
|
| | | ResultSet res = sql.sqlMysqlQuery(sql_str);
|
| | | BTS61850_OffLineYHPlan plan = param.bts61850_OffLineYHPlan;
|
| | | ResultSet res = null;
|
| | | try {
|
| | | res = sql.sqlMysqlQuery(sql_str);
|
| | | if(res.next()) {
|
| | | plan.OffLineYH_Cycle = res.getInt("OffLineYH_Cycle");
|
| | | plan.OffLineYHOnceCycle = res.getInt("OffLineYHOnceCycle");
|
| | |
| | | } catch (SQLException e) {
|
| | | sql.logger.error("FBS9100_Task_Thread_SQL.queryBTS61850OffLineyhPlanOnRam():" + e.toString(), e);
|
| | | } finally {
|
| | | if(null != res) {
|
| | | try {
|
| | | res.close();
|
| | | } catch (SQLException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | | }
|
| | | sql.close_con();
|
| | | }
|
| | | }
|