com.macro.mall.model.SmsHomeRecommendProductExample Java Examples

The following examples show how to use com.macro.mall.model.SmsHomeRecommendProductExample. 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: SmsHomeRecommendProductServiceImpl.java    From macrozheng-mall with MIT License 5 votes vote down vote up
@Override
public List<SmsHomeRecommendProduct> list(String productName, Integer recommendStatus, Integer pageSize, Integer pageNum) {
    PageHelper.startPage(pageNum,pageSize);
    SmsHomeRecommendProductExample example = new SmsHomeRecommendProductExample();
    SmsHomeRecommendProductExample.Criteria criteria = example.createCriteria();
    if(!StringUtils.isEmpty(productName)){
        criteria.andProductNameLike("%"+productName+"%");
    }
    if(recommendStatus!=null){
        criteria.andRecommendStatusEqualTo(recommendStatus);
    }
    example.setOrderByClause("sort desc");
    return recommendProductMapper.selectByExample(example);
}
 
Example #2
Source File: SmsHomeRecommendProductServiceImpl.java    From macrozheng-mall with MIT License 5 votes vote down vote up
@Override
public int updateRecommendStatus(List<Long> ids, Integer recommendStatus) {
    SmsHomeRecommendProductExample example = new SmsHomeRecommendProductExample();
    example.createCriteria().andIdIn(ids);
    SmsHomeRecommendProduct record = new SmsHomeRecommendProduct();
    record.setRecommendStatus(recommendStatus);
    return recommendProductMapper.updateByExampleSelective(record,example);
}
 
Example #3
Source File: SmsHomeRecommendProductServiceImpl.java    From mall-swarm with Apache License 2.0 5 votes vote down vote up
@Override
public int updateRecommendStatus(List<Long> ids, Integer recommendStatus) {
    SmsHomeRecommendProductExample example = new SmsHomeRecommendProductExample();
    example.createCriteria().andIdIn(ids);
    SmsHomeRecommendProduct record = new SmsHomeRecommendProduct();
    record.setRecommendStatus(recommendStatus);
    return recommendProductMapper.updateByExampleSelective(record,example);
}
 
Example #4
Source File: SmsHomeRecommendProductServiceImpl.java    From mall-swarm with Apache License 2.0 5 votes vote down vote up
@Override
public List<SmsHomeRecommendProduct> list(String productName, Integer recommendStatus, Integer pageSize, Integer pageNum) {
    PageHelper.startPage(pageNum,pageSize);
    SmsHomeRecommendProductExample example = new SmsHomeRecommendProductExample();
    SmsHomeRecommendProductExample.Criteria criteria = example.createCriteria();
    if(!StringUtils.isEmpty(productName)){
        criteria.andProductNameLike("%"+productName+"%");
    }
    if(recommendStatus!=null){
        criteria.andRecommendStatusEqualTo(recommendStatus);
    }
    example.setOrderByClause("sort desc");
    return recommendProductMapper.selectByExample(example);
}
 
Example #5
Source File: SmsHomeRecommendProductServiceImpl.java    From mall with Apache License 2.0 5 votes vote down vote up
@Override
public int updateRecommendStatus(List<Long> ids, Integer recommendStatus) {
    SmsHomeRecommendProductExample example = new SmsHomeRecommendProductExample();
    example.createCriteria().andIdIn(ids);
    SmsHomeRecommendProduct record = new SmsHomeRecommendProduct();
    record.setRecommendStatus(recommendStatus);
    return recommendProductMapper.updateByExampleSelective(record,example);
}
 
Example #6
Source File: SmsHomeRecommendProductServiceImpl.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@Override
public List<SmsHomeRecommendProduct> list(String productName, Integer recommendStatus, Integer pageSize, Integer pageNum) {
    PageHelper.startPage(pageNum,pageSize);
    SmsHomeRecommendProductExample example = new SmsHomeRecommendProductExample();
    SmsHomeRecommendProductExample.Criteria criteria = example.createCriteria();
    if(!StringUtils.isEmpty(productName)){
        criteria.andProductNameLike("%"+productName+"%");
    }
    if(recommendStatus!=null){
        criteria.andRecommendStatusEqualTo(recommendStatus);
    }
    example.setOrderByClause("sort desc");
    return recommendProductMapper.selectByExample(example);
}
 
Example #7
Source File: SmsHomeRecommendProductServiceImpl.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@Override
public int updateRecommendStatus(List<Long> ids, Integer recommendStatus) {
    SmsHomeRecommendProductExample example = new SmsHomeRecommendProductExample();
    example.createCriteria().andIdIn(ids);
    SmsHomeRecommendProduct record = new SmsHomeRecommendProduct();
    record.setRecommendStatus(recommendStatus);
    return recommendProductMapper.updateByExampleSelective(record,example);
}
 
Example #8
Source File: SmsHomeRecommendProductServiceImpl.java    From mall with Apache License 2.0 5 votes vote down vote up
@Override
public List<SmsHomeRecommendProduct> list(String productName, Integer recommendStatus, Integer pageSize, Integer pageNum) {
    PageHelper.startPage(pageNum,pageSize);
    SmsHomeRecommendProductExample example = new SmsHomeRecommendProductExample();
    SmsHomeRecommendProductExample.Criteria criteria = example.createCriteria();
    if(!StringUtils.isEmpty(productName)){
        criteria.andProductNameLike("%"+productName+"%");
    }
    if(recommendStatus!=null){
        criteria.andRecommendStatusEqualTo(recommendStatus);
    }
    example.setOrderByClause("sort desc");
    return recommendProductMapper.selectByExample(example);
}
 
Example #9
Source File: SmsHomeRecommendProductServiceImpl.java    From macrozheng-mall with MIT License 4 votes vote down vote up
@Override
public int delete(List<Long> ids) {
    SmsHomeRecommendProductExample example = new SmsHomeRecommendProductExample();
    example.createCriteria().andIdIn(ids);
    return recommendProductMapper.deleteByExample(example);
}
 
Example #10
Source File: SmsHomeRecommendProductServiceImpl.java    From mall-swarm with Apache License 2.0 4 votes vote down vote up
@Override
public int delete(List<Long> ids) {
    SmsHomeRecommendProductExample example = new SmsHomeRecommendProductExample();
    example.createCriteria().andIdIn(ids);
    return recommendProductMapper.deleteByExample(example);
}
 
Example #11
Source File: SmsHomeRecommendProductServiceImpl.java    From mall with Apache License 2.0 4 votes vote down vote up
@Override
public int delete(List<Long> ids) {
    SmsHomeRecommendProductExample example = new SmsHomeRecommendProductExample();
    example.createCriteria().andIdIn(ids);
    return recommendProductMapper.deleteByExample(example);
}
 
Example #12
Source File: SmsHomeRecommendProductServiceImpl.java    From macrozheng with Apache License 2.0 4 votes vote down vote up
@Override
public int delete(List<Long> ids) {
    SmsHomeRecommendProductExample example = new SmsHomeRecommendProductExample();
    example.createCriteria().andIdIn(ids);
    return recommendProductMapper.deleteByExample(example);
}
 
Example #13
Source File: SmsHomeRecommendProductMapper.java    From mall with Apache License 2.0 votes vote down vote up
int updateByExample(@Param("record") SmsHomeRecommendProduct record, @Param("example") SmsHomeRecommendProductExample example); 
Example #14
Source File: SmsHomeRecommendProductMapper.java    From mall with Apache License 2.0 votes vote down vote up
long countByExample(SmsHomeRecommendProductExample example); 
Example #15
Source File: SmsHomeRecommendProductMapper.java    From macrozheng-mall with MIT License votes vote down vote up
int countByExample(SmsHomeRecommendProductExample example); 
Example #16
Source File: SmsHomeRecommendProductMapper.java    From macrozheng-mall with MIT License votes vote down vote up
int deleteByExample(SmsHomeRecommendProductExample example); 
Example #17
Source File: SmsHomeRecommendProductMapper.java    From macrozheng-mall with MIT License votes vote down vote up
List<SmsHomeRecommendProduct> selectByExample(SmsHomeRecommendProductExample example); 
Example #18
Source File: SmsHomeRecommendProductMapper.java    From macrozheng-mall with MIT License votes vote down vote up
int updateByExampleSelective(@Param("record") SmsHomeRecommendProduct record, @Param("example") SmsHomeRecommendProductExample example); 
Example #19
Source File: SmsHomeRecommendProductMapper.java    From macrozheng-mall with MIT License votes vote down vote up
int updateByExample(@Param("record") SmsHomeRecommendProduct record, @Param("example") SmsHomeRecommendProductExample example); 
Example #20
Source File: SmsHomeRecommendProductMapper.java    From mall with Apache License 2.0 votes vote down vote up
int updateByExampleSelective(@Param("record") SmsHomeRecommendProduct record, @Param("example") SmsHomeRecommendProductExample example); 
Example #21
Source File: SmsHomeRecommendProductMapper.java    From mall with Apache License 2.0 votes vote down vote up
List<SmsHomeRecommendProduct> selectByExample(SmsHomeRecommendProductExample example); 
Example #22
Source File: SmsHomeRecommendProductMapper.java    From mall with Apache License 2.0 votes vote down vote up
int deleteByExample(SmsHomeRecommendProductExample example); 
Example #23
Source File: SmsHomeRecommendProductMapper.java    From mall-swarm with Apache License 2.0 votes vote down vote up
long countByExample(SmsHomeRecommendProductExample example); 
Example #24
Source File: SmsHomeRecommendProductMapper.java    From macrozheng with Apache License 2.0 votes vote down vote up
int updateByExample(@Param("record") SmsHomeRecommendProduct record, @Param("example") SmsHomeRecommendProductExample example); 
Example #25
Source File: SmsHomeRecommendProductMapper.java    From macrozheng with Apache License 2.0 votes vote down vote up
int updateByExampleSelective(@Param("record") SmsHomeRecommendProduct record, @Param("example") SmsHomeRecommendProductExample example); 
Example #26
Source File: SmsHomeRecommendProductMapper.java    From macrozheng with Apache License 2.0 votes vote down vote up
List<SmsHomeRecommendProduct> selectByExample(SmsHomeRecommendProductExample example); 
Example #27
Source File: SmsHomeRecommendProductMapper.java    From macrozheng with Apache License 2.0 votes vote down vote up
int deleteByExample(SmsHomeRecommendProductExample example); 
Example #28
Source File: SmsHomeRecommendProductMapper.java    From macrozheng with Apache License 2.0 votes vote down vote up
int countByExample(SmsHomeRecommendProductExample example); 
Example #29
Source File: SmsHomeRecommendProductMapper.java    From mall-swarm with Apache License 2.0 votes vote down vote up
int updateByExample(@Param("record") SmsHomeRecommendProduct record, @Param("example") SmsHomeRecommendProductExample example); 
Example #30
Source File: SmsHomeRecommendProductMapper.java    From mall-swarm with Apache License 2.0 votes vote down vote up
int updateByExampleSelective(@Param("record") SmsHomeRecommendProduct record, @Param("example") SmsHomeRecommendProductExample example);