com.macro.mall.model.PmsBrandExample Java Examples

The following examples show how to use com.macro.mall.model.PmsBrandExample. 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 macrozheng-mall with MIT License 5 votes vote down vote up
@Override
public int updateFactoryStatus(List<Long> ids, Integer factoryStatus) {
    PmsBrand pmsBrand = new PmsBrand();
    pmsBrand.setFactoryStatus(factoryStatus);
    PmsBrandExample pmsBrandExample = new PmsBrandExample();
    pmsBrandExample.createCriteria().andIdIn(ids);
    return brandMapper.updateByExampleSelective(pmsBrand, 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 macrozheng with Apache License 2.0 5 votes vote down vote up
@Override
public int updateShowStatus(List<Long> ids, Integer showStatus) {
    PmsBrand pmsBrand = new PmsBrand();
    pmsBrand.setShowStatus(showStatus);
    PmsBrandExample pmsBrandExample = new PmsBrandExample();
    pmsBrandExample.createCriteria().andIdIn(ids);
    return brandMapper.updateByExampleSelective(pmsBrand, pmsBrandExample);
}
 
Example #4
Source File: PmsBrandServiceImpl.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@Override
public int updateFactoryStatus(List<Long> ids, Integer factoryStatus) {
    PmsBrand pmsBrand = new PmsBrand();
    pmsBrand.setFactoryStatus(factoryStatus);
    PmsBrandExample pmsBrandExample = new PmsBrandExample();
    pmsBrandExample.createCriteria().andIdIn(ids);
    return brandMapper.updateByExampleSelective(pmsBrand, pmsBrandExample);
}
 
Example #5
Source File: PmsBrandServiceImpl.java    From mall-swarm with Apache License 2.0 5 votes vote down vote up
@Override
public int updateFactoryStatus(List<Long> ids, Integer factoryStatus) {
    PmsBrand pmsBrand = new PmsBrand();
    pmsBrand.setFactoryStatus(factoryStatus);
    PmsBrandExample pmsBrandExample = new PmsBrandExample();
    pmsBrandExample.createCriteria().andIdIn(ids);
    return brandMapper.updateByExampleSelective(pmsBrand, pmsBrandExample);
}
 
Example #6
Source File: PmsBrandServiceImpl.java    From mall-swarm with Apache License 2.0 5 votes vote down vote up
@Override
public int updateShowStatus(List<Long> ids, Integer showStatus) {
    PmsBrand pmsBrand = new PmsBrand();
    pmsBrand.setShowStatus(showStatus);
    PmsBrandExample pmsBrandExample = new PmsBrandExample();
    pmsBrandExample.createCriteria().andIdIn(ids);
    return brandMapper.updateByExampleSelective(pmsBrand, pmsBrandExample);
}
 
Example #7
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 #8
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 #9
Source File: PmsBrandServiceImpl.java    From mall with Apache License 2.0 5 votes vote down vote up
@Override
public int updateShowStatus(List<Long> ids, Integer showStatus) {
    PmsBrand pmsBrand = new PmsBrand();
    pmsBrand.setShowStatus(showStatus);
    PmsBrandExample pmsBrandExample = new PmsBrandExample();
    pmsBrandExample.createCriteria().andIdIn(ids);
    return brandMapper.updateByExampleSelective(pmsBrand, pmsBrandExample);
}
 
Example #10
Source File: PmsBrandServiceImpl.java    From mall with Apache License 2.0 5 votes vote down vote up
@Override
public int updateFactoryStatus(List<Long> ids, Integer factoryStatus) {
    PmsBrand pmsBrand = new PmsBrand();
    pmsBrand.setFactoryStatus(factoryStatus);
    PmsBrandExample pmsBrandExample = new PmsBrandExample();
    pmsBrandExample.createCriteria().andIdIn(ids);
    return brandMapper.updateByExampleSelective(pmsBrand, pmsBrandExample);
}
 
Example #11
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);
}
 
Example #12
Source File: PmsBrandServiceImpl.java    From macrozheng-mall with MIT License 5 votes vote down vote up
@Override
public int updateShowStatus(List<Long> ids, Integer showStatus) {
    PmsBrand pmsBrand = new PmsBrand();
    pmsBrand.setShowStatus(showStatus);
    PmsBrandExample pmsBrandExample = new PmsBrandExample();
    pmsBrandExample.createCriteria().andIdIn(ids);
    return brandMapper.updateByExampleSelective(pmsBrand, pmsBrandExample);
}
 
Example #13
Source File: DemoServiceImpl.java    From macrozheng-mall with MIT License 4 votes vote down vote up
@Override
public List<PmsBrand> listAllBrand() {
    return brandMapper.selectByExample(new PmsBrandExample());
}
 
Example #14
Source File: DemoServiceImpl.java    From macrozheng-mall with MIT License 4 votes vote down vote up
@Override
public List<PmsBrand> listBrand(int pageNum, int pageSize) {
    PageHelper.startPage(pageNum, pageSize);
    return brandMapper.selectByExample(new PmsBrandExample());
}
 
Example #15
Source File: PmsBrandServiceImpl.java    From macrozheng-mall with MIT License 4 votes vote down vote up
@Override
public List<PmsBrand> listAllBrand() {
    return brandMapper.selectByExample(new PmsBrandExample());
}
 
Example #16
Source File: PmsBrandServiceImpl.java    From macrozheng-mall with MIT License 4 votes vote down vote up
@Override
public int deleteBrand(List<Long> ids) {
    PmsBrandExample pmsBrandExample = new PmsBrandExample();
    pmsBrandExample.createCriteria().andIdIn(ids);
    return brandMapper.deleteByExample(pmsBrandExample);
}
 
Example #17
Source File: PmsBrandServiceImpl.java    From mall with Apache License 2.0 4 votes vote down vote up
@Override
public int deleteBrand(List<Long> ids) {
    PmsBrandExample pmsBrandExample = new PmsBrandExample();
    pmsBrandExample.createCriteria().andIdIn(ids);
    return brandMapper.deleteByExample(pmsBrandExample);
}
 
Example #18
Source File: PmsBrandServiceImpl.java    From mall with Apache License 2.0 4 votes vote down vote up
@Override
public List<PmsBrand> listAllBrand() {
    return brandMapper.selectByExample(new PmsBrandExample());
}
 
Example #19
Source File: DemoServiceImpl.java    From mall with Apache License 2.0 4 votes vote down vote up
@Override
public List<PmsBrand> listBrand(int pageNum, int pageSize) {
    PageHelper.startPage(pageNum, pageSize);
    return brandMapper.selectByExample(new PmsBrandExample());
}
 
Example #20
Source File: DemoServiceImpl.java    From mall-swarm with Apache License 2.0 4 votes vote down vote up
@Override
public List<PmsBrand> listAllBrand() {
    return brandMapper.selectByExample(new PmsBrandExample());
}
 
Example #21
Source File: DemoServiceImpl.java    From mall with Apache License 2.0 4 votes vote down vote up
@Override
public List<PmsBrand> listAllBrand() {
    return brandMapper.selectByExample(new PmsBrandExample());
}
 
Example #22
Source File: PmsBrandServiceImpl.java    From macrozheng with Apache License 2.0 4 votes vote down vote up
@Override
public int deleteBrand(List<Long> ids) {
    PmsBrandExample pmsBrandExample = new PmsBrandExample();
    pmsBrandExample.createCriteria().andIdIn(ids);
    return brandMapper.deleteByExample(pmsBrandExample);
}
 
Example #23
Source File: PmsBrandServiceImpl.java    From macrozheng with Apache License 2.0 4 votes vote down vote up
@Override
public List<PmsBrand> listAllBrand() {
    return brandMapper.selectByExample(new PmsBrandExample());
}
 
Example #24
Source File: PmsBrandServiceImpl.java    From mall-swarm with Apache License 2.0 4 votes vote down vote up
@Override
public int deleteBrand(List<Long> ids) {
    PmsBrandExample pmsBrandExample = new PmsBrandExample();
    pmsBrandExample.createCriteria().andIdIn(ids);
    return brandMapper.deleteByExample(pmsBrandExample);
}
 
Example #25
Source File: DemoServiceImpl.java    From mall-swarm with Apache License 2.0 4 votes vote down vote up
@Override
public List<PmsBrand> listBrand(int pageNum, int pageSize) {
    PageHelper.startPage(pageNum, pageSize);
    return brandMapper.selectByExample(new PmsBrandExample());
}
 
Example #26
Source File: PmsBrandServiceImpl.java    From mall-swarm with Apache License 2.0 4 votes vote down vote up
@Override
public List<PmsBrand> listAllBrand() {
    return brandMapper.selectByExample(new PmsBrandExample());
}
 
Example #27
Source File: DemoServiceImpl.java    From macrozheng with Apache License 2.0 4 votes vote down vote up
@Override
public List<PmsBrand> listAllBrand() {
    return brandMapper.selectByExample(new PmsBrandExample());
}
 
Example #28
Source File: DemoServiceImpl.java    From macrozheng with Apache License 2.0 4 votes vote down vote up
@Override
public List<PmsBrand> listBrand(int pageNum, int pageSize) {
    PageHelper.startPage(pageNum, pageSize);
    return brandMapper.selectByExample(new PmsBrandExample());
}
 
Example #29
Source File: PmsBrandMapper.java    From mall-swarm with Apache License 2.0 votes vote down vote up
int updateByExampleWithBLOBs(@Param("record") PmsBrand record, @Param("example") PmsBrandExample example); 
Example #30
Source File: PmsBrandMapper.java    From macrozheng with Apache License 2.0 votes vote down vote up
int updateByExampleWithBLOBs(@Param("record") PmsBrand record, @Param("example") PmsBrandExample example);