| | |
| | | sql.sqlMysqlUseDB(Sql_Mysql.DB_BATT_INF);
|
| | |
|
| | | String sql_str = "SELECT DISTINCT "
|
| | | + " FBSDeviceId,FBSDeviceIp,BattGroupName6,GroupIndexInFBSDevice,FBSDeviceName,"
|
| | | + " FBSDeviceId,FBSDeviceIp,BattGroupName6,GroupIndexInFBSDevice,FBSDeviceName,sign_type,"
|
| | | + " BattGroupId,BattGroupNum,MonCount,BattFloatCurrent,FloatVolLevel,MonCapStd,MonVolStd"
|
| | | + " FROM " + Sql_Mysql.BattInf_Table
|
| | | + " WHERE FLOOR(FBSDeviceId/10000)=61850"
|
| | |
| | | float float_vol_lev = res.getFloat("FloatVolLevel");
|
| | | float float_curr_lev = res.getFloat("BattFloatCurrent");
|
| | | int GroupIndexInFBSDevice = res.getInt("GroupIndexInFBSDevice");
|
| | | |
| | | int sign_type = res.getInt("sign_type"); //计算验签的方式
|
| | | |
| | | if(GroupIndexInFBSDevice > 3) {
|
| | | GroupIndexInFBSDevice = 3;
|
| | | }
|
| | |
| | | brt.GroupIndexInFBSDevice = GroupIndexInFBSDevice;
|
| | | param_changed = true;
|
| | | }
|
| | | if(sign_type != brt.sign_type) {
|
| | | brt.sign_type = sign_type;
|
| | | param_changed = true;
|
| | | }
|
| | | |
| | | |
| | |
|
| | | if(true == param_changed) {
|
| | | FBS9100_Task_Thread_SQL.update_BTS_BattGroupState_Table(m_Conn_Pool, brt.FBSDeviceId, brt.BattGroupId,
|
| | |
| | | rtdata.FBSDeviceName = res.getString("FBSDeviceName").trim();
|
| | | //rtdata.setDevRegCode(res.getString("BattGroupName6").trim());
|
| | | rtdata.GroupIndexInFBSDevice = res.getInt("GroupIndexInFBSDevice");
|
| | | rtdata.sign_type = res.getInt("sign_type");
|
| | | |
| | | |
| | | if(rtdata.GroupIndexInFBSDevice > 3) {
|
| | | rtdata.GroupIndexInFBSDevice = 3;
|
| | | }
|