秒杀活动指定显示个数调整
This commit is contained in:
parent
ec7046aab0
commit
8f7452f7ac
@ -116,7 +116,7 @@ public class AppSeckillActivityController {
|
|||||||
@Operation(summary = "获得秒杀活动分页")
|
@Operation(summary = "获得秒杀活动分页")
|
||||||
public CommonResult<List<ProductSpuRespDTO>> getSeckillActivitySupList(@RequestParam(name = "count", defaultValue = "6") Integer count) {
|
public CommonResult<List<ProductSpuRespDTO>> getSeckillActivitySupList(@RequestParam(name = "count", defaultValue = "6") Integer count) {
|
||||||
AppSeckillActivityPageReqVO pageReqVO = new AppSeckillActivityPageReqVO();
|
AppSeckillActivityPageReqVO pageReqVO = new AppSeckillActivityPageReqVO();
|
||||||
if (count == null || count == 0){
|
if (count != null && count != 0){
|
||||||
pageReqVO.setPageNo(1);
|
pageReqVO.setPageNo(1);
|
||||||
pageReqVO.setPageSize(count);
|
pageReqVO.setPageSize(count);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user