81041
2018-10-29 14d81fd06f5f27ce0ae4645bbb1f4b2daa396f23
基站实时状态修改
1个文件已修改
13 ■■■■ 已修改文件
gx_tieta/src/com/fgkj/dao/impl/ram/Bts_station_stateImpl.java 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
gx_tieta/src/com/fgkj/dao/impl/ram/Bts_station_stateImpl.java
@@ -54,14 +54,21 @@
                   " ,tb_battinf.stationname,tb_battinf.stationname1,tb_battinf.stationname2,tb_battinf.stationname3 " +
                   " from db_ram_db.tb_bts_station_state,db_battinf.tb_battinf  " +
                   " where  tb_bts_station_state.dev_id=db_battinf.tb_battinf.FBSDeviceId  " +
                   "  and tb_bts_station_state.station_id in (" +
                   " and tb_battinf.stationname1 like ? and tb_battinf.stationname2 like ? and tb_battinf.stationname3 like ?  " +
                   " and stationid like ? " ;
                   /*"  and tb_bts_station_state.station_id in (" +
                   "  select distinct db_battinf.tb_battinf.stationid  " +
                   "  from db_battinf.tb_battinf " +
                   "  left outer join db_user.tb_user_battgroup_baojigroup_battgroup on db_user.tb_user_battgroup_baojigroup_battgroup.stationid=db_battinf.tb_battinf.stationid " +
                   "  left outer join db_user.tb_user_battgroup_baojigroup_usr on db_user.tb_user_battgroup_baojigroup_usr.baoji_group_id=db_user.tb_user_battgroup_baojigroup_battgroup.baoji_group_id " +
                   "  left outer join db_user.tb_user_inf on tb_user_inf.uid=db_user.tb_user_battgroup_baojigroup_usr.uid " +
                   "  where db_user.tb_user_inf.uid=?  and tb_battinf.stationname1 like ? and tb_battinf.stationname2 like ? and tb_battinf.stationname3 like ? ) " +
                   " and stationid like ?  " ;
                   " and stationid like ?  " ;*/
        //用户管理
        String userSql=" and 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=?" +
                " ) ";
        sql+=userSql;
        if(binf.getBattGroupNum()>1){
            sql+=" and ( ";
        }  
@@ -113,7 +120,7 @@
        String orderSql=" limit ? ,? ";
        sql+=orderSql;
        //System.out.println(sql);
        List<Bts_station_state> list=DAOHelper.executeQueryLimit(sql, conn, new Object[]{binf.getNum(),"%"+binf.getStationName1()+"%","%"+binf.getStationName2()+"%","%"+binf.getStationName3()+"%","%"+binf.getStationId()+"%",(p.getPageCurr()-1)*p.getPageSize(),p.getPageSize()},new CallBack() {
        List<Bts_station_state> list=DAOHelper.executeQueryLimit(sql, conn, new Object[]{"%"+binf.getStationName1()+"%","%"+binf.getStationName2()+"%","%"+binf.getStationName3()+"%","%"+binf.getStationId()+"%",binf.getNum(),(p.getPageCurr()-1)*p.getPageSize(),p.getPageSize()},new CallBack() {
            
            public List getResults(ResultSet rs) {
                List list=new ArrayList();