| | |
| | | }
|
| | | //根据省市区机房名称查询(uid放在num中)
|
| | | public List serchByCondition(Object obj) {
|
| | | //BattInf binf=(BattInf) obj;
|
| | | Page page=(Page) obj;
|
| | | BattInf binf=(BattInf) obj;
|
| | | Page page=binf.getPage();
|
| | | Connection conn=DBUtil.getConn();
|
| | | String numberSql=" SELECT FOUND_ROWS() number";
|
| | | String sql=" select SQL_CALC_FOUND_ROWS distinct dev_id,thread_id,battgroup_cnt,battgroup_id1,battgroup_index1,battgroup_id2,battgroup_index2,battgroup_id3,battgroup_index3,battgroup_id4,battgroup_index4,connet_time,dev_comm_runtime,break_type " +
|
| | | " ,stationName,stationName1,stationName2,stationName3,stationName5,StationId " +
|
| | | " from db_app_sys.tb_app_bts_comm_task " +
|
| | | " left outer join db_battinf.tb_battinf on db_app_sys.tb_app_bts_comm_task.dev_id=db_battinf.tb_battinf.fBSDeviceId " +
|
| | | //" where stationName1 like ? and stationName2 like ? and stationId like ? and stationName5 like ? " +
|
| | | " where ";
|
| | | //stationName1 like ? and stationName2 like ? and stationId like ? and stationName5 like ? " +
|
| | | /*" and db_app_sys.tb_app_bts_comm_task.dev_id in (" +
|
| | | " select distinct db_battinf.tb_battinf.fBSDeviceId " +
|
| | | " from db_battinf.tb_battinf " +
|
| | |
| | | " 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 db_battinf.tb_battinf.station_install=1 ) "+*/
|
| | | " order by dev_id limit ?,? ";
|
| | | //FBSDeviceId筛选
|
| | | String dev_idT=" db_app_sys.tb_app_bts_comm_task.dev_id=? ";
|
| | | String dev_idF=" db_app_sys.tb_app_bts_comm_task.dev_id!=? ";
|
| | | if(binf.getFBSDeviceId()==0){
|
| | | sql+=dev_idF;
|
| | | }else{
|
| | | sql+=dev_idT;
|
| | | }
|
| | | String orderSql=" order by dev_id limit ?,? ";
|
| | | sql+=orderSql;
|
| | | //System.out.println(sql); //"%"+binf.getStationName1()+"%","%"+binf.getStationName2()+"%","%"+binf.getStationId()+"%","%"+binf.getStationName5()+"%",binf.getNum()
|
| | | List<App_bts_comm_task> list=DAOHelper.executeQueryLimit(sql, conn,new Object[]{(page.getPageCurr()-1)*page.getPageSize(),page.getPageSize()}, new CallBack() {
|
| | | List<App_bts_comm_task> list=DAOHelper.executeQueryLimit(sql, conn,new Object[]{binf.getFBSDeviceId(),(page.getPageCurr()-1)*page.getPageSize(),page.getPageSize()}, new CallBack() {
|
| | |
|
| | | public List getResults(ResultSet rs) {
|
| | | List list=new ArrayList();
|
| | |
| | | binf.setStationName5("");
|
| | | binf.setStationId("");
|
| | | binf.setBattGroupNum(62);
|
| | | binf.setFBSDeviceId(0);
|
| | | Page p=new Page();
|
| | | p.setPageCurr(1);
|
| | | p.setPageSize(100);
|