com.macro.mall.model.SmsHomeNewProductExample Java Examples

The following examples show how to use com.macro.mall.model.SmsHomeNewProductExample. 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 macrozheng-mall with MIT License 5 votes vote down vote up
@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-mall with MIT License 5 votes vote down vote up
@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);
}
 
Example #3
Source File: SmsHomeNewProductServiceImpl.java    From mall-swarm with Apache License 2.0 5 votes vote down vote up
@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);
}
 
Example #4
Source File: SmsHomeNewProductServiceImpl.java    From mall-swarm with Apache License 2.0 5 votes vote down vote up
@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 #5
Source File: SmsHomeNewProductServiceImpl.java    From mall with Apache License 2.0 5 votes vote down vote up
@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);
}
 
Example #6
Source File: SmsHomeNewProductServiceImpl.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@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 #7
Source File: SmsHomeNewProductServiceImpl.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@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);
}
 
Example #8
Source File: SmsHomeNewProductServiceImpl.java    From mall with Apache License 2.0 5 votes vote down vote up
@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 #9
Source File: SmsHomeNewProductServiceImpl.java    From macrozheng-mall with MIT License 4 votes vote down vote up
@Override
public int delete(List<Long> ids) {
    SmsHomeNewProductExample example = new SmsHomeNewProductExample();
    example.createCriteria().andIdIn(ids);
    return homeNewProductMapper.deleteByExample(example);
}
 
Example #10
Source File: SmsHomeNewProductServiceImpl.java    From mall-swarm with Apache License 2.0 4 votes vote down vote up
@Override
public int delete(List<Long> ids) {
    SmsHomeNewProductExample example = new SmsHomeNewProductExample();
    example.createCriteria().andIdIn(ids);
    return homeNewProductMapper.deleteByExample(example);
}
 
Example #11
Source File: SmsHomeNewProductServiceImpl.java    From mall with Apache License 2.0 4 votes vote down vote up
@Override
public int delete(List<Long> ids) {
    SmsHomeNewProductExample example = new SmsHomeNewProductExample();
    example.createCriteria().andIdIn(ids);
    return homeNewProductMapper.deleteByExample(example);
}
 
Example #12
Source File: SmsHomeNewProductServiceImpl.java    From macrozheng with Apache License 2.0 4 votes vote down vote up
@Override
public int delete(List<Long> ids) {
    SmsHomeNewProductExample example = new SmsHomeNewProductExample();
    example.createCriteria().andIdIn(ids);
    return homeNewProductMapper.deleteByExample(example);
}
 
Example #13
Source File: SmsHomeNewProductMapper.java    From mall with Apache License 2.0 votes vote down vote up
int updateByExample(@Param("record") SmsHomeNewProduct record, @Param("example") SmsHomeNewProductExample example); 
Example #14
Source File: SmsHomeNewProductMapper.java    From mall with Apache License 2.0 votes vote down vote up
long countByExample(SmsHomeNewProductExample example); 
Example #15
Source File: SmsHomeNewProductMapper.java    From macrozheng-mall with MIT License votes vote down vote up
int countByExample(SmsHomeNewProductExample example); 
Example #16
Source File: SmsHomeNewProductMapper.java    From macrozheng-mall with MIT License votes vote down vote up
int deleteByExample(SmsHomeNewProductExample example); 
Example #17
Source File: SmsHomeNewProductMapper.java    From macrozheng-mall with MIT License votes vote down vote up
List<SmsHomeNewProduct> selectByExample(SmsHomeNewProductExample example); 
Example #18
Source File: SmsHomeNewProductMapper.java    From macrozheng-mall with MIT License votes vote down vote up
int updateByExampleSelective(@Param("record") SmsHomeNewProduct record, @Param("example") SmsHomeNewProductExample example); 
Example #19
Source File: SmsHomeNewProductMapper.java    From macrozheng-mall with MIT License votes vote down vote up
int updateByExample(@Param("record") SmsHomeNewProduct record, @Param("example") SmsHomeNewProductExample example); 
Example #20
Source File: SmsHomeNewProductMapper.java    From mall with Apache License 2.0 votes vote down vote up
int updateByExampleSelective(@Param("record") SmsHomeNewProduct record, @Param("example") SmsHomeNewProductExample example); 
Example #21
Source File: SmsHomeNewProductMapper.java    From mall with Apache License 2.0 votes vote down vote up
List<SmsHomeNewProduct> selectByExample(SmsHomeNewProductExample example); 
Example #22
Source File: SmsHomeNewProductMapper.java    From mall with Apache License 2.0 votes vote down vote up
int deleteByExample(SmsHomeNewProductExample example); 
Example #23
Source File: SmsHomeNewProductMapper.java    From mall-swarm with Apache License 2.0 votes vote down vote up
long countByExample(SmsHomeNewProductExample example); 
Example #24
Source File: SmsHomeNewProductMapper.java    From macrozheng with Apache License 2.0 votes vote down vote up
int updateByExample(@Param("record") SmsHomeNewProduct record, @Param("example") SmsHomeNewProductExample example); 
Example #25
Source File: SmsHomeNewProductMapper.java    From macrozheng with Apache License 2.0 votes vote down vote up
int updateByExampleSelective(@Param("record") SmsHomeNewProduct record, @Param("example") SmsHomeNewProductExample example); 
Example #26
Source File: SmsHomeNewProductMapper.java    From macrozheng with Apache License 2.0 votes vote down vote up
List<SmsHomeNewProduct> selectByExample(SmsHomeNewProductExample example); 
Example #27
Source File: SmsHomeNewProductMapper.java    From macrozheng with Apache License 2.0 votes vote down vote up
int deleteByExample(SmsHomeNewProductExample example); 
Example #28
Source File: SmsHomeNewProductMapper.java    From macrozheng with Apache License 2.0 votes vote down vote up
int countByExample(SmsHomeNewProductExample example); 
Example #29
Source File: SmsHomeNewProductMapper.java    From mall-swarm with Apache License 2.0 votes vote down vote up
int updateByExample(@Param("record") SmsHomeNewProduct record, @Param("example") SmsHomeNewProductExample example); 
Example #30
Source File: SmsHomeNewProductMapper.java    From mall-swarm with Apache License 2.0 votes vote down vote up
int updateByExampleSelective(@Param("record") SmsHomeNewProduct record, @Param("example") SmsHomeNewProductExample example);