| | |
| | | //查询管理的机房(左侧导航第四层,查所有的机房,num中存放uid)
|
| | | public List serchStationName3(Object obj){
|
| | | BattInf binf=(BattInf) obj;
|
| | | String sql="select DISTINCT StationName,StationName1,StationName2,StationName3,StationName5,stationid,fbsdeviceid,FBSDeviceName " +
|
| | | String sql="select DISTINCT StationName,StationName1,StationName2,StationName3,StationName5,stationid,fbsdeviceid,FBSDeviceName,Station_install " +
|
| | | " FROM db_battinf.tb_battinf " +
|
| | | " where StationId in(" +
|
| | | " select distinct db_user.tb_user_battgroup_baojigroup_battgroup.StationId from db_user.tb_user_battgroup_baojigroup_battgroup,db_user.tb_user_battgroup_baojigroup_usr where db_user.tb_user_battgroup_baojigroup_battgroup.baoji_group_id=db_user.tb_user_battgroup_baojigroup_usr.baoji_group_id and db_user.tb_user_battgroup_baojigroup_usr.uId=?" +
|
| | |
| | | batt.setStationId(rs.getString("stationId"));
|
| | | batt.setFBSDeviceName(rs.getString("fBSDeviceName"));
|
| | | batt.setFBSDeviceId(rs.getInt("fBSDeviceId"));
|
| | | batt.setStation_install(rs.getInt("station_install"));
|
| | | list.add(batt);
|
| | | }
|
| | | } catch (SQLException e) {
|
| | |
| | | //查询管理的机房(左侧导航第四层,查所有的机房)
|
| | | public List serchStationName3_all(Object obj){
|
| | | BattInf binf=(BattInf) obj;
|
| | | String sql="select DISTINCT StationName,StationName1,StationName2,StationName3,StationName5,stationid,fbsdeviceid,FBSDeviceName " +
|
| | | String sql="select DISTINCT StationName,StationName1,StationName2,StationName3,StationName5,stationid,fbsdeviceid,FBSDeviceName,station_install " +
|
| | | " FROM db_battinf.tb_battinf " +
|
| | | " where StationName1 like ? and StationName2 like ? and StationName5 like ? " +
|
| | | " ORDER BY CONVERT( StationName USING gbk ) COLLATE gbk_chinese_ci ASC ";
|
| | |
| | | batt.setStationId(rs.getString("stationId"));
|
| | | batt.setFBSDeviceName(rs.getString("fBSDeviceName"));
|
| | | batt.setFBSDeviceId(rs.getInt("fBSDeviceId"));
|
| | | batt.setStation_install(rs.getInt("station_install"));
|
| | | list.add(batt);
|
| | | }
|
| | | } catch (SQLException e) {
|