秒杀活动指定显示个数调整

This commit is contained in:
XinWei 2024-10-09 16:45:06 +08:00
parent ec7046aab0
commit 8f7452f7ac

View File

@ -116,7 +116,7 @@ public class AppSeckillActivityController {
@Operation(summary = "获得秒杀活动分页")
public CommonResult<List<ProductSpuRespDTO>> getSeckillActivitySupList(@RequestParam(name = "count", defaultValue = "6") Integer count) {
AppSeckillActivityPageReqVO pageReqVO = new AppSeckillActivityPageReqVO();
if (count == null || count == 0){
if (count != null && count != 0){
pageReqVO.setPageNo(1);
pageReqVO.setPageSize(count);
}