@Override public List<MessageReply> queryMsgReply(Integer msgId) { MessageReplyExample messageReplyExample = new MessageReplyExample(); messageReplyExample.createCriteria().andMessageIdEqualTo(msgId); messageReplyExample.setOrderByClause("date"); return messageReplyMapper.selectByExampleWithBLOBs(messageReplyExample); }
@Override public int countMsgReply(Integer msgId) { MessageReplyExample messageReplyExample = new MessageReplyExample(); messageReplyExample.createCriteria().andMessageIdEqualTo(msgId); return messageReplyMapper.countByExample(messageReplyExample); }
@Override public int deleteMsgReply(Integer msgReplyId) { return messageReplyMapper.deleteByPrimaryKey(msgReplyId); }
@Override public void insertMsgReply(MessageReply messageReply) { messageReplyMapper.insert(messageReply); }