| | |
| | | package com.fgkj.dao.impl;
|
| | |
|
| | | import java.sql.ResultSet;
|
| | | import java.sql.SQLException;
|
| | | import java.util.ArrayList;
|
| | | import java.util.List;
|
| | |
|
| | | import com.fgkj.dao.BaseDAO;
|
| | |
| | | import com.fgkj.dao.DAOHelper;
|
| | | import com.fgkj.db.DBUtil;
|
| | | import com.fgkj.dto.BattInf_Rebuild;
|
| | | import com.mysql.fabric.xmlrpc.base.Array;
|
| | |
|
| | | public class BattInf_RebuildImpl implements BaseDAO,CallBack{
|
| | |
|
| | |
| | | // TODO Auto-generated method stub
|
| | | return null;
|
| | | }
|
| | |
|
| | | //查询new_battgroupid,new_monum是否有被配组的记录
|
| | | public List serchByCondition(Object obj) {
|
| | | // TODO Auto-generated method stub
|
| | | return null;
|
| | | BattInf_Rebuild br=(BattInf_Rebuild) obj;
|
| | | String sql="select * from db_battinf.tb_battinf_rebuild where new_battgroupid=? and new_monum=? and rebuild_clear_type=1 limit 1";
|
| | | List list=DAOHelper.executeQuery(sql, DBUtil.getConn(),new Object[]{br.getNew_battgroupid(),br.getNew_monum()}, new CallBack() {
|
| | | |
| | | public List getResults(ResultSet rs) {
|
| | | List list=new ArrayList();
|
| | | try {
|
| | | while(rs.next()){
|
| | | BattInf_Rebuild br=new BattInf_Rebuild();
|
| | | br.setNew_battgroupid(rs.getInt("new_battgroupid"));
|
| | | br.setNew_monum(rs.getInt("new_monum"));
|
| | | list.add(br);
|
| | | }
|
| | | } catch (SQLException e) {
|
| | | // TODO Auto-generated catch block
|
| | | e.printStackTrace();
|
| | | }
|
| | | return list;
|
| | | }
|
| | | });
|
| | | return list;
|
| | | }
|
| | |
|
| | | public List serchByInfo(Object obj) {
|