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