- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Charset c =
String charsetName;Charset.forName(charsetName)
Charset.defaultCharset()
ContentType contentType;contentType.getCharset()
- Smart code suggestions by Codota
}
@Override public List<SmsHomeNewProduct> list(String productName, Integer recommendStatus, Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum,pageSize); SmsHomeNewProductExample example = new SmsHomeNewProductExample(); SmsHomeNewProductExample.Criteria criteria = example.createCriteria(); if(!StringUtils.isEmpty(productName)){ criteria.andProductNameLike("%"+productName+"%"); } if(recommendStatus!=null){ criteria.andRecommendStatusEqualTo(recommendStatus); } example.setOrderByClause("sort desc"); return homeNewProductMapper.selectByExample(example); } }
@Override public int updateRecommendStatus(List<Long> ids, Integer recommendStatus) { SmsHomeNewProductExample example = new SmsHomeNewProductExample(); example.createCriteria().andIdIn(ids); SmsHomeNewProduct record = new SmsHomeNewProduct(); record.setRecommendStatus(recommendStatus); return homeNewProductMapper.updateByExampleSelective(record,example); }
@Override public int delete(List<Long> ids) { SmsHomeNewProductExample example = new SmsHomeNewProductExample(); example.createCriteria().andIdIn(ids); return homeNewProductMapper.deleteByExample(example); }
protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; }