| | |
| | | public List serchAllStationName5(Object obj){ |
| | | BattInf binf=(BattInf) obj; |
| | | String sql=" select DISTINCT(StationName5) from db_battinf.tb_battinf " |
| | | + " where StationName1 like ? and StationName2 like ? " |
| | | + " where StationName1 like ? and StationName2 like ? 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=?" + |
| | | ") " |
| | | + " ORDER BY CONVERT( StationName5 USING gbk ) COLLATE gbk_chinese_ci ASC "; |
| | | List list=DAOHelper.executeQuery(sql, DBUtil.getConn(), new Object[]{"%"+binf.getStationName1()+"%","%"+binf.getStationName2()+"%"}, new CallBack() { |
| | | List list=DAOHelper.executeQuery(sql, DBUtil.getConn(), new Object[]{"%"+binf.getStationName1()+"%","%"+binf.getStationName2()+"%",binf.getNum()}, new CallBack() { |
| | | |
| | | public List getResults(ResultSet rs) { |
| | | List list=new ArrayList(); |
| | |
| | | BattInf binf=(BattInf) obj; |
| | | String sql="select DISTINCT StationName1,StationName2,StationName3,StationName5 " + |
| | | " FROM db_battinf.tb_battinf " + |
| | | " where StationName1 like ? and StationName2 like ? and StationName5 like ? " + |
| | | " where StationName1 like ? and StationName2 like ? and StationName5 like ? 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=?" + |
| | | ")" + |
| | | " ORDER BY CONVERT( StationName USING gbk ) COLLATE gbk_chinese_ci ASC "; |
| | | List list=DAOHelper.executeQuery(sql, DBUtil.getConn(), new Object[]{"%"+binf.getStationName1()+"%","%"+binf.getStationName2()+"%","%"+binf.getStationName5()+"%"},new CallBack() { |
| | | List list=DAOHelper.executeQuery(sql, DBUtil.getConn(), new Object[]{"%"+binf.getStationName1()+"%","%"+binf.getStationName2()+"%","%"+binf.getStationName5()+"%",binf.getNum()},new CallBack() { |
| | | |
| | | public List getResults(ResultSet rs) { |
| | | List list=new ArrayList(); |