| | |
| | | //机房事件统计
|
| | | public List serchByCondition(Object obj) {
|
| | | final BattInf binf=(BattInf) obj;
|
| | | String sql="select station_id,dev_id,station_event_type,record_datetime,station_event_trig ,tb_battinf.StationName,tb_battinf.StationName1,tb_battinf.StationName2,tb_battinf.StationName3,tb_battinf.StationName5 " +
|
| | | //System.out.println(binf);
|
| | | String sql="select distinct station_id,dev_id,station_event_type,record_datetime,station_event_trig ,tb_battinf.StationName,tb_battinf.StationName1,tb_battinf.StationName2,tb_battinf.StationName3,tb_battinf.StationName5 " +
|
| | | " from db_alarm.tb_bts_station_event,db_battinf.tb_battinf " +
|
| | | " where tb_bts_station_event.dev_id=tb_battinf.FBSDeviceId " +
|
| | | " and tb_bts_station_event.station_id in (" +
|
| | |
| | | binf.setStationName1("");
|
| | | binf.setStationName2("");
|
| | | binf.setStationName3("");
|
| | | binf.setStationId("");
|
| | | binf.setStationName5("");
|
| | | binf.setStationId("42000524");
|
| | | binf.setBattGroupNum(1);
|
| | | binf.setBattInUseDate(ActionUtil.getSimpDate(date1));
|
| | | binf.setBattInUseDate1(ActionUtil.getSimpDate(date2));
|
| | |
| | | bmd.setPage(p);
|
| | | bmd.setBinf(binf);
|
| | | bmd.setUinf(uinf);
|
| | | /*List<Bts_station_event> list=bimpl.serchByCondition(binf);
|
| | | List<Bts_station_event> list=bimpl.serchByCondition(binf);
|
| | | System.out.println(list.size());
|
| | | for (Bts_station_event b : list) {
|
| | | System.out.println(b.getNote()+" "+b.getDev_id()+" "+b.getStation_event_type_poff()+" "+b.getStation_event_type_xuhang()+" "+b.getStation_event_type_fadian()+" "+b.getStation_event_type_diaozhan()+" "+b.getStation_event_type_dooropen()+" "+b.getStation_event_type_tempup()+" "+b.getStation_event_type_templow()+" "+b.getStation_event_type_dampup()+" "+b.getStation_event_type_damplow()+" "+b.getStationName());
|
| | | }*/
|
| | | }
|
| | | Bts_station_event b=new Bts_station_event();
|
| | | b.setNum(1002);
|
| | | b.setDev_id(910000001);
|
| | | b.setDev_id(910000534);
|
| | | b.setRecord_datetime(ActionUtil.getSimpDate(date1));
|
| | | b.setRecord_datetime_end(ActionUtil.getSimpDate(date2));
|
| | | b.setStation_event_type(0);
|
| | |
| | | page.setPageCurr(1);
|
| | | page.setPageSize(10);
|
| | | b.setPage(page);
|
| | | List list=bimpl.serchByInfo(b);
|
| | | System.out.println(list.size());
|
| | | //List list=bimpl.serchByInfo(b);
|
| | | //System.out.println(list.size());
|
| | | }
|
| | |
|
| | | }
|