Tabnine Logo
SmsHomeAdvertiseMapper
Code IndexAdd Tabnine to your IDE (free)

How to use
SmsHomeAdvertiseMapper
in
com.macro.mall.mapper

Best Java code snippets using com.macro.mall.mapper.SmsHomeAdvertiseMapper (Showing top 7 results out of 315)

origin: macrozheng/mall

@Override
public SmsHomeAdvertise getItem(Long id) {
  return advertiseMapper.selectByPrimaryKey(id);
}
origin: macrozheng/mall

@Override
public int update(Long id, SmsHomeAdvertise advertise) {
  advertise.setId(id);
  return advertiseMapper.updateByPrimaryKeySelective(advertise);
}
origin: macrozheng/mall

return advertiseMapper.selectByExample(example);
origin: macrozheng/mall

@Override
public int create(SmsHomeAdvertise advertise) {
  advertise.setClickCount(0);
  advertise.setOrderCount(0);
  return advertiseMapper.insert(advertise);
}
origin: macrozheng/mall

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

private List<SmsHomeAdvertise> getHomeAdvertiseList() {
  SmsHomeAdvertiseExample example = new SmsHomeAdvertiseExample();
  example.createCriteria().andTypeEqualTo(1).andStatusEqualTo(1);
  example.setOrderByClause("sort desc");
  return advertiseMapper.selectByExample(example);
}
origin: macrozheng/mall

@Override
public int updateStatus(Long id, Integer status) {
  SmsHomeAdvertise record = new SmsHomeAdvertise();
  record.setId(id);
  record.setStatus(status);
  return advertiseMapper.updateByPrimaryKeySelective(record);
}
com.macro.mall.mapperSmsHomeAdvertiseMapper

Most used methods

  • selectByExample
  • deleteByExample
  • insert
  • selectByPrimaryKey
  • updateByPrimaryKeySelective

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (Timer)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Path (java.nio.file)
  • JCheckBox (javax.swing)
  • JComboBox (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top Sublime Text plugins
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