Java Code Examples for com.macro.mall.model.PmsBrandExample#Criteria

The following examples show how to use com.macro.mall.model.PmsBrandExample#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: PmsBrandServiceImpl.java    From mall-swarm with Apache License 2.0 5 votes vote down vote up
@Override
public List<PmsBrand> listBrand(String keyword, int pageNum, int pageSize) {
    PageHelper.startPage(pageNum, pageSize);
    PmsBrandExample pmsBrandExample = new PmsBrandExample();
    pmsBrandExample.setOrderByClause("sort desc");
    PmsBrandExample.Criteria criteria = pmsBrandExample.createCriteria();
    if (!StringUtils.isEmpty(keyword)) {
        criteria.andNameLike("%" + keyword + "%");
    }
    return brandMapper.selectByExample(pmsBrandExample);
}
 
Example 2
Source File: PmsBrandServiceImpl.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@Override
public List<PmsBrand> listBrand(String keyword, int pageNum, int pageSize) {
    PageHelper.startPage(pageNum, pageSize);
    PmsBrandExample pmsBrandExample = new PmsBrandExample();
    pmsBrandExample.setOrderByClause("sort desc");
    PmsBrandExample.Criteria criteria = pmsBrandExample.createCriteria();
    if (!StringUtils.isEmpty(keyword)) {
        criteria.andNameLike("%" + keyword + "%");
    }
    return brandMapper.selectByExample(pmsBrandExample);
}
 
Example 3
Source File: PmsBrandServiceImpl.java    From mall with Apache License 2.0 5 votes vote down vote up
@Override
public List<PmsBrand> listBrand(String keyword, int pageNum, int pageSize) {
    PageHelper.startPage(pageNum, pageSize);
    PmsBrandExample pmsBrandExample = new PmsBrandExample();
    pmsBrandExample.setOrderByClause("sort desc");
    PmsBrandExample.Criteria criteria = pmsBrandExample.createCriteria();
    if (!StringUtils.isEmpty(keyword)) {
        criteria.andNameLike("%" + keyword + "%");
    }
    return brandMapper.selectByExample(pmsBrandExample);
}
 
Example 4
Source File: PmsBrandServiceImpl.java    From macrozheng-mall with MIT License 5 votes vote down vote up
@Override
public List<PmsBrand> listBrand(String keyword, int pageNum, int pageSize) {
    PageHelper.startPage(pageNum, pageSize);
    PmsBrandExample pmsBrandExample = new PmsBrandExample();
    pmsBrandExample.setOrderByClause("sort desc");
    PmsBrandExample.Criteria criteria = pmsBrandExample.createCriteria();
    if (!StringUtils.isEmpty(keyword)) {
        criteria.andNameLike("%" + keyword + "%");
    }
    return brandMapper.selectByExample(pmsBrandExample);
}