| | |
| | | @ApiImplicitParam(name = "id", value = "抽奖活动id", required = true, dataType = "String", paramType = "path") |
| | | }) |
| | | public R<LotteryEventVo> getLotteryEvent(@PathVariable("id") String id, @PathVariable("orderId") String orderId) { |
| | | LotteryEventVo lotteryEvent = lotteryEventService.getLotteryEvent(id); |
| | | LotteryEventVo lotteryEvent = lotteryEventService.getLotteryEvent(id, orderId); |
| | | TLotteryEvent event = lotteryEventService.getById(id); |
| | | if (LocalDateTime.now().isBefore(event.getStartTime())) { |
| | | lotteryEvent.setStatus(1); |
| | |
| | | @ApiImplicitParam(name = "id", value = "抽奖活动id", required = true, dataType = "String", paramType = "path") |
| | | }) |
| | | public R<TLotteryEventPrize> lotteryDraw(@PathVariable("id") String id, @PathVariable("orderId") String orderId) { |
| | | return lotteryEventService.lotteryDraw(id); |
| | | return lotteryEventService.lotteryDraw(id, orderId); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/getLotteryEventInfo/{id}/{orderId}") |
| | | @PostMapping("/getLotteryEventInfo/{id}") |
| | | @ApiOperation(value = "获取抽奖活动详情【2.0】", tags = "抽奖活动") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "抽奖活动id", required = true, dataType = "String", paramType = "path") |
| | | }) |
| | | public R<LotteryEventInfoVo> getLotteryEventInfo(@PathVariable("id") String id, @PathVariable("orderId") String orderId){ |
| | | public R<LotteryEventInfoVo> getLotteryEventInfo(@PathVariable("id") String id){ |
| | | Long userId = SecurityUtils.getUserId(); |
| | | TLotteryEvent lotteryEvent = lotteryEventService.getById(id); |
| | | LotteryEventInfoVo vo = new LotteryEventInfoVo(); |