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