gift.setTo(to);
gift.setScore(score);
if(content != null || !"".equals(content))gift.setContent(content);
gift.setGiftTime(new Date());
MemberRecord record1 = new MemberRecord();
record1.setRecordDate(new Date());
record1.setRecorder(from);
record1.setScore(score);
record1.setNote(from.getUsername()+"赠送"+score+"积分 给"+to.getUsername());
this.getHibernateTemplate().persist(record1);
MemberRecord record2 = new MemberRecord();
record2.setRecordDate(new Date());
record2.setRecorder(to);
record2.setScore(score);
record2.setNote(to.getUsername()+"获赠"+score+"积分 ");
this.getHibernateTemplate().persist(record2);
this.getHibernateTemplate().persist(gift);
}