| | |
| | | // } |
| | | // //包机人 |
| | | // String userSqlF=" and db_user.tb_user_inf.uname=? and db_user.tb_user_inf.ubaojiusr=1 "; |
| | | // if(uinf.getUName().equals("0")){ |
| | | // if(uinf.getuName().equals("0")){ |
| | | // baseSql=baseSql; |
| | | // }else{ |
| | | // baseSql+=userSqlF; |
| | |
| | | // |
| | | // sql=baseSql+endSql; |
| | | // //System.out.println(sql); |
| | | // if(uinf.getUName().equals("0")){ |
| | | // if(uinf.getuName().equals("0")){ |
| | | // list = DateUtil.executeQuery( |
| | | // sql, |
| | | // DBUtil.getConn(), |
| | |
| | | // "%"+binf.getBattGroupName1()+"%", |
| | | // binf.getMonVolStd(), |
| | | // binf.getMonCapStd(), |
| | | // uinf.getUName(), |
| | | // uinf.getuName(), |
| | | // mainf.getMaint_done_time(), |
| | | // mainf.getMaint_done_time1() |
| | | // }, |
| | |
| | | // } |
| | | // //包机人 |
| | | // String userSqlF=" and db_user.tb_user_inf.uname=? and db_user.tb_user_inf.ubaojiusr=1 "; |
| | | // if(uinf.getUName().equals("0")){ |
| | | // if(uinf.getuName().equals("0")){ |
| | | // baseSql=baseSql; |
| | | // }else{ |
| | | // baseSql+=userSqlF; |
| | |
| | | // String limitSql=" limit ?,? "; |
| | | // sql=baseSql+endSql+limitSql; |
| | | // System.out.println(sql); |
| | | // if(uinf.getUName().equals("0")){ |
| | | // if(uinf.getuName().equals("0")){ |
| | | // list = DateUtil.executeQueryLimit( |
| | | // sql, |
| | | // conn, |
| | |
| | | // "%"+binf.getBattGroupName1()+"%", |
| | | // binf.getMonVolStd(), |
| | | // binf.getMonCapStd(), |
| | | // uinf.getUName(), |
| | | // uinf.getuName(), |
| | | // mainf.getMaint_done_time(), |
| | | // mainf.getMaint_done_time1(),(bmd.getPage().getPageCurr() - 1)* bmd.getPage().getPageSize(), |
| | | // bmd.getPage().getPageSize() |
| | |
| | | // p.setPageSize(10); |
| | | // |
| | | // User_inf uinf=new User_inf(); |
| | | // uinf.setUName("0"); |
| | | // uinf.setuName("0"); |
| | | // Batt_Maint_Dealarm bmd = new Batt_Maint_Dealarm(); |
| | | // bmd.setBinf(binf); |
| | | // bmd.setMainf(mainf); |