Batt_enduranceAction!serchByCondition
修改
| | |
| | | " left outer join db_user.tb_user_inf on tb_user_inf.uid=db_user.tb_user_battgroup_baojigroup_usr.uid " +
|
| | | " where db_user.tb_user_inf.uid=? and db_battinf.tb_battinf.station_install=1 ) " ;
|
| | | //机房筛选
|
| | | String stationSql=" and db_battinf.tb_battinf.StationName like ? and db_battinf.tb_battinf.StationName1 like ? and db_battinf.tb_battinf.StationName2 like ? and db_battinf.tb_battinf.StationName5 like ?";
|
| | | String stationSql=" and db_battinf.tb_battinf.StationName like ? and db_battinf.tb_battinf.StationName1 like ? and db_battinf.tb_battinf.StationName2 like ? and db_battinf.tb_battinf.StationName5 like ? ";
|
| | | sql+=stationSql;
|
| | | //1U/2U设备筛选
|
| | | String monvolSqlT=" and db_battinf.tb_battinf.monvolstd!=? ";//全部
|
| | | String monvolSqlF=" and db_battinf.tb_battinf.monvolstd=? ";
|
| | | if(bendurance.getMonvolstd()==0) {
|
| | | sql+=monvolSqlT;
|
| | | }else {
|
| | | sql+=monvolSqlF;
|
| | | }
|
| | | //实际续航时间
|
| | | String timelongSqlT=" and endurance_actual_timelong<=? ";//小于某一时间
|
| | | String timelongSqlF=" and endurance_actual_timelong>-1? ";//全部
|
| | |
| | |
|
| | |
|
| | | //System.out.println(sql);
|
| | | List<Batt_endurance> list=DAOHelper.executeQueryLimit(sql, conn, new Object[]{bendurance.getNum(),"%"+bendurance.getStationName()+"%","%"+bendurance.getStationName1()+"%","%"+bendurance.getStationName2()+"%","%"+bendurance.getStationName5()+"%",bendurance.getEndurance_actual_timelong(),bendurance.getIs_out_stand()
|
| | | List<Batt_endurance> list=DAOHelper.executeQueryLimit(sql, conn, new Object[]{bendurance.getNum(),"%"+bendurance.getStationName()+"%","%"+bendurance.getStationName1()+"%","%"+bendurance.getStationName2()+"%","%"+bendurance.getStationName5()+"%",bendurance.getMonvolstd(),bendurance.getEndurance_actual_timelong(),bendurance.getIs_out_stand()
|
| | | ,(page.getPageCurr()-1)*page.getPageSize(),page.getPageSize()}, new CallBack() {
|
| | |
|
| | | public List getResults(ResultSet rs) {
|
| | |
| | | ben.setStationName("");
|
| | | ben.setStationName1("");
|
| | | ben.setStationName2("");
|
| | | ben.setEndurance_actual_timelong(120);
|
| | | ben.setStationName5("");
|
| | | ben.setEndurance_actual_timelong(0);
|
| | | ben.setMonvolstd(0);
|
| | | ben.setIs_out_stand(100);
|
| | | Page page=new Page();
|
| | | page.setPageCurr(1);
|
| | | page.setPageSize(10);
|
| | | ben.setPage(page);
|
| | | /*List<Batt_endurance> list=bimpl.serchByCondition(ben);
|
| | | User_inf uinf=new User_inf();
|
| | | uinf.setUId(1002);
|
| | | List<Batt_endurance> list=bimpl.serchByCondition(ben);
|
| | | for (Batt_endurance b : list) {
|
| | | System.out.println(b);
|
| | | }
|
| | | System.out.println(list.size());*/
|
| | | System.out.println(list.size());
|
| | |
|
| | | User_inf uinf=new User_inf();
|
| | | uinf.setUId(1002);
|
| | | |
| | | /*List<Integer> list=bimpl.serchByState_xuhang(uinf);
|
| | | for (int num : list) {
|
| | | System.out.println(num);
|
| | |
| | | //System.out.println(list.size());
|
| | | /*int nums=bimpl.serchxuhangNotInThree(uinf);
|
| | | System.out.println(nums);*/
|
| | | BattMap_information binformation=new BattMap_information();
|
| | | /*BattMap_information binformation=new BattMap_information();
|
| | | binformation.setStationId("42000530");
|
| | | int nums=bimpl.serchxuhangNotInThree_stationid(binformation);
|
| | | System.out.println(nums);
|
| | | System.out.println(nums);*/
|
| | | }
|
| | |
|
| | |
|
| | |
| | | private String stationName1;//省级
|
| | | private String stationName2;//市级
|
| | | private String stationName5;//区县
|
| | | private int monvolstd;
|
| | | private Page page;//分页
|
| | | public int getNum() {
|
| | | return num;
|
| | |
| | | public void setPage(Page page) {
|
| | | this.page = page;
|
| | | }
|
| | | |
| | | |
| | | public int getMonvolstd() {
|
| | | return monvolstd;
|
| | | }
|
| | | public void setMonvolstd(int monvolstd) {
|
| | | this.monvolstd = monvolstd;
|
| | | }
|
| | | @Override
|
| | | public String toString() {
|
| | | return "Batt_endurance [num=" + num + ", deviceId=" + deviceId
|
| | | + ", stationid=" + stationid + ", real_cap=" + real_cap
|
| | | + ", moncapstd=" + moncapstd + ", real_curr=" + real_curr
|
| | | + ", endurance_theory_timelong=" + endurance_theory_timelong
|
| | | + ", endurance_actual_timelong=" + endurance_actual_timelong
|
| | | + ", endurance_actual_timelong_max="
|
| | | + endurance_actual_timelong_max
|
| | | + ", endurance_actual_timelong_min="
|
| | | + endurance_actual_timelong_min + ", is_out_stand="
|
| | | + is_out_stand + ", note=" + note + ", stationName="
|
| | | + stationName + ", stationName1=" + stationName1
|
| | | + ", stationName2=" + stationName2 + ", stationName5="
|
| | | + stationName5 + ", page=" + page + "]";
|
| | | return "Batt_endurance [num=" + num + ", deviceId=" + deviceId + ", stationid=" + stationid + ", real_cap="
|
| | | + real_cap + ", moncapstd=" + moncapstd + ", real_curr=" + real_curr + ", endurance_theory_timelong="
|
| | | + endurance_theory_timelong + ", endurance_actual_timelong=" + endurance_actual_timelong
|
| | | + ", endurance_actual_timelong_max=" + endurance_actual_timelong_max
|
| | | + ", endurance_actual_timelong_min=" + endurance_actual_timelong_min + ", is_out_stand=" + is_out_stand
|
| | | + ", note=" + note + ", stationName=" + stationName + ", stationName1=" + stationName1
|
| | | + ", stationName2=" + stationName2 + ", stationName5=" + stationName5 + ", monvolstd=" + monvolstd
|
| | | + ", page=" + page + "]";
|
| | | }
|
| | |
|
| | | |
| | |
|
| | | }
|