com.macro.mall.model.SmsHomeBrand Java Examples
The following examples show how to use
com.macro.mall.model.SmsHomeBrand.
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: SmsHomeBrandController.java From macrozheng with Apache License 2.0 | 5 votes |
@ApiOperation("添加首页推荐品牌") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult create(@RequestBody List<SmsHomeBrand> homeBrandList) { int count = homeBrandService.create(homeBrandList); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); }
Example #2
Source File: SmsHomeBrandServiceImpl.java From mall-swarm with Apache License 2.0 | 5 votes |
@Override public int create(List<SmsHomeBrand> homeBrandList) { for (SmsHomeBrand smsHomeBrand : homeBrandList) { smsHomeBrand.setRecommendStatus(1); smsHomeBrand.setSort(0); homeBrandMapper.insert(smsHomeBrand); } return homeBrandList.size(); }
Example #3
Source File: SmsHomeBrandController.java From macrozheng-mall with MIT License | 5 votes |
@ApiOperation("分页查询推荐品牌") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public Object list(@RequestParam(value = "brandName", required = false) String brandName, @RequestParam(value = "recommendStatus", required = false) Integer recommendStatus, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsHomeBrand> homeBrandList = homeBrandService.list(brandName,recommendStatus,pageSize,pageNum); return new CommonResult().pageSuccess(homeBrandList); }
Example #4
Source File: SmsHomeBrandController.java From mall-swarm with Apache License 2.0 | 5 votes |
@ApiOperation("添加首页推荐品牌") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult create(@RequestBody List<SmsHomeBrand> homeBrandList) { int count = homeBrandService.create(homeBrandList); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); }
Example #5
Source File: SmsHomeBrandServiceImpl.java From macrozheng-mall with MIT License | 5 votes |
@Override public int create(List<SmsHomeBrand> homeBrandList) { for (SmsHomeBrand smsHomeBrand : homeBrandList) { smsHomeBrand.setRecommendStatus(1); smsHomeBrand.setSort(0); homeBrandMapper.insert(smsHomeBrand); } return homeBrandList.size(); }
Example #6
Source File: SmsHomeBrandServiceImpl.java From macrozheng-mall with MIT License | 5 votes |
@Override public int updateSort(Long id, Integer sort) { SmsHomeBrand homeBrand = new SmsHomeBrand(); homeBrand.setId(id); homeBrand.setSort(sort); return homeBrandMapper.updateByPrimaryKeySelective(homeBrand); }
Example #7
Source File: SmsHomeBrandController.java From mall-swarm with Apache License 2.0 | 5 votes |
@ApiOperation("分页查询推荐品牌") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<SmsHomeBrand>> list(@RequestParam(value = "brandName", required = false) String brandName, @RequestParam(value = "recommendStatus", required = false) Integer recommendStatus, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsHomeBrand> homeBrandList = homeBrandService.list(brandName, recommendStatus, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(homeBrandList)); }
Example #8
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 #9
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 #10
Source File: SmsHomeBrandServiceImpl.java From mall-swarm with Apache License 2.0 | 5 votes |
@Override public int updateSort(Long id, Integer sort) { SmsHomeBrand homeBrand = new SmsHomeBrand(); homeBrand.setId(id); homeBrand.setSort(sort); return homeBrandMapper.updateByPrimaryKeySelective(homeBrand); }
Example #11
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 #12
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 #13
Source File: SmsHomeBrandController.java From macrozheng-mall with MIT License | 5 votes |
@ApiOperation("添加首页推荐品牌") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public Object create(@RequestBody List<SmsHomeBrand> homeBrandList) { int count = homeBrandService.create(homeBrandList); if(count>0){ return new CommonResult().success(count); } return new CommonResult().failed(); }
Example #14
Source File: SmsHomeBrandController.java From macrozheng with Apache License 2.0 | 5 votes |
@ApiOperation("分页查询推荐品牌") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<SmsHomeBrand>> list(@RequestParam(value = "brandName", required = false) String brandName, @RequestParam(value = "recommendStatus", required = false) Integer recommendStatus, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsHomeBrand> homeBrandList = homeBrandService.list(brandName, recommendStatus, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(homeBrandList)); }
Example #15
Source File: SmsHomeBrandServiceImpl.java From macrozheng with Apache License 2.0 | 5 votes |
@Override public int create(List<SmsHomeBrand> homeBrandList) { for (SmsHomeBrand smsHomeBrand : homeBrandList) { smsHomeBrand.setRecommendStatus(1); smsHomeBrand.setSort(0); homeBrandMapper.insert(smsHomeBrand); } return homeBrandList.size(); }
Example #16
Source File: SmsHomeBrandServiceImpl.java From macrozheng with Apache License 2.0 | 5 votes |
@Override public int updateSort(Long id, Integer sort) { SmsHomeBrand homeBrand = new SmsHomeBrand(); homeBrand.setId(id); homeBrand.setSort(sort); return homeBrandMapper.updateByPrimaryKeySelective(homeBrand); }
Example #17
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 #18
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 #19
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 #20
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 #21
Source File: SmsHomeBrandServiceImpl.java From mall with Apache License 2.0 | 5 votes |
@Override public int updateSort(Long id, Integer sort) { SmsHomeBrand homeBrand = new SmsHomeBrand(); homeBrand.setId(id); homeBrand.setSort(sort); return homeBrandMapper.updateByPrimaryKeySelective(homeBrand); }
Example #22
Source File: SmsHomeBrandServiceImpl.java From mall with Apache License 2.0 | 5 votes |
@Override public int create(List<SmsHomeBrand> homeBrandList) { for (SmsHomeBrand smsHomeBrand : homeBrandList) { smsHomeBrand.setRecommendStatus(1); smsHomeBrand.setSort(0); homeBrandMapper.insert(smsHomeBrand); } return homeBrandList.size(); }
Example #23
Source File: SmsHomeBrandController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("分页查询推荐品牌") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<SmsHomeBrand>> list(@RequestParam(value = "brandName", required = false) String brandName, @RequestParam(value = "recommendStatus", required = false) Integer recommendStatus, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsHomeBrand> homeBrandList = homeBrandService.list(brandName, recommendStatus, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(homeBrandList)); }
Example #24
Source File: SmsHomeBrandController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("添加首页推荐品牌") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult create(@RequestBody List<SmsHomeBrand> homeBrandList) { int count = homeBrandService.create(homeBrandList); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); }
Example #25
Source File: SmsHomeBrandService.java From macrozheng with Apache License 2.0 | 2 votes |
/** * 添加首页品牌推荐 */ @Transactional int create(List<SmsHomeBrand> homeBrandList);
Example #26
Source File: SmsHomeBrandService.java From macrozheng-mall with MIT License | 2 votes |
/** * 添加首页品牌推荐 */ @Transactional int create(List<SmsHomeBrand> homeBrandList);
Example #27
Source File: SmsHomeBrandService.java From macrozheng-mall with MIT License | 2 votes |
/** * 分页查询品牌推荐 */ List<SmsHomeBrand> list(String brandName, Integer recommendStatus, Integer pageSize, Integer pageNum);
Example #28
Source File: SmsHomeBrandService.java From mall with Apache License 2.0 | 2 votes |
/** * 分页查询品牌推荐 */ List<SmsHomeBrand> list(String brandName, Integer recommendStatus, Integer pageSize, Integer pageNum);
Example #29
Source File: SmsHomeBrandService.java From mall with Apache License 2.0 | 2 votes |
/** * 添加首页品牌推荐 */ @Transactional int create(List<SmsHomeBrand> homeBrandList);
Example #30
Source File: SmsHomeBrandService.java From mall-swarm with Apache License 2.0 | 2 votes |
/** * 添加首页品牌推荐 */ @Transactional int create(List<SmsHomeBrand> homeBrandList);