public FundPriceHistoryBean getLastDateBeanByFundId(int id)
			throws RollbackException, ParseException {
		FundPriceHistoryBean[] newBeanArray = match(MatchArg.equals("fund_id",
				id));
		for(FundPriceHistoryBean f:newBeanArray){
			System.out.println(f.getDate());
		}
		java.text.SimpleDateFormat sFormat = new java.text.SimpleDateFormat(
				"yyyy-MM-dd");
		if (newBeanArray.length > 0) {
			Date lastDate = new Date(0000-00-00);
			//System.out.println(lastDate);
			int lastDayIndex = 0;
			for (int i = 0; i < newBeanArray.length; i++) {
				if (newBeanArray[i].getDate() != null) {
					Date nextDate = sFormat.parse(newBeanArray[i].getDate());
					if (nextDate.after(lastDate)) {
						lastDate = nextDate;
						lastDayIndex = i;
					}
					//System.out.println("cur day:"+nextDate+"    last day:"+ lastDate);
				}
			}
			return newBeanArray[lastDayIndex];
		}
		return null;

	}