예제 #1
0
 private int getAdCount(long actId) {
   ActAdExample example = new ActAdExample();
   example.createCriteria().andActIdEqualTo(actId);
   return actAdMapper.countByExample(example);
 }
예제 #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;
 }