Esempio n. 1
0
 private int getAdCount(long actId) {
   ActAdExample example = new ActAdExample();
   example.createCriteria().andActIdEqualTo(actId);
   return actAdMapper.countByExample(example);
 }
Esempio n. 2
0
 @Override
 public boolean isUrlExist(String url, long actId) {
   ActAdExample example = new ActAdExample();
   example.createCriteria().andLinkEqualTo(url).andActIdEqualTo(actId);
   return actAdMapper.countByExample(example) > 0 ? true : false;
 }