| | |
| | | }
|
| | | return dev_id;
|
| | | }
|
| | | //判断新增的电池组是否存在
|
| | | //判断新增的机房是否存在
|
| | | public List judgeBatt(Object obj){
|
| | | BattInf binf=(BattInf) obj;
|
| | | String sql="select distinct stationid from db_battinf.tb_battinf where stationname=? limit 1";
|
| | | String sql="select distinct(StationId) "
|
| | | + "from db_battinf.tb_battinf where stationname=? limit 1";
|
| | | List list=DAOHelper.executeQuery(sql, DBUtil.getConn(), new Object[]{binf.getStationName()}, new CallBack() {
|
| | |
|
| | | public List getResults(ResultSet rs) {
|
| | |
| | | });
|
| | | return list;
|
| | | }
|
| | | //判断新增的电池组是否存在
|
| | | |
| | | //判断新增的机房是否存在
|
| | | public boolean judgeBattInOrNot(Object obj){
|
| | | BattInf binf=(BattInf) obj;
|
| | | String sql="select distinct stationid from db_battinf.tb_battinf where stationname=? limit 1";
|
| | |
| | | BattInf binf = new BattInf();
|
| | | binf.setNum(2);
|
| | | binf.setBattGroupId(1000001);
|
| | | binf.setStationName("百色");
|
| | | binf.setStationName("广西省-玉林-玉林玉州区西城里-BTS设备");
|
| | | binf.setStationName1("");
|
| | | binf.setStationName2("");
|
| | | binf.setStationName3("");
|
| | |
| | | System.out.println(nums);*/
|
| | | /*boolean bl=biml.judgeBattInOrNot(binf);
|
| | | System.out.println(bl);*/
|
| | | List<BattInf> list=biml.serchByBatt_param(binf);
|
| | | /*List<BattInf> list=biml.serchByBatt_param(binf);
|
| | | for (BattInf b : list) {
|
| | | System.out.println(b);
|
| | | }
|
| | | }*/
|
| | | /*List<BattInf> list=biml.serchByDischarge(binf);
|
| | | for (BattInf b : list) {
|
| | | System.out.println(b);
|
| | | }*/
|
| | | System.out.println(list.size());
|
| | | boolean bl=biml.judgeBattInOrNot(binf);
|
| | | System.out.println(bl);
|
| | | //System.out.println(list.size());
|
| | | }
|
| | |
|
| | | public List getResults(ResultSet rs) {
|