| | |
| | | }else{
|
| | | baseSql+=stationSqlF;
|
| | | }
|
| | | //用于机房站点
|
| | | String stationSql2T=" and stationname2!=? ";//全部
|
| | | String stationSql2F=" and stationname2=? ";
|
| | | if(ddata.getStationName2().equals("")){
|
| | | baseSql+=stationSql2T;
|
| | | }else{
|
| | | baseSql+=stationSql2F;
|
| | | }
|
| | | //用于故障事件
|
| | | String almTypeT=" and alm_type!=? ";//全部
|
| | | String almTypeF=" and alm_type=? ";
|
| | |
| | | " and db_user.tb_user_inf.uid=?) ";
|
| | | baseSql+=stationSql;
|
| | | //排序
|
| | | String endSql=" ORDER BY alm_start_time DESC ";
|
| | | String endSql=" ORDER BY alm_start_time DESC,db_alarm.tb_devalarm_data.dev_id asc ";
|
| | | //分页
|
| | | String limitSql=" LIMIT ?,? ";
|
| | | sql=baseSql+endSql+limitSql;
|
| | | List<Batt_devalarm_data> list=DAOHelper.executeQueryLimit(sql, conn, new Object[]{ddata.getStationName1(),ddata.getStationName(),ddata.getAlm_type(),uinf.getUId(),(page.getPageCurr()-1)*page.getPageSize(),page.getPageSize()}, new CallBack() {
|
| | | List<Batt_devalarm_data> list=DAOHelper.executeQueryLimit(sql, conn, new Object[]{ddata.getStationName1(),ddata.getStationName(),ddata.getStationName2(),ddata.getAlm_type(),uinf.getUId(),(page.getPageCurr()-1)*page.getPageSize(),page.getPageSize()}, new CallBack() {
|
| | |
|
| | | public List getResults(ResultSet rs) {
|
| | | List list=new ArrayList();
|