| | |
| | | sql.sqlMysqlUseDB(Sql_Mysql.DB_BATT_INF);
|
| | |
|
| | | String sql_str = "SELECT DISTINCT "
|
| | | + " FBSDeviceId,FBSDeviceIp,BattGroupName6,GroupIndexInFBSDevice,FBSDeviceName,sign_type,"
|
| | | + " FBSDeviceId,FBSDeviceIp,BattGroupName6,GroupIndexInFBSDevice,FBSDeviceName,sign_type,KeyID,"
|
| | | + " BattGroupId,BattGroupNum,MonCount,BattFloatCurrent,FloatVolLevel,MonCapStd,MonVolStd"
|
| | | + " FROM " + Sql_Mysql.BattInf_Table
|
| | | + " WHERE FLOOR(FBSDeviceId/10000)=61850"
|
| | |
| | | }
|
| | | boolean batt_group_exist = false;
|
| | | //String reg_code = res.getString("BattGroupName6").trim();
|
| | | String ukeyID = res.getString("KeyID").trim();
|
| | | float float_vol_lev = res.getFloat("FloatVolLevel");
|
| | | float float_curr_lev = res.getFloat("BattFloatCurrent");
|
| | | int GroupIndexInFBSDevice = res.getInt("GroupIndexInFBSDevice");
|
| | |
| | | brt.sign_type = sign_type;
|
| | | param_changed = true;
|
| | | }
|
| | | if(ukeyID.equals(brt.getUkeyID())) {
|
| | | brt.ukeyID = ukeyID;
|
| | | param_changed = true;
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | |
| | | //rtdata.setDevRegCode(res.getString("BattGroupName6").trim());
|
| | | rtdata.GroupIndexInFBSDevice = res.getInt("GroupIndexInFBSDevice");
|
| | | rtdata.sign_type = res.getInt("sign_type");
|
| | | |
| | | rtdata.ukeyID = res.getString("KeyID").trim();
|
| | |
|
| | | if(rtdata.GroupIndexInFBSDevice > 3) {
|
| | | rtdata.GroupIndexInFBSDevice = 3;
|