com.macro.mall.model.SmsHomeRecommendSubjectExample Java Examples

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