Java Code Examples for com.macro.mall.model.SmsHomeNewProductExample#Criteria
The following examples show how to use
com.macro.mall.model.SmsHomeNewProductExample#Criteria .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SmsHomeNewProductServiceImpl.java From mall-swarm with Apache License 2.0 | 5 votes |
@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); }
Example 2
Source File: SmsHomeNewProductServiceImpl.java From macrozheng with Apache License 2.0 | 5 votes |
@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); }
Example 3
Source File: SmsHomeNewProductServiceImpl.java From mall with Apache License 2.0 | 5 votes |
@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); }
Example 4
Source File: SmsHomeNewProductServiceImpl.java From macrozheng-mall with MIT License | 5 votes |
@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); }