@Override @Transactional(readOnly = true) public Page<MessageSend> findMessageSends(MessageSendPageParam param) { int total = messageSendDao.selectCount(param); List<MessageSend> datas = messageSendDao.selectPage(param); return new Page<MessageSend>(param, total, datas); }
@Override public void afterPropertiesSet() throws Exception { MessageSendPageParam param = new MessageSendPageParam(); param.setCurrentPage(1); param.setPageSize(maxCount); param.setType(MessageType.GLOBAL); List<MessageSend> globalMessages = messageSendDao.selectPage(param); globalMessageCache.put(GLOBAL_MESSAGE, globalMessages); }