public static int insertUser(String u_name, String u_qq, String u_pwd, String u_Email, String u_dis) {// 添加用户
		int uid = MstxDao.getMaxNumber("mstx_user");
		MstxDao.updateMaxNumber(2);// 将该字段值加1
		Connection con = DBUtil.getConnection();
		Statement st = null;
		try {
			st = con.createStatement();
			String sql = "insert into mstx_user" + "(u_admin,uid,u_name,u_qq,u_pwd,u_Email,u_dis) " + "values(false," + uid
					+ ",'" + u_name + "','" + ((u_qq.equals("")) ? 0 : u_qq) + "','" + u_pwd + "','" + u_Email + "','" + u_dis
					+ "');";
			st.executeUpdate(sql);
		} catch (SQLException e) {
			e.printStackTrace();
		} finally {
			try {
				if (st != null) {
					st.close();
					st = null;
				}
			} catch (Exception e) {
				e.printStackTrace();
			}
			try {
				if (con != null) {
					con.close();
					con = null;
				}
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		return uid;
	}