秒杀列表改回获取全部商品
This commit is contained in:
parent
8fc219ad38
commit
0da862a180
@ -130,16 +130,19 @@ public class AppSeckillActivityController {
|
|||||||
|
|
||||||
@GetMapping("/spuList")
|
@GetMapping("/spuList")
|
||||||
@Parameter(name = "count", description = "需要展示的数量", example = "6")
|
@Parameter(name = "count", description = "需要展示的数量", example = "6")
|
||||||
@Operation(summary = "获得现在进行的秒杀活动分页")
|
@Operation(summary = "获得秒杀活动分页")
|
||||||
public CommonResult<List<ProductSpuRespDTO>> getSeckillActivitySupList(@RequestParam(name = "count", defaultValue = "3") Integer count) {
|
public CommonResult<List<ProductSpuRespDTO>> getSeckillActivitySupList(@RequestParam(name = "count", defaultValue = "3") Integer count) {
|
||||||
AppSeckillActivityPageReqVO pageReqVO = new AppSeckillActivityPageReqVO();
|
AppSeckillActivityPageReqVO pageReqVO = new AppSeckillActivityPageReqVO();
|
||||||
Page<SeckillActivityDO> page = new Page<>(1, 3);
|
|
||||||
;
|
|
||||||
if (count != null && count != 0) {
|
if (count != null && count != 0) {
|
||||||
page = new Page<>(1, count);
|
pageReqVO.setPageNo(1);
|
||||||
|
pageReqVO.setPageSize(count);
|
||||||
}
|
}
|
||||||
|
// Page<SeckillActivityDO> page = new Page<>(1, 3);
|
||||||
|
// if (count != null && count != 0) {
|
||||||
|
// page = new Page<>(1, count);
|
||||||
|
// }
|
||||||
// 先找出当前时间对应的配置时间段id
|
// 先找出当前时间对应的配置时间段id
|
||||||
List<Long> configIdList = new ArrayList<>();
|
/* List<Long> configIdList = new ArrayList<>();
|
||||||
try {
|
try {
|
||||||
List<SeckillConfigDO> timeList = configService.getSeckillConfigListByStatus(CommonStatusEnum.ENABLE.getStatus());
|
List<SeckillConfigDO> timeList = configService.getSeckillConfigListByStatus(CommonStatusEnum.ENABLE.getStatus());
|
||||||
SimpleDateFormat format = new SimpleDateFormat("HH:mm");
|
SimpleDateFormat format = new SimpleDateFormat("HH:mm");
|
||||||
@ -159,9 +162,9 @@ public class AppSeckillActivityController {
|
|||||||
return success(null);
|
return success(null);
|
||||||
}
|
}
|
||||||
// 获取满足当前正在进行的活动
|
// 获取满足当前正在进行的活动
|
||||||
PageResult<SeckillActivityDO> pageResult = activityService.getRunningActivityByConfigIdsCount(configIdList, page);
|
PageResult<SeckillActivityDO> pageResult = activityService.getRunningActivityByConfigIdsCount(configIdList, page);*/
|
||||||
// 1. 查询满足当前阶段的活动
|
// 1. 查询满足当前阶段的活动
|
||||||
// PageResult<SeckillActivityDO> pageResult = activityService.getSeckillActivityAppPageByConfigId(pageReqVO);
|
PageResult<SeckillActivityDO> pageResult = activityService.getSeckillActivityAppPageByConfigId(pageReqVO);
|
||||||
if (CollUtil.isEmpty(pageResult.getList())) {
|
if (CollUtil.isEmpty(pageResult.getList())) {
|
||||||
return success(null);
|
return success(null);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user