| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.goods.api.domain.LotteryEvent; |
| | | import com.ruoyi.goods.api.domain.TLotteryEvent; |
| | | import com.ruoyi.goods.service.lottery.ILotteryEventService; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | */ |
| | | @ResponseBody |
| | | @PostMapping("/getLotteryEventList") |
| | | public R<List<LotteryEvent>> getLotteryEventList(@RequestParam("activityType") Integer activityType) { |
| | | List<LotteryEvent> list = lotteryEventService.list(new LambdaQueryWrapper<LotteryEvent>().eq(LotteryEvent::getActivityType, activityType) |
| | | .eq(LotteryEvent::getDelFlag, 0).last(" and now() between start_time and end_time")); |
| | | public R<List<TLotteryEvent>> getLotteryEventList(@RequestParam("activityType") Integer activityType) { |
| | | List<TLotteryEvent> list = lotteryEventService.list(new LambdaQueryWrapper<TLotteryEvent>().eq(TLotteryEvent::getActivityType, activityType) |
| | | .eq(TLotteryEvent::getDelFlag, 0).last(" and now() between start_time and end_time")); |
| | | return R.ok(list); |
| | | } |
| | | |