From 0da862a1801e6534374b0b5ac6f968b3b754f886 Mon Sep 17 00:00:00 2001 From: XinWei <2718030729@qq.com> Date: Mon, 14 Oct 2024 18:20:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=92=E6=9D=80=E5=88=97=E8=A1=A8=E6=94=B9?= =?UTF-8?q?=E5=9B=9E=E8=8E=B7=E5=8F=96=E5=85=A8=E9=83=A8=E5=95=86=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../seckill/AppSeckillActivityController.java | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/app/seckill/AppSeckillActivityController.java b/yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/app/seckill/AppSeckillActivityController.java index 02d401f..18abd45 100644 --- a/yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/app/seckill/AppSeckillActivityController.java +++ b/yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/app/seckill/AppSeckillActivityController.java @@ -130,16 +130,19 @@ public class AppSeckillActivityController { @GetMapping("/spuList") @Parameter(name = "count", description = "需要展示的数量", example = "6") - @Operation(summary = "获得现在进行的秒杀活动分页") + @Operation(summary = "获得秒杀活动分页") public CommonResult> getSeckillActivitySupList(@RequestParam(name = "count", defaultValue = "3") Integer count) { AppSeckillActivityPageReqVO pageReqVO = new AppSeckillActivityPageReqVO(); - Page page = new Page<>(1, 3); - ; if (count != null && count != 0) { - page = new Page<>(1, count); + pageReqVO.setPageNo(1); + pageReqVO.setPageSize(count); } +// Page page = new Page<>(1, 3); +// if (count != null && count != 0) { +// page = new Page<>(1, count); +// } // 先找出当前时间对应的配置时间段id - List configIdList = new ArrayList<>(); +/* List configIdList = new ArrayList<>(); try { List timeList = configService.getSeckillConfigListByStatus(CommonStatusEnum.ENABLE.getStatus()); SimpleDateFormat format = new SimpleDateFormat("HH:mm"); @@ -159,9 +162,9 @@ public class AppSeckillActivityController { return success(null); } // 获取满足当前正在进行的活动 - PageResult pageResult = activityService.getRunningActivityByConfigIdsCount(configIdList, page); + PageResult pageResult = activityService.getRunningActivityByConfigIdsCount(configIdList, page);*/ // 1. 查询满足当前阶段的活动 -// PageResult pageResult = activityService.getSeckillActivityAppPageByConfigId(pageReqVO); + PageResult pageResult = activityService.getSeckillActivityAppPageByConfigId(pageReqVO); if (CollUtil.isEmpty(pageResult.getList())) { return success(null); } -- 2.45.2