CmsVoteRecord record = dao.findByIp(ip, topicId);
return record != null ? record.getTime() : null;
}
public Date lastVoteTimeByCookie(String cookie, Integer topicId) {
CmsVoteRecord record = dao.findByCookie(cookie, topicId);
return record != null ? record.getTime() : null;
}