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