Tabnine Logo
SmsHomeNewProductExample$Criteria
Code IndexAdd Tabnine to your IDE (free)

How to use
SmsHomeNewProductExample$Criteria
in
com.macro.mall.model

Best Java code snippets using com.macro.mall.model.SmsHomeNewProductExample$Criteria (Showing top 4 results out of 315)

origin: macrozheng/mall

  @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);
  }
}
origin: macrozheng/mall

protected Criteria createCriteriaInternal() {
  Criteria criteria = new Criteria();
  return criteria;
}
origin: macrozheng/mall

@Override
public int delete(List<Long> ids) {
  SmsHomeNewProductExample example = new SmsHomeNewProductExample();
  example.createCriteria().andIdIn(ids);
  return homeNewProductMapper.deleteByExample(example);
}
origin: macrozheng/mall

@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);
}
com.macro.mall.modelSmsHomeNewProductExample$Criteria

Most used methods

  • <init>
  • andIdIn
  • andProductNameLike
  • andRecommendStatusEqualTo

Popular in Java

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • setScale (BigDecimal)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JTextField (javax.swing)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now