com.macro.mall.model.SmsFlashPromotion Java Examples
The following examples show how to use
com.macro.mall.model.SmsFlashPromotion.
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: SmsFlashPromotionController.java From macrozheng with Apache License 2.0 | 5 votes |
@ApiOperation("编辑活动信息") @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) @ResponseBody public Object update(@PathVariable Long id, @RequestBody SmsFlashPromotion flashPromotion) { int count = flashPromotionService.update(id, flashPromotion); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); }
Example #2
Source File: SmsFlashPromotionController.java From macrozheng-mall with MIT License | 5 votes |
@ApiOperation("添加活动") @RequestMapping(value = "/create",method = RequestMethod.POST) @ResponseBody public Object create(@RequestBody SmsFlashPromotion flashPromotion){ int count = flashPromotionService.create(flashPromotion); if(count>0){ return new CommonResult().success(count); } return new CommonResult().failed(); }
Example #3
Source File: SmsFlashPromotionServiceImpl.java From mall with Apache License 2.0 | 5 votes |
@Override public List<SmsFlashPromotion> list(String keyword, Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum, pageSize); SmsFlashPromotionExample example = new SmsFlashPromotionExample(); if (!StringUtils.isEmpty(keyword)) { example.createCriteria().andTitleLike("%" + keyword + "%"); } return flashPromotionMapper.selectByExample(example); }
Example #4
Source File: SmsFlashPromotionController.java From macrozheng-mall with MIT License | 5 votes |
@ApiOperation("编辑活动信息") @RequestMapping(value = "/update/{id}",method = RequestMethod.POST) @ResponseBody public Object update(@PathVariable Long id, @RequestBody SmsFlashPromotion flashPromotion){ int count = flashPromotionService.update(id,flashPromotion); if(count>0){ return new CommonResult().success(count); } return new CommonResult().failed(); }
Example #5
Source File: SmsFlashPromotionServiceImpl.java From macrozheng-mall with MIT License | 5 votes |
@Override public int updateStatus(Long id, Integer status) { SmsFlashPromotion flashPromotion = new SmsFlashPromotion(); flashPromotion.setId(id); flashPromotion.setStatus(status); return flashPromotionMapper.updateByPrimaryKeySelective(flashPromotion); }
Example #6
Source File: SmsFlashPromotionController.java From mall-swarm with Apache License 2.0 | 5 votes |
@ApiOperation("添加活动") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult create(@RequestBody SmsFlashPromotion flashPromotion) { int count = flashPromotionService.create(flashPromotion); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); }
Example #7
Source File: SmsFlashPromotionController.java From mall-swarm with Apache License 2.0 | 5 votes |
@ApiOperation("编辑活动信息") @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) @ResponseBody public Object update(@PathVariable Long id, @RequestBody SmsFlashPromotion flashPromotion) { int count = flashPromotionService.update(id, flashPromotion); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); }
Example #8
Source File: SmsFlashPromotionController.java From mall-swarm with Apache License 2.0 | 5 votes |
@ApiOperation("获取活动详情") @RequestMapping(value = "/{id}", method = RequestMethod.GET) @ResponseBody public Object getItem(@PathVariable Long id) { SmsFlashPromotion flashPromotion = flashPromotionService.getItem(id); return CommonResult.success(flashPromotion); }
Example #9
Source File: SmsFlashPromotionController.java From mall-swarm with Apache License 2.0 | 5 votes |
@ApiOperation("根据活动名称分页查询") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public Object getItem(@RequestParam(value = "keyword", required = false) String keyword, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsFlashPromotion> flashPromotionList = flashPromotionService.list(keyword, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(flashPromotionList)); }
Example #10
Source File: SmsFlashPromotionServiceImpl.java From mall with Apache License 2.0 | 5 votes |
@Override public int updateStatus(Long id, Integer status) { SmsFlashPromotion flashPromotion = new SmsFlashPromotion(); flashPromotion.setId(id); flashPromotion.setStatus(status); return flashPromotionMapper.updateByPrimaryKeySelective(flashPromotion); }
Example #11
Source File: SmsFlashPromotionController.java From macrozheng-mall with MIT License | 5 votes |
@ApiOperation("根据活动名称分页查询") @RequestMapping(value = "/list",method = RequestMethod.GET) @ResponseBody public Object getItem(@RequestParam(value = "keyword",required = false)String keyword, @RequestParam(value = "pageSize",defaultValue = "5")Integer pageSize, @RequestParam(value = "pageNum",defaultValue = "1")Integer pageNum){ List<SmsFlashPromotion> flashPromotionList = flashPromotionService.list(keyword,pageSize,pageNum); return new CommonResult().pageSuccess(flashPromotionList); }
Example #12
Source File: SmsFlashPromotionController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("根据活动名称分页查询") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public Object getItem(@RequestParam(value = "keyword", required = false) String keyword, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsFlashPromotion> flashPromotionList = flashPromotionService.list(keyword, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(flashPromotionList)); }
Example #13
Source File: SmsFlashPromotionController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("获取活动详情") @RequestMapping(value = "/{id}", method = RequestMethod.GET) @ResponseBody public Object getItem(@PathVariable Long id) { SmsFlashPromotion flashPromotion = flashPromotionService.getItem(id); return CommonResult.success(flashPromotion); }
Example #14
Source File: SmsFlashPromotionServiceImpl.java From mall-swarm with Apache License 2.0 | 5 votes |
@Override public int updateStatus(Long id, Integer status) { SmsFlashPromotion flashPromotion = new SmsFlashPromotion(); flashPromotion.setId(id); flashPromotion.setStatus(status); return flashPromotionMapper.updateByPrimaryKeySelective(flashPromotion); }
Example #15
Source File: SmsFlashPromotionController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("编辑活动信息") @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) @ResponseBody public Object update(@PathVariable Long id, @RequestBody SmsFlashPromotion flashPromotion) { int count = flashPromotionService.update(id, flashPromotion); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); }
Example #16
Source File: SmsFlashPromotionServiceImpl.java From mall-swarm with Apache License 2.0 | 5 votes |
@Override public List<SmsFlashPromotion> list(String keyword, Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum, pageSize); SmsFlashPromotionExample example = new SmsFlashPromotionExample(); if (!StringUtils.isEmpty(keyword)) { example.createCriteria().andTitleLike("%" + keyword + "%"); } return flashPromotionMapper.selectByExample(example); }
Example #17
Source File: SmsFlashPromotionController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("添加活动") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult create(@RequestBody SmsFlashPromotion flashPromotion) { int count = flashPromotionService.create(flashPromotion); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); }
Example #18
Source File: SmsFlashPromotionServiceImpl.java From macrozheng with Apache License 2.0 | 5 votes |
@Override public List<SmsFlashPromotion> list(String keyword, Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum, pageSize); SmsFlashPromotionExample example = new SmsFlashPromotionExample(); if (!StringUtils.isEmpty(keyword)) { example.createCriteria().andTitleLike("%" + keyword + "%"); } return flashPromotionMapper.selectByExample(example); }
Example #19
Source File: SmsFlashPromotionServiceImpl.java From macrozheng with Apache License 2.0 | 5 votes |
@Override public int updateStatus(Long id, Integer status) { SmsFlashPromotion flashPromotion = new SmsFlashPromotion(); flashPromotion.setId(id); flashPromotion.setStatus(status); return flashPromotionMapper.updateByPrimaryKeySelective(flashPromotion); }
Example #20
Source File: SmsFlashPromotionController.java From macrozheng with Apache License 2.0 | 5 votes |
@ApiOperation("根据活动名称分页查询") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public Object getItem(@RequestParam(value = "keyword", required = false) String keyword, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsFlashPromotion> flashPromotionList = flashPromotionService.list(keyword, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(flashPromotionList)); }
Example #21
Source File: SmsFlashPromotionController.java From macrozheng with Apache License 2.0 | 5 votes |
@ApiOperation("获取活动详情") @RequestMapping(value = "/{id}", method = RequestMethod.GET) @ResponseBody public Object getItem(@PathVariable Long id) { SmsFlashPromotion flashPromotion = flashPromotionService.getItem(id); return CommonResult.success(flashPromotion); }
Example #22
Source File: SmsFlashPromotionController.java From macrozheng with Apache License 2.0 | 5 votes |
@ApiOperation("添加活动") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult create(@RequestBody SmsFlashPromotion flashPromotion) { int count = flashPromotionService.create(flashPromotion); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); }
Example #23
Source File: SmsFlashPromotionServiceImpl.java From macrozheng-mall with MIT License | 5 votes |
@Override public List<SmsFlashPromotion> list(String keyword, Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum, pageSize); SmsFlashPromotionExample example = new SmsFlashPromotionExample(); if (!StringUtils.isEmpty(keyword)) { example.createCriteria().andTitleLike("%" + keyword + "%"); } return flashPromotionMapper.selectByExample(example); }
Example #24
Source File: SmsFlashPromotionServiceImpl.java From macrozheng with Apache License 2.0 | 4 votes |
@Override public int update(Long id, SmsFlashPromotion flashPromotion) { flashPromotion.setId(id); return flashPromotionMapper.updateByPrimaryKey(flashPromotion); }
Example #25
Source File: SmsFlashPromotionServiceImpl.java From macrozheng with Apache License 2.0 | 4 votes |
@Override public SmsFlashPromotion getItem(Long id) { return flashPromotionMapper.selectByPrimaryKey(id); }
Example #26
Source File: SmsFlashPromotionServiceImpl.java From mall with Apache License 2.0 | 4 votes |
@Override public int create(SmsFlashPromotion flashPromotion) { flashPromotion.setCreateTime(new Date()); return flashPromotionMapper.insert(flashPromotion); }
Example #27
Source File: SmsFlashPromotionServiceImpl.java From mall with Apache License 2.0 | 4 votes |
@Override public SmsFlashPromotion getItem(Long id) { return flashPromotionMapper.selectByPrimaryKey(id); }
Example #28
Source File: SmsFlashPromotionServiceImpl.java From macrozheng with Apache License 2.0 | 4 votes |
@Override public int create(SmsFlashPromotion flashPromotion) { flashPromotion.setCreateTime(new Date()); return flashPromotionMapper.insert(flashPromotion); }
Example #29
Source File: SmsFlashPromotionServiceImpl.java From macrozheng-mall with MIT License | 4 votes |
@Override public int create(SmsFlashPromotion flashPromotion) { flashPromotion.setCreateTime(new Date()); return flashPromotionMapper.insert(flashPromotion); }
Example #30
Source File: SmsFlashPromotionServiceImpl.java From macrozheng-mall with MIT License | 4 votes |
@Override public int update(Long id, SmsFlashPromotion flashPromotion) { flashPromotion.setId(id); return flashPromotionMapper.updateByPrimaryKey(flashPromotion); }