| | |
| | | } |
| | | sql.sqlMysqlExecute(sql_str02); |
| | | |
| | | ResultSet res_t = sql.sqlMysqlQuery("SELECT BattGroupId,MonCount FROM " + Sql_Mysql.BattInf_Table); |
| | | ResultSet res_t = sql.sqlMysqlQuery("SELECT BattGroupId,MonCount,FBSDeviceId,PackCount FROM " + Sql_Mysql.BattInf_Table); |
| | | while(res_t.next()) { |
| | | int bg_id = res_t.getInt("BattGroupId"); |
| | | int mon_cnt = res_t.getInt("MonCount"); |
| | | |
| | | int packCount = res_t.getInt("PackCount"); |
| | | int dev_id = res_t.getInt("FBSDeviceId"); |
| | | if(checkLiBTSDevType(dev_id) && packCount > 0) { |
| | | mon_cnt = mon_cnt * packCount; |
| | | } |
| | | if(mon_cnt > 0){ |
| | | |
| | | int max_monnum = BattData_RT_RamDB_Thread_SQL.seachBattRTAlarmMaxMonNum(pool,bg_id); //当前电池组在 tb_batt_rtdata 表中的最大单体个数 |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 校验当前设备是否是锂电BTS |
| | | * @param dev_id |
| | | * @return |
| | | */ |
| | | public static boolean checkLiBTSDevType(int dev_id) { |
| | | if(dev_id/100000 == 9131) { |
| | | return true; |
| | | } |
| | | return false; |
| | | } |
| | | } |