毕业设计定做、课程设计定做,淘宝店地址:http://itword.taobao.com/
reader.setAge(rs.getString("age"));................................................................................34
reader.setIdentityCard(rs.getString("identityCard"));.....................................................34
reader.setDate(rs.getDate("date"));................................................................................34
reader.setMaxNum(rs.getString("maxNum"));................................................................34
reader.setTel(rs.getString("tel"));....................................................................................34
reader.setKeepMoney(rs.getDouble("keepMoney"));......................................................34
reader.setZj(rs.getInt("zj"));............................................................................................34
reader.setZy(rs.getString("zy"));.....................................................................................34
reader.setISBN(rs.getString("ISBN"));.............................................................................34
reader.setBztime(rs.getDate("bztime"));........................................................................34
list.add(reader);...............................................................................................................34
}......................................................................................................................................34
} catch (Exception e) {...................................................................................................34
e.printStackTrace();.........................................................................................................34
}......................................................................................................................................34
Dao.close();.....................................................................................................................34
return list;........................................................................................................................34
}......................................................................................................................................34
//更新读者信息....................................................................................................................34
public static int UpdateReader(String id,String name,String sex,String age,String
identityCard,Date date,String maxNum,String tel,Double keepMoney,String zj,String
zy,Date bztime,String ISBN){...........................................................................................34
int i=0;............................................................................................................................35
try{..................................................................................................................................35
String sql="update tb_reader set
name='"+name+"',sex='"+sex+"',age='"+age+"',identityCard='"+identityCard+"',dat
e='"+date+"',maxNum='"+maxNum+"',tel='"+tel+"',keepMoney="+keepMoney+",zj='
"+zj+"',zy='"+zy+"',bztime='"+bztime+"'where ISBN='"+ISBN+"'";............................35
i=Dao.executeUpdate(sql);.............................................................................................35
}catch(Exception e){......................................................................................................35
e.printStackTrace();.........................................................................................................35
}......................................................................................................................................35
Dao.close();.....................................................................................................................35
return i;...........................................................................................................................35
}......................................................................................................................................35
//删除读者信息....................................................................................................................35
VB 程序开发、VB 定做、Android 开发、Android 毕业设计、JAVA 程序定做、C++程序
定做、毕业设计定做等等。