| | |
| | | } );
|
| | | return list;
|
| | | }
|
| | | //查询管理的市(左侧导航第二层,查所有的市,num中存放uid)
|
| | |
|
| | | //查询管理的市(左侧导航第二层,查所有的市,num中存放uid)
|
| | | public List serchStationName2(Object obj){
|
| | | BattInf binf=(BattInf) obj;
|
| | | String sql="select DISTINCT StationName2 " +
|
| | | String sql="select DISTINCT StationName1,StationName2 " +
|
| | | " 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=?" +
|
| | |
| | | try {
|
| | | while(rs.next()){
|
| | | BattInf batt = new BattInf();
|
| | | batt.setStationName1(rs.getString("stationName1"));
|
| | | batt.setStationName2(rs.getString("stationName2"));
|
| | | list.add(batt);
|
| | | }
|