| | |
| | | }else{
|
| | | baseSql+=station1SqlF;
|
| | | }
|
| | | //用于维护区
|
| | | String station2SqlT=" stationname2!=? ";//全部
|
| | | String station2SqlF=" stationname2=? ";
|
| | | if(binf.getStationName2().equals("")){
|
| | | baseSql+=station2SqlT;
|
| | | }else{
|
| | | baseSql+=station2SqlF;
|
| | | }
|
| | | //用于机房站点
|
| | | String stationSqlT=" and stationname!=? ";//全部
|
| | | String stationSqlF=" and stationname=? ";
|
| | |
| | | String endSql=" order by stationid ";
|
| | | sql=baseSql+endSql;
|
| | | //System.out.println(sql);
|
| | | List list=DAOHelper.executeQuery(sql, DBUtil.getConn(), new Object[]{binf.getStationName1(),binf.getStationName(),binf.getBattGroupId()}, new CallBack() {
|
| | | List list=DAOHelper.executeQuery(sql, DBUtil.getConn(), new Object[]{binf.getStationName1(),binf.getStationName2(),binf.getStationName(),binf.getBattGroupId()}, new CallBack() {
|
| | |
|
| | | public List getResults(ResultSet rs) {
|
| | | List list=new ArrayList();
|