com.macro.mall.model.SmsHomeAdvertise Java Examples
The following examples show how to use
com.macro.mall.model.SmsHomeAdvertise.
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: SmsHomeAdvertiseController.java From mall-swarm with Apache License 2.0 | 5 votes |
@ApiOperation("分页查询广告") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<SmsHomeAdvertise>> list(@RequestParam(value = "name", required = false) String name, @RequestParam(value = "type", required = false) Integer type, @RequestParam(value = "endTime", required = false) String endTime, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsHomeAdvertise> advertiseList = advertiseService.list(name, type, endTime, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(advertiseList)); }
Example #2
Source File: SmsHomeAdvertiseController.java From macrozheng-mall with MIT License | 5 votes |
@ApiOperation("分页查询广告") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public Object list(@RequestParam(value = "name", required = false) String name, @RequestParam(value = "type", required = false) Integer type, @RequestParam(value = "endTime", required = false) String endTime, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsHomeAdvertise> advertiseList = advertiseService.list(name, type, endTime, pageSize, pageNum); return new CommonResult().pageSuccess(advertiseList); }
Example #3
Source File: SmsHomeAdvertiseController.java From macrozheng-mall with MIT License | 5 votes |
@ApiOperation("添加广告") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public Object create(@RequestBody SmsHomeAdvertise advertise) { int count = advertiseService.create(advertise); if (count > 0) return new CommonResult().success(count); return new CommonResult().failed(); }
Example #4
Source File: SmsHomeAdvertiseController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("添加广告") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult create(@RequestBody SmsHomeAdvertise advertise) { int count = advertiseService.create(advertise); if (count > 0) return CommonResult.success(count); return CommonResult.failed(); }
Example #5
Source File: SmsHomeAdvertiseController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("获取广告详情") @RequestMapping(value = "/{id}", method = RequestMethod.GET) @ResponseBody public CommonResult<SmsHomeAdvertise> getItem(@PathVariable Long id) { SmsHomeAdvertise advertise = advertiseService.getItem(id); return CommonResult.success(advertise); }
Example #6
Source File: SmsHomeAdvertiseController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("修改广告") @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult update(@PathVariable Long id, @RequestBody SmsHomeAdvertise advertise) { int count = advertiseService.update(id, advertise); if (count > 0) return CommonResult.success(count); return CommonResult.failed(); }
Example #7
Source File: SmsHomeAdvertiseController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("分页查询广告") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<SmsHomeAdvertise>> list(@RequestParam(value = "name", required = false) String name, @RequestParam(value = "type", required = false) Integer type, @RequestParam(value = "endTime", required = false) String endTime, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsHomeAdvertise> advertiseList = advertiseService.list(name, type, endTime, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(advertiseList)); }
Example #8
Source File: SmsHomeAdvertiseController.java From macrozheng with Apache License 2.0 | 5 votes |
@ApiOperation("添加广告") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult create(@RequestBody SmsHomeAdvertise advertise) { int count = advertiseService.create(advertise); if (count > 0) return CommonResult.success(count); return CommonResult.failed(); }
Example #9
Source File: SmsHomeAdvertiseController.java From macrozheng with Apache License 2.0 | 5 votes |
@ApiOperation("获取广告详情") @RequestMapping(value = "/{id}", method = RequestMethod.GET) @ResponseBody public CommonResult<SmsHomeAdvertise> getItem(@PathVariable Long id) { SmsHomeAdvertise advertise = advertiseService.getItem(id); return CommonResult.success(advertise); }
Example #10
Source File: SmsHomeAdvertiseServiceImpl.java From mall-swarm with Apache License 2.0 | 5 votes |
@Override public int updateStatus(Long id, Integer status) { SmsHomeAdvertise record = new SmsHomeAdvertise(); record.setId(id); record.setStatus(status); return advertiseMapper.updateByPrimaryKeySelective(record); }
Example #11
Source File: SmsHomeAdvertiseController.java From macrozheng with Apache License 2.0 | 5 votes |
@ApiOperation("修改广告") @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult update(@PathVariable Long id, @RequestBody SmsHomeAdvertise advertise) { int count = advertiseService.update(id, advertise); if (count > 0) return CommonResult.success(count); return CommonResult.failed(); }
Example #12
Source File: SmsHomeAdvertiseController.java From mall-swarm with Apache License 2.0 | 5 votes |
@ApiOperation("修改广告") @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult update(@PathVariable Long id, @RequestBody SmsHomeAdvertise advertise) { int count = advertiseService.update(id, advertise); if (count > 0) return CommonResult.success(count); return CommonResult.failed(); }
Example #13
Source File: SmsHomeAdvertiseController.java From mall-swarm with Apache License 2.0 | 5 votes |
@ApiOperation("获取广告详情") @RequestMapping(value = "/{id}", method = RequestMethod.GET) @ResponseBody public CommonResult<SmsHomeAdvertise> getItem(@PathVariable Long id) { SmsHomeAdvertise advertise = advertiseService.getItem(id); return CommonResult.success(advertise); }
Example #14
Source File: SmsHomeAdvertiseController.java From mall-swarm with Apache License 2.0 | 5 votes |
@ApiOperation("添加广告") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult create(@RequestBody SmsHomeAdvertise advertise) { int count = advertiseService.create(advertise); if (count > 0) return CommonResult.success(count); return CommonResult.failed(); }
Example #15
Source File: SmsHomeAdvertiseServiceImpl.java From macrozheng-mall with MIT License | 5 votes |
@Override public int updateStatus(Long id, Integer status) { SmsHomeAdvertise record = new SmsHomeAdvertise(); record.setId(id); record.setStatus(status); return advertiseMapper.updateByPrimaryKeySelective(record); }
Example #16
Source File: SmsHomeAdvertiseController.java From macrozheng with Apache License 2.0 | 5 votes |
@ApiOperation("分页查询广告") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<SmsHomeAdvertise>> list(@RequestParam(value = "name", required = false) String name, @RequestParam(value = "type", required = false) Integer type, @RequestParam(value = "endTime", required = false) String endTime, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsHomeAdvertise> advertiseList = advertiseService.list(name, type, endTime, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(advertiseList)); }
Example #17
Source File: SmsHomeAdvertiseController.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 SmsHomeAdvertise advertise) { int count = advertiseService.update(id, advertise); if (count > 0) return new CommonResult().success(count); return new CommonResult().failed(); }
Example #18
Source File: SmsHomeAdvertiseServiceImpl.java From macrozheng with Apache License 2.0 | 5 votes |
@Override public int updateStatus(Long id, Integer status) { SmsHomeAdvertise record = new SmsHomeAdvertise(); record.setId(id); record.setStatus(status); return advertiseMapper.updateByPrimaryKeySelective(record); }
Example #19
Source File: SmsHomeAdvertiseServiceImpl.java From mall with Apache License 2.0 | 5 votes |
@Override public int updateStatus(Long id, Integer status) { SmsHomeAdvertise record = new SmsHomeAdvertise(); record.setId(id); record.setStatus(status); return advertiseMapper.updateByPrimaryKeySelective(record); }
Example #20
Source File: SmsHomeAdvertiseController.java From macrozheng-mall with MIT License | 5 votes |
@ApiOperation("获取广告详情") @RequestMapping(value = "/{id}", method = RequestMethod.GET) @ResponseBody public Object getItem(@PathVariable Long id) { SmsHomeAdvertise advertise = advertiseService.getItem(id); return new CommonResult().success(advertise); }
Example #21
Source File: SmsHomeAdvertiseServiceImpl.java From macrozheng-mall with MIT License | 4 votes |
@Override public SmsHomeAdvertise getItem(Long id) { return advertiseMapper.selectByPrimaryKey(id); }
Example #22
Source File: SmsHomeAdvertiseServiceImpl.java From mall with Apache License 2.0 | 4 votes |
@Override public SmsHomeAdvertise getItem(Long id) { return advertiseMapper.selectByPrimaryKey(id); }
Example #23
Source File: SmsHomeAdvertiseServiceImpl.java From mall-swarm with Apache License 2.0 | 4 votes |
@Override public SmsHomeAdvertise getItem(Long id) { return advertiseMapper.selectByPrimaryKey(id); }
Example #24
Source File: SmsHomeAdvertiseServiceImpl.java From mall with Apache License 2.0 | 4 votes |
@Override public int create(SmsHomeAdvertise advertise) { advertise.setClickCount(0); advertise.setOrderCount(0); return advertiseMapper.insert(advertise); }
Example #25
Source File: SmsHomeAdvertiseServiceImpl.java From mall with Apache License 2.0 | 4 votes |
@Override public int update(Long id, SmsHomeAdvertise advertise) { advertise.setId(id); return advertiseMapper.updateByPrimaryKeySelective(advertise); }
Example #26
Source File: SmsHomeAdvertiseServiceImpl.java From mall-swarm with Apache License 2.0 | 4 votes |
@Override public int create(SmsHomeAdvertise advertise) { advertise.setClickCount(0); advertise.setOrderCount(0); return advertiseMapper.insert(advertise); }
Example #27
Source File: SmsHomeAdvertiseServiceImpl.java From macrozheng-mall with MIT License | 4 votes |
@Override public int update(Long id, SmsHomeAdvertise advertise) { advertise.setId(id); return advertiseMapper.updateByPrimaryKeySelective(advertise); }
Example #28
Source File: SmsHomeAdvertiseServiceImpl.java From macrozheng with Apache License 2.0 | 4 votes |
@Override public int create(SmsHomeAdvertise advertise) { advertise.setClickCount(0); advertise.setOrderCount(0); return advertiseMapper.insert(advertise); }
Example #29
Source File: SmsHomeAdvertiseServiceImpl.java From macrozheng with Apache License 2.0 | 4 votes |
@Override public SmsHomeAdvertise getItem(Long id) { return advertiseMapper.selectByPrimaryKey(id); }
Example #30
Source File: SmsHomeAdvertiseServiceImpl.java From macrozheng with Apache License 2.0 | 4 votes |
@Override public int update(Long id, SmsHomeAdvertise advertise) { advertise.setId(id); return advertiseMapper.updateByPrimaryKeySelective(advertise); }