| | |
| | | sql.sqlMysqlUseDB(Sql_Mysql.DB_BATT_INF);
|
| | |
|
| | | String sql_str = "SELECT DISTINCT "
|
| | | + " FBSDeviceId,FBSDeviceIp,BattGroupName6,GroupIndexInFBSDevice,FBSDeviceName,sign_type,KeyID,"
|
| | | + " StationId,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();
|
| | | String station_id = res.getString("StationId").trim();
|
| | | |
| | | float float_vol_lev = res.getFloat("FloatVolLevel");
|
| | | float float_curr_lev = res.getFloat("BattFloatCurrent");
|
| | | int GroupIndexInFBSDevice = res.getInt("GroupIndexInFBSDevice");
|
| | |
| | | if(rtdata.GroupIndexInFBSDevice < 0) {
|
| | | rtdata.GroupIndexInFBSDevice = 0;
|
| | | }
|
| | | |
| | | rtdata.StationId = station_id;
|
| | | rtdata.BattGroupId = res.getInt("BattGroupId");
|
| | | rtdata.BattGroupNum = res.getInt("BattGroupNum");
|
| | |
|