Пример #1
0
 @Override
 public int countDisplayMessage() {
   MessageExample messageExample = new MessageExample();
   messageExample.createCriteria().andDisplayEqualTo(true);
   return messageMapper.countByExample(messageExample);
 }
Пример #2
0
 public int queryMessageCount() {
   return messageMapper.countByExample(null);
 }