public static int insertMstxAds(String gdis) {
		int gid = MstxDao.getMaxNumber("mstx_ads");
		MstxDao.updateMaxNumber(5);// 将该字段值加1
		int result = 0;
		Connection con = DBUtil.getConnection();
		PreparedStatement pstmt = null;
		try {
			pstmt = con.prepareStatement("insert into mstx_ads(gid,gdis) values(?,?)");
			pstmt.setInt(1, gid);
			pstmt.setString(2, gdis);
			result = pstmt.executeUpdate();
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			try {
				if (pstmt != null) {
					pstmt.close();
					pstmt = null;
				}
			} catch (Exception e) {
				e.printStackTrace();
			}
			try {
				if (con != null) {
					con.close();
					con = null;
				}
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		return result;
	}