得到的update_date是null
其他都正常就这里出问题了。。附上update代码
public void updateGoddess(Goddess g) throws SQLException { Connection conn = DBUtil.getConnection(); String sql = ""+ " update imooc_goddess "+ " set user_name=?,sex=?,age=?,birthday=?,email=?,mobile=?, "+ " update_user=?,update_date=current_date(),isdel=? "+ " where id=? "; PreparedStatement ptmp = conn.prepareStatement(sql); ptmp.setString(1,g.getUser_name()); ptmp.setInt(2,g.getSex()); ptmp.setInt(3,g.getAge()); ptmp.setDate(4,new Date(g.getBirthday().getTime())); ptmp.setString(5,g.getEmail()); ptmp.setString(6,g.getMobile()); ptmp.setString(7,g.getUpdate_user()); ptmp.setInt(8,g.getIsdel()); ptmp.setInt(9,g.getId()); ptmp.execute(); }