| | |
| | | // import java.util.Date; |
| | | // import java.util.List; |
| | | // |
| | | // import com.fgkj.controller.ActionUtil; |
| | | // import com.fgkj.util.*; |
| | | // import com.fgkj.mapper.BaseDAO; |
| | | // import com.fgkj.mapper.CallBack; |
| | | // import com.fgkj.mapper.DAOHelper; |
| | | // |
| | | // import com.fgkj.mapper.LimitNumberFactory; |
| | | // import com.fgkj.db.DBUtil; |
| | | // import com.fgkj.dto.BattInf; |
| | |
| | | // |
| | | // //minf.setFault_type(rs.getString("fault_type")); |
| | | // if (rs.getString("maint_done_time") != null) |
| | | // mainf.setMaint_done_time(DAOHelper.sdf.parse(rs |
| | | // mainf.setMaint_done_time(DateUtil.sdf.parse(rs |
| | | // .getString("maint_done_time"))); |
| | | // |
| | | // tdata.setBattGroupId(rs.getInt("battGroupId")); |
| | |
| | | // tdata.setTest_record_count(rs.getInt("test_record_count")); |
| | | // |
| | | // if (rs.getString("test_starttime") != null) |
| | | // tdata.setTest_starttime(DAOHelper.sdf.parse(rs |
| | | // tdata.setTest_starttime(DateUtil.sdf.parse(rs |
| | | // .getString("test_starttime"))); |
| | | // |
| | | // tdata.setTest_starttype(rs.getInt("test_starttype")); |
| | |
| | | // } |
| | | // //包机人 |
| | | // 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")){ |
| | | // list = DAOHelper.executeQuery( |
| | | // if(uinf.getuName().equals("0")){ |
| | | // list = DateUtil.executeQuery( |
| | | // sql, |
| | | // DBUtil.getConn(), |
| | | // new Object[] { |
| | |
| | | // }, |
| | | // new BattInfAgainImpl()); |
| | | // }else{ |
| | | // list = DAOHelper.executeQuery( |
| | | // list = DateUtil.executeQuery( |
| | | // sql, |
| | | // DBUtil.getConn(), |
| | | // new Object[] { |
| | |
| | | // "%"+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")){ |
| | | // list = DAOHelper.executeQueryLimit( |
| | | // if(uinf.getuName().equals("0")){ |
| | | // list = DateUtil.executeQueryLimit( |
| | | // sql, |
| | | // conn, |
| | | // new Object[] { |
| | |
| | | // }, |
| | | // new BattInfAgainImpl()); |
| | | // }else{ |
| | | // list = DAOHelper.executeQueryLimit( |
| | | // list = DateUtil.executeQueryLimit( |
| | | // sql, |
| | | // conn, |
| | | // new Object[] { |
| | |
| | | // "%"+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); |