com.macro.mall.model.SmsFlashPromotionSession Java Examples
The following examples show how to use
com.macro.mall.model.SmsFlashPromotionSession.
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: SmsFlashPromotionSessionServiceImpl.java From macrozheng with Apache License 2.0 | 5 votes |
@Override public int updateStatus(Long id, Integer status) { SmsFlashPromotionSession promotionSession = new SmsFlashPromotionSession(); promotionSession.setId(id); promotionSession.setStatus(status); return promotionSessionMapper.updateByPrimaryKeySelective(promotionSession); }
Example #2
Source File: SmsFlashPromotionSessionController.java From macrozheng with Apache License 2.0 | 5 votes |
@ApiOperation("添加场次") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult create(@RequestBody SmsFlashPromotionSession promotionSession) { int count = flashPromotionSessionService.create(promotionSession); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); }
Example #3
Source File: SmsFlashPromotionSessionController.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 SmsFlashPromotionSession promotionSession) { int count = flashPromotionSessionService.update(id, promotionSession); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); }
Example #4
Source File: SmsFlashPromotionSessionController.java From macrozheng with Apache License 2.0 | 5 votes |
@ApiOperation("获取场次详情") @RequestMapping(value = "/{id}", method = RequestMethod.GET) @ResponseBody public CommonResult<SmsFlashPromotionSession> getItem(@PathVariable Long id) { SmsFlashPromotionSession promotionSession = flashPromotionSessionService.getItem(id); return CommonResult.success(promotionSession); }
Example #5
Source File: SmsFlashPromotionSessionController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("添加场次") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult create(@RequestBody SmsFlashPromotionSession promotionSession) { int count = flashPromotionSessionService.create(promotionSession); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); }
Example #6
Source File: SmsFlashPromotionSessionServiceImpl.java From macrozheng-mall with MIT License | 5 votes |
@Override public int updateStatus(Long id, Integer status) { SmsFlashPromotionSession promotionSession = new SmsFlashPromotionSession(); promotionSession.setId(id); promotionSession.setStatus(status); return promotionSessionMapper.updateByPrimaryKeySelective(promotionSession); }
Example #7
Source File: SmsFlashPromotionSessionServiceImpl.java From mall-swarm with Apache License 2.0 | 5 votes |
@Override public int updateStatus(Long id, Integer status) { SmsFlashPromotionSession promotionSession = new SmsFlashPromotionSession(); promotionSession.setId(id); promotionSession.setStatus(status); return promotionSessionMapper.updateByPrimaryKeySelective(promotionSession); }
Example #8
Source File: SmsFlashPromotionSessionServiceImpl.java From macrozheng-mall with MIT License | 5 votes |
@Override public List<SmsFlashPromotionSessionDetail> selectList(Long flashPromotionId) { List<SmsFlashPromotionSessionDetail> result = new ArrayList<>(); SmsFlashPromotionSessionExample example = new SmsFlashPromotionSessionExample(); example.createCriteria().andStatusEqualTo(1); List<SmsFlashPromotionSession> list = promotionSessionMapper.selectByExample(example); for (SmsFlashPromotionSession promotionSession : list) { SmsFlashPromotionSessionDetail detail = new SmsFlashPromotionSessionDetail(); BeanUtils.copyProperties(promotionSession, detail); int count = relationService.getCount(flashPromotionId, promotionSession.getId()); detail.setProductCount(count); result.add(detail); } return result; }
Example #9
Source File: SmsFlashPromotionSessionController.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 SmsFlashPromotionSession promotionSession) { int count = flashPromotionSessionService.update(id, promotionSession); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); }
Example #10
Source File: SmsFlashPromotionSessionServiceImpl.java From macrozheng with Apache License 2.0 | 5 votes |
@Override public List<SmsFlashPromotionSessionDetail> selectList(Long flashPromotionId) { List<SmsFlashPromotionSessionDetail> result = new ArrayList<>(); SmsFlashPromotionSessionExample example = new SmsFlashPromotionSessionExample(); example.createCriteria().andStatusEqualTo(1); List<SmsFlashPromotionSession> list = promotionSessionMapper.selectByExample(example); for (SmsFlashPromotionSession promotionSession : list) { SmsFlashPromotionSessionDetail detail = new SmsFlashPromotionSessionDetail(); BeanUtils.copyProperties(promotionSession, detail); int count = relationService.getCount(flashPromotionId, promotionSession.getId()); detail.setProductCount(count); result.add(detail); } return result; }
Example #11
Source File: SmsFlashPromotionSessionController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("获取全部场次") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<List<SmsFlashPromotionSession>> list() { List<SmsFlashPromotionSession> promotionSessionList = flashPromotionSessionService.list(); return CommonResult.success(promotionSessionList); }
Example #12
Source File: SmsFlashPromotionSessionController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("获取场次详情") @RequestMapping(value = "/{id}", method = RequestMethod.GET) @ResponseBody public CommonResult<SmsFlashPromotionSession> getItem(@PathVariable Long id) { SmsFlashPromotionSession promotionSession = flashPromotionSessionService.getItem(id); return CommonResult.success(promotionSession); }
Example #13
Source File: SmsFlashPromotionSessionController.java From mall-swarm with Apache License 2.0 | 5 votes |
@ApiOperation("获取全部场次") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<List<SmsFlashPromotionSession>> list() { List<SmsFlashPromotionSession> promotionSessionList = flashPromotionSessionService.list(); return CommonResult.success(promotionSessionList); }
Example #14
Source File: SmsFlashPromotionSessionController.java From mall-swarm with Apache License 2.0 | 5 votes |
@ApiOperation("获取场次详情") @RequestMapping(value = "/{id}", method = RequestMethod.GET) @ResponseBody public CommonResult<SmsFlashPromotionSession> getItem(@PathVariable Long id) { SmsFlashPromotionSession promotionSession = flashPromotionSessionService.getItem(id); return CommonResult.success(promotionSession); }
Example #15
Source File: SmsFlashPromotionSessionController.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 SmsFlashPromotionSession promotionSession) { int count = flashPromotionSessionService.update(id, promotionSession); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); }
Example #16
Source File: SmsFlashPromotionSessionController.java From mall-swarm with Apache License 2.0 | 5 votes |
@ApiOperation("添加场次") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult create(@RequestBody SmsFlashPromotionSession promotionSession) { int count = flashPromotionSessionService.create(promotionSession); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); }
Example #17
Source File: SmsFlashPromotionSessionServiceImpl.java From mall with Apache License 2.0 | 5 votes |
@Override public List<SmsFlashPromotionSessionDetail> selectList(Long flashPromotionId) { List<SmsFlashPromotionSessionDetail> result = new ArrayList<>(); SmsFlashPromotionSessionExample example = new SmsFlashPromotionSessionExample(); example.createCriteria().andStatusEqualTo(1); List<SmsFlashPromotionSession> list = promotionSessionMapper.selectByExample(example); for (SmsFlashPromotionSession promotionSession : list) { SmsFlashPromotionSessionDetail detail = new SmsFlashPromotionSessionDetail(); BeanUtils.copyProperties(promotionSession, detail); long count = relationService.getCount(flashPromotionId, promotionSession.getId()); detail.setProductCount(count); result.add(detail); } return result; }
Example #18
Source File: SmsFlashPromotionSessionController.java From macrozheng-mall with MIT License | 5 votes |
@ApiOperation("添加场次") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public Object create(@RequestBody SmsFlashPromotionSession promotionSession) { int count = flashPromotionSessionService.create(promotionSession); if(count>0){ return new CommonResult().success(count); } return new CommonResult().failed(); }
Example #19
Source File: SmsFlashPromotionSessionController.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 SmsFlashPromotionSession promotionSession) { int count = flashPromotionSessionService.update(id,promotionSession); if(count>0){ return new CommonResult().success(count); } return new CommonResult().failed(); }
Example #20
Source File: SmsFlashPromotionSessionController.java From macrozheng-mall with MIT License | 5 votes |
@ApiOperation("获取场次详情") @RequestMapping(value = "/{id}", method = RequestMethod.GET) @ResponseBody public Object getItem(@PathVariable Long id) { SmsFlashPromotionSession promotionSession = flashPromotionSessionService.getItem(id); return new CommonResult().success(promotionSession); }
Example #21
Source File: SmsFlashPromotionSessionController.java From macrozheng-mall with MIT License | 5 votes |
@ApiOperation("获取全部场次") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public Object list() { List<SmsFlashPromotionSession> promotionSessionList = flashPromotionSessionService.list(); return new CommonResult().success(promotionSessionList); }
Example #22
Source File: SmsFlashPromotionSessionServiceImpl.java From mall-swarm with Apache License 2.0 | 4 votes |
@Override public SmsFlashPromotionSession getItem(Long id) { return promotionSessionMapper.selectByPrimaryKey(id); }
Example #23
Source File: SmsFlashPromotionSessionServiceImpl.java From mall-swarm with Apache License 2.0 | 4 votes |
@Override public int create(SmsFlashPromotionSession promotionSession) { promotionSession.setCreateTime(new Date()); return promotionSessionMapper.insert(promotionSession); }
Example #24
Source File: SmsFlashPromotionSessionServiceImpl.java From mall with Apache License 2.0 | 4 votes |
@Override public int create(SmsFlashPromotionSession promotionSession) { promotionSession.setCreateTime(new Date()); return promotionSessionMapper.insert(promotionSession); }
Example #25
Source File: SmsFlashPromotionSessionServiceImpl.java From macrozheng-mall with MIT License | 4 votes |
@Override public SmsFlashPromotionSession getItem(Long id) { return promotionSessionMapper.selectByPrimaryKey(id); }
Example #26
Source File: SmsFlashPromotionSessionServiceImpl.java From macrozheng-mall with MIT License | 4 votes |
@Override public int update(Long id, SmsFlashPromotionSession promotionSession) { promotionSession.setId(id); return promotionSessionMapper.updateByPrimaryKey(promotionSession); }
Example #27
Source File: SmsFlashPromotionSessionServiceImpl.java From macrozheng with Apache License 2.0 | 4 votes |
@Override public int create(SmsFlashPromotionSession promotionSession) { promotionSession.setCreateTime(new Date()); return promotionSessionMapper.insert(promotionSession); }
Example #28
Source File: SmsFlashPromotionSessionServiceImpl.java From macrozheng with Apache License 2.0 | 4 votes |
@Override public int update(Long id, SmsFlashPromotionSession promotionSession) { promotionSession.setId(id); return promotionSessionMapper.updateByPrimaryKey(promotionSession); }
Example #29
Source File: SmsFlashPromotionSessionServiceImpl.java From macrozheng with Apache License 2.0 | 4 votes |
@Override public SmsFlashPromotionSession getItem(Long id) { return promotionSessionMapper.selectByPrimaryKey(id); }
Example #30
Source File: SmsFlashPromotionSessionServiceImpl.java From macrozheng with Apache License 2.0 | 4 votes |
@Override public List<SmsFlashPromotionSession> list() { SmsFlashPromotionSessionExample example = new SmsFlashPromotionSessionExample(); return promotionSessionMapper.selectByExample(example); }