Codota Logo
SmsHomeNewProductExample$Criteria
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
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

@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);
}
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

protected Criteria createCriteriaInternal() {
  Criteria criteria = new Criteria();
  return criteria;
}
com.macro.mall.modelSmsHomeNewProductExample$Criteria

Most used methods

  • <init>
  • andIdIn
  • andProductNameLike
  • andRecommendStatusEqualTo

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now